When I try to run the client class to access my EJB I get:
javax.naming.ConfigurationException: Provider URL missing
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:772)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:340)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at HelloWorld.TestHello.main(TestHello.java:24)
This happend after lookup statement. My classpath include all the required client jars.
I'll apreciate any help.
I just found the problem. It turns out that my jndi.properties file had this in the second line:
#java.naming.provider.url=localhost
When it should be:
java.naming.provider.url=jnp://localhost:1099
hope this might help sombady else.