I did a bit a troubleshooting. Here's the stack trace:
javax.naming.CommunicationException: Failed to connect to server localhost:1099. Root
exception is
java.lang.ClassCastException
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:199)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1181)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.boxhead.framework.ejb.EJBUtil.getEJB(EJBUtil.java:83)
I took a look at NamingContext.java:199 and found that the ClassCast is occurring
while trying to do a cast to Naming. Naming appears to be a representation of a
client side JNDI server. Therefore, it does not appear to be my code, but it appears
to be something with the configuration of my server?
I am using a standard configuration. I made no modifications to any files in the
standard jboss 3.2.3 implementation. I am passing the following properties to the
server during startup:
jndi.provider.url=jnp://localhost:1099
jndi.initial.context.factory=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
Suggestions would be appreciated ...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832522#3832522
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832522
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development