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