Hello,
Before I start writing heavy duty beans I first need to demonstrate that I can get a simple app working. I didn't have any problems with deploying the jar file. I'm having trouble with the client side JNDI look-up.
The error I'm getting is: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
I've triple checked all of the fundamentals. The jndi.properties file and EVERY client jar file is explicitly declared in the classpath. I even bought the online docs but couldn't find the solution. I'm truly stuck.
My directory structure looks like this:
-FirstBean
-----Classes
---------*.java (EJB)
---------*.class
-----Properties
---------admin
--------------jndi.properties
---------*.jar (client jars)
-META-INF
-----*.xml
And the client source code:
Properties p = new Properties();
p.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
p.put("java.naming.provider.url","localhost:1099");
p.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
InitialContext jndiContext = new InitialContext(p);
Please Advise, Thanks, Ray
jnp-client.jar ?
Regards,
Adrian