javax.naming.NameNotFoundException in a cluster
satish_misc Aug 15, 2003 8:34 PMI see this NNF problem in a clustered environment, but not in 'standalone'. I am using Petstore. I have added all the 'clustered' tags in jboss.xml files.
I get the problem if I use the JNDI name as specified in original Petstore code: "java:comp/env/ejb/local/Catalog".
I DONOT get the problem if I specify: "com.sun.j2ee.blueprints.catalog.ejb.CatalogLocalHome".
When I view JNDIViewer, I can see the bean:
+- env (class: org.jnp.interfaces.NamingContext)
| +- ejb (class: org.jnp.interfaces.NamingContext)
| | +- local (class: org.jnp.interfaces.NamingContext)
| | | +- Catalog[link -> com.sun.j2ee.blueprints.catalog.ejb.CatalogLocalHome] (class: javax.naming.LinkRef)
I am thinking that unless this problem is resolved, I may really not be able to use any clustering features. Is this a correct assumption?
Why am I getting this problem?
Any help appreciated, Thanks.
Partial trace:
javax.naming.NameNotFoundException: Catalog not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.sun.j2ee.blueprints.servicelocator.ejb.ServiceLocator.getLocalHome(ServiceLocator.java:93)
at com.sun.j2ee.blueprints.catalog.client.CatalogHelper.getCatalogEJB(CatalogHelper.java:343)
at com.sun.j2ee.blueprints.catalog.client.CatalogHelper.getCategoriesFromEJB(CatalogHelper.java:224)
at com.sun.j2ee.blueprints.catalog.client.CatalogHelper.getCategories(CatalogHelper.java:205)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:310)
at org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:141)
at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:235)