-
Sep 25th, 2008, 06:43 PM
#1
Name Not Bound Exception
Hi all,
I configured an EJB proxy bean in my applicationContext.xml that looks like the following:
<jee:remote-slsb id="myRepoProxyBean"
jndi-name="java:myco/ejb/myrepo"
business-interface="myco.client.MyRepoProxy"
lookup-home-on-startup="false"
home-interface="myco.ejb.MyRepoHome"
refresh-home-on-connect-failure="true"
cache-home="true">
<jee:environment>
java.naming.factory.initial=org.jnp.interfaces.Nam ingContextFactory
java.naming.provider.url=${myhost}
java.naming.security.principal=user
java.naming.security.credentials=password
</jee:environment>
</jee:remote-slsb>
When I deploy my application to Tomcat 6.0.16 on Windows everything works fine. However, when I deploy to Tomcat on Linux, the jndi lookup fails and I get the following exception:
2008-09-25 22:49:38,069 ERROR [MyPortlet:375] - Failed to locate remote EJB [java:myco/ejb/myrepo]; nested exception is javax.naming.NameNotFoundException: Name myco is not bound in this Context
org.springframework.remoting.RemoteLookupFailureEx ception: Failed to locate remote EJB [java:myco/ejb/myrepo]; nested exception is javax.naming.NameNotFoundException: Name myco is not bound in this Context
Caused by:
javax.naming.NameNotFoundException: Name myco is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:770)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorC ontext.java:137)
at javax.naming.InitialContext.lookup(InitialContext. java:351)
at org.springframework.jndi.JndiTemplate$1.doInContex t(JndiTemplate.java:123)
at org.springframework.jndi.JndiTemplate.execute(Jndi Template.java:85)
at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:121)
Can you guys help with this problem? Is there anything else I need to do to bind the name to the context?
Thanks for your help.
-john
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules