I am trying to run the standalone jndi server and I have followed the following two documentation links to the letter. I am getting the following error. Any help would be appreciated.
Documentation Links Used
======================
http://jboss.org/?module=bb&op=viewtopic&t=102727
http://www.javaworld.com/javaworld/jw-04-2002/jw-0419-jndi.html?page=4
Error
=====
0 [main] DEBUG org.jboss.naming.Naming - Creating NamingServer stub, theServer=null,rmiPort=0,clientSocketFactory=null,serverSocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076[bindAddress=null]
Exception in thread "main" java.lang.NullPointerException
at org.jnp.server.Main.getNamingInstance(Main.java:301)
at org.jnp.server.Main.initJnpInvoker(Main.java:354)
at org.jnp.server.Main.start(Main.java:316)
at org.jnp.server.Main.main(Main.java:104)
I was facing the same issue recently and found the following link which solved my problem:
http://myjavanotebook.blogspot.com/2008/04/use-jndi-with-your-j2se-application.html
Using the NamingBeanImpl wrapper solved this issue for me.