> Then add a line to /etc/hosts
> 
> 127.0.0.1       localhost
> <your ip>       jump.domain

I checked my /etc/hosts file and it didn't have the 127.0.0.1 entry. So
I added it. But now I get a different error:

[EmbeddedTomcat] javax.naming.ServiceUnavailableException: Connection
refused [Root exception is java.net.ConnectException: Connection
refused]

I assume this is still because of the hostname problem that is evident
at jBoss startup where jabez.propagation.net is my host name (found in
/etc/HOSTNAME) but not my FQDN (www.psacorp.com)?

> > [Webserver] Starting
> > [Webserver] Codebase set to http://jabez.propagation.net:8083/
> > [Webserver] Started webserver on port 8083
> > [Webserver] Started
> > [Naming] Starting
> > [Naming] Naming started on port 1099
> > [Naming] Started

My /etc/rhosts now looks like this:

127.0.0.1       localhost
63.249.128.230  newbox.propagation.net  newbox
66.34.41.236    jabez.propagation.net   jabez

-------------------

Should I change this or add www.psacorp.com somehow? I tried changing
the "jabex.propagation.net" to "www.psacorp.com" and the jBoss startup
had all kinds of errors.

I checked the jBoss source code that matches:

Webserver] Codebase set to http://jabez.propagation.net:8083/

And found the class WebService.java:

public void startService()
      throws Exception
   {
      server.start();
      // Set codebase
      String host = System.getProperty("java.rmi.server.hostname");
      if (host ==null) host = InetAddress.getLocalHost().getHostName(); 
      
      String codebase = "http://"+host+":"+getPort()+"/";
      System.setProperty("java.rmi.server.codebase", codebase);
      log.log("Codebase set to "+codebase);
                
      log.log("Started webserver on port "+server.getPort());
   }

If there isn't any thing I can do with /etc/hosts or related, is there a
way to do set the Property java.rmi.server.hostname or
java.rmi.server.codebase in the jBoss configuration? I tried in
jboss.properties but it had no error (which would agree with the
comments in the file).

The only other thing I can think of is setting either the
java.rmi.server.codebase property or the java.rmi.server.hostname
property or both in my startup servlet code:

System.setProperty("java.rmi.server.codebase");

Any help would be greatly appreciated,

Brian
-- 
+-------------------------------+----------------------------------+
| Brian Elliott                 | Unplugged Systems / ESWC.com /   |
| President & CTO               |       ES Innovation Labs         |
| [EMAIL PROTECTED] | MLS Unplugged & Wireless Systems |
|                               | http://www.unpluggedsystems.com  |
+-------------------------------+----------------------------------+

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to