This is my first time installing a server on a remote webspace, so beware. (I know it could turn out to be a non-JBAS question in the end.)
I've installed a JRE, put JBoss AS 7 into some dir, and executed standalone.sh. The server starts up regularly:
user@vz227:/usr/local/jbossas7/standalone/configuration# ../../bin/standalone.sh ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /usr/local/jbossas7 JAVA: /usr/lib/jvm/java-6-sun-18.104.22.168/bin/java JAVA_OPTS: -server -Xms128m -Xmx256m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman ========================================================================= 04:28:39,135 INFO [org.jboss.modules] JBoss Modules version 1.0.1.GA 04:28:39,556 INFO [org.jboss.msc] JBoss MSC version 1.0.0.GA 04:28:39,652 INFO [org.jboss.as] JBoss AS 7.0.0.Final "Lightning" starting 04:28:40,875 INFO [org.jboss.as] creating http management service using network interface (management) port (9990) securePort (-1) 04:28:40,893 INFO [org.jboss.as.logging] Removing bootstrap log handlers 04:28:40,918 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2) 04:28:40,936 INFO [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem. 04:28:41,183 INFO [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem 04:28:41,198 INFO [org.jboss.as.naming] (MSC service thread 1-1) Starting Naming Service 04:28:41,210 INFO [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem 04:28:41,250 INFO [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 3.2.0.Beta2 04:28:41,263 INFO [org.xnio] (MSC service thread 1-3) XNIO Version 3.0.0.Beta3 04:28:41,279 INFO [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.0.0.Beta3 04:28:41,291 INFO [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem 04:28:41,691 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-4) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-22.214.171.124/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-126.96.36.199/jre/lib/i386:/usr/lib/jvm/java-6-sun-188.8.131.52/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib 04:28:41,732 INFO [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-4) Starting remote JMX connector 04:28:41,734 INFO [org.jboss.as.remoting] (MSC service thread 1-1) Listening on /127.0.0.1:9999 04:28:41,761 INFO [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem 04:28:41,857 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080 04:28:42,261 INFO [org.jboss.as.connector] (MSC service thread 1-3) Starting JCA Subsystem (JBoss IronJacamar 1.0.0.CR2) 04:28:42,349 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jboss/datasources/ExampleDS] 04:28:42,899 INFO [org.jboss.as.deployment] (MSC service thread 1-1) Started FileSystemDeploymentService for directory /usr/local/jbossas7/standalone/deployments 04:28:42,919 INFO [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 4236ms - Started 92 of 147 services (55 services are passive or on-demand)
As you can see from the trace I have the default datasource hooked up, ExampleDS. Port is 8080, all unchanged. In Windows localhost environments this usually suffices to get a connection to the server via http://localhost:8080/.
However, when I enter my domain name and/or IP address plus port 8080 I can't connect. Must be something missing in my Linux configuration. But what? Might there be a service not listening to the port? How do I find out? Does the standalone.xml need something I haven't set?
What would a Windows user not know to configure on a remote Linux machine (running in a regular virtual server env)?
PS: this is a standard JBoss AS 7 install, no cluster or anything.
By default (due to security reasons) JBoss AS binds only to localhost. If you want to access it via your hostname or IP, then you can edit the JBOSS_HOME/standalone/configuration/standalone.xml to change the "public" and "management" interfaces to point to the hostname of your system:
<interfaces> <interface name="management"> <!-- bind to the hostname --> <inet-address value="your-hostname"/> </interface> <interface name="public"> <!-- bind to the hostname --> <inet-address value="your-hostname"/> </interface> </interfaces>
I had one extra question to ask about this. I can access the front page of my JBoss no problem, but I can't redirect to the admin console remotely. Is there any possible way to do this?
By remotely, I do all my dev on my mac, and have my JBoss standalone on a Ubuntu server on my local network. I'd just like to be able to deploy my WAR from my mac, as opposed to having to manually do it on my server machine. I'm not able to access port 9990 from my mac.
This is intentional (and I think its not very fortunate explanation because its obviously confusing). The public_address:8080 tried to redirect you to localhost:9990 which obviously cant work from a remote host.
You either need to edit your xml configuration and set management bind address to the public one or start with a switch
This exposes your admin console to anyone on the network so be aware of what you are doing and apply security as well.
Just reproduced it on master, the exact wording is
Unable to redirect.
It is not possible to redirect to the console, please contact the system administrator for the correct address to access the console.
here is a feature request Jira https://issues.jboss.org/browse/AS7-2531