On Linux, if the hostname and ip address for your workstation don't match
reality, you are in for a lot of trouble.
Assuming you are on a private network, pick a name for your box. Say it's
is jump.domain.
As root:
# hostanme jump.domain
Then add a line to /etc/hosts
127.0.0.1 localhost
<your ip> jump.domain
Getting the hostname issue straightened out on my box made many things
work right.
Darrin
On 4/12/01, 10:59:05 PM, Brian Elliott <[EMAIL PROTECTED]>
wrote regarding [JBoss-user] javax.naming.ServiceUnavailableException:
localhost:
> I am porting my NT based JBOSS 2.0 application to Red Hat 6.2 JBoss 2.2
> and get the following error when executing my servlet program that
> accesses an EJB:
> javax.naming.ServiceUnavailableException: localhost [Root exception is
> java.net.UnknownHostException: localhost]
> -------------
> Here is the code that is executed (look for "Here=>"):
> System.setProperty("java.naming.provider.url",
> "localhost:1099");
> try {
> // Get a naming context
> InitialContext jndiContext = new InitialContext();
> // Get the device
> Here=> Object devRef = jndiContext.lookup("mls/DeviceIdentifier");
> --------
> JNDI looks ok in the JBoss startup:
> [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
> But the Webserver Codebase is wrong. The HOSTNAME is not a valid URL.
> So I have two problems and they might be related. First how do I fix the
> Webserver Codebase? I tried hardcoding a valid HOST & HOSTNAME in the
> run.sh script but that didn't work.
> Second, how do I track down where the "ServiceUnavailableException:
> localhost" error originates.
> Any help would be 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