I am trying to implement a basic hello world code using jboss 7.0.2 and ejb. I have implemented the same code in Jboss 4.2 and it worked perfectly fine.But now here in jboss 7,the directory structure completely being changed..i am confused. I have written a basic code for printing hello world...but i am getting an error saying that : "java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory "...i tried googling it..and found that jnpclient.jar and jnpserver.jar file should be included in the classpath from the jboss directory....but however i didnt find those jars in the jboss 7.0.2 folder. I dont know what is to be done...I tried one thing...I downloaded the two jar files from the net and copied them to my classpath..but now I am getting a new error :
But i just want to ask that even if i use local interface i will need to connect to localhost:1099....but that is what is not happening....What exactly is missing???...Can you tell me from the error i had posted earlier....I mean do i have to make certain changes to the system files of jboss 7.0.2 get access to that port??
Vinit Parakh wrote:Thanks Jaikiran for your reply,
But i just want to ask that even if i use local interface i will need to connect to localhost:1099....but that is what is not happening....What exactly is missing???...
No, for local interfaces you won't be using that because, local by definition are in the same VM as the server. So there's no need to use the IP/port. If you do want to use JNDI lookup (instead of injection) of local interface within the same JVM as the server, then see this http://community.jboss.org/message/615486#615486
I mean do i have to make certain changes to the system files of jboss 7.0.2 get access to that port??
That port is not available in AS7, so there's no configuration to enable it.
Joined: Oct 20, 2011
Thanks a lot jaikiran for your help....
Now i have been successfully able to implement a basic hello world servlet using ejb injection in jboss 7....cheers...