<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
NameNotFoundException with "Not Bound" message
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/memunis">Munna K</a> in <i>JNDI and Naming</i> - <a href="http://community.jboss.org/message/637742#637742">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>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:</p><p>I am doing lookup as: </p><p>                InitialContext ic = new InitialContext();</p><p>                Object ref = ic.lookup("InduspnUserAdminReadInterface");</p><p>                UserAdminReadInt localUserAdminRead = (UserAdminReadInt)PortableRemoteObject.narrow(ref,UserAdminReadInt.class);</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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" </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>**************************************</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2011-11-22 20:23:11,742 ERROR [STDERR] (http-0.0.0.0-8080-5) javax.naming.NameNotFoundException: InduspnUserAdminReadInterface not bound</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>2011-11-22 20:23:11,743 ERROR [STDERR] (http-0.0.0.0-8080-5)    at javax.naming.InitialContext.lookup(InitialContext.java:392)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p>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)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>******************************</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/637742#637742">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JNDI and Naming at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>