Dear all, I'm a trying to call a stateless session bean which has its home and component interfaces, which prints the name it receives from the servlet client. I'm trying to access a remote server EJB beans, which has been registered with JNDI & when deploying the EJB beans onto the Jboss server which operates in localhost: 8081 it has shown
This is my servlet which is there in tomcat container which runs in localhost:8082 to access the bean:
Then in my tomcat container console it's showing exception like:
Could anyone encountered this problem & could anyone say how to fix this issue.
it seems to be a problem with the JNDI lookup. Are you using JBoss with a default configuration? Then localhost and port 8081 would be wrong. The default options for the JNDI lookup with JBoss are as follows:
You should first try to set the port to 1099 in your properties for this is the default port a client (here: your servlet) has to use to get a JNDI lookup from JBoss.