[jboss-user] [JNDI and Naming] - NameNotFoundException with "Not Bound" message
Munna K
do-not-reply at jboss.com
Tue Nov 22 10:09:44 EST 2011
Munna K [http://community.jboss.org/people/memunis] created the discussion
"NameNotFoundException with "Not Bound" message"
To view the discussion, visit: http://community.jboss.org/message/637742#637742
--------------------------------------------------------------
I have a stateless EJB application packaged as jar file, where ejb-jar.xml, jboss.xml & persistence.xml files are there. I am using the lookup in a web application as below:
I am doing lookup as:
InitialContext ic = new InitialContext();
Object ref = ic.lookup("InduspnUserAdminReadInterface");
UserAdminReadInt localUserAdminRead = (UserAdminReadInt)PortableRemoteObject.narrow(ref,UserAdminReadInt.class);
My web application has web.xml & jboss-web.xml files (Pls find attachment). in jboss-4.0.5 it is working fine with my code. when I deployed in jboss6.1.0 Final, it is giving the NameNotFoundException with "not bound"
**************************************
2011-11-22 20:23:11,742 ERROR [STDERR] (http-0.0.0.0-8080-5) javax.naming.NameNotFoundException: InduspnUserAdminReadInterface not bound
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at javax.naming.InitialContext.lookup(InitialContext.java:392)
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at com.induspn.servlet.InduspnAdminServlet.doPost(InduspnAdminServlet.java:132)
2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
2011-11-22 20:23:11,744 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
2011-11-22 20:23:11,745 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
2011-11-22 20:23:11,745 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
2011-11-22 20:23:11,745 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2011-11-22 20:23:11,745 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
2011-11-22 20:23:11,745 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2011-11-22 20:23:11,745 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
2011-11-22 20:23:11,745 ERROR [STDERR] (http-0.0.0.0-8080-5) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
******************************
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637742#637742]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111122/c23ae124/attachment-0001.html
More information about the jboss-user
mailing list