The machine HOSTNAME is jabez.propagation.net which is mapped in
/etc/hosts to 66.34.41.236. I am in a virtual hosting environment with
apache configured for seven different hosts over seven IP address &
eight DNS Internet domain names (www.psacorp.com, www.mlsunplugged.com,
etc. but NOT including jabez.propagation.net - it is only the host
name). Some are set up with SSL. But I only have 4 of them set up to run
servlets:

http://www.dashpass.com - 66.34.41.241:80
http://www.mlsunplugged.com - 66.34.41.242:80
https://www.mlsunplugged.com - 66.34.41.242:443 
http://www.unpluggedsystems.com - 66.34.41.242:80
https://www.unpluggedsystems.com - 66.34.41.242:443 

I have a feeling that these IP are not permitted to connect to
66.34.41.236 where JNDI is running? But I am not sure how to fix this?
Would hosts.allow be the place?

I was able to fix the problem of:

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

By setting the rmi server hostname as a command line argument in the
JBoss run.sh file like this:

FIXHOST="-Djava.rmi.server.hostname=66.34.41.236"

echo CLASSPATH=$CLASSPATH
java -server $JAXP $FIXHOST -classpath $CLASSPATH org.jboss.Main tomcat
$@

---------

Let me know if this helps or just made it more cloudy.

Brian


Darrin Thompson wrote:
> 
> I don't quite understand your question. Do you have two different
> hostnames that you use?
> 
> InetAddress.getLocalHost().getHostName()
> 
> should return a host name which resolves to an IP which reaches your
> local box. Is this not the case?
> 
> Darrin
> 
> On 4/13/01, 1:38:03 PM, Brian Elliott <[EMAIL PROTECTED]> wrote
> regarding [JBoss-user] Re:
> javax.naming.ServiceUnavailableException:localhost now Connection refused:
> 
> > > 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
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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

Reply via email to