geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <>
Subject [jira] Created: (GERONIMO-2787) Usability: jndi name collision error not reported
Date Wed, 31 Jan 2007 20:24:05 GMT
Usability: jndi name collision error not reported

                 Key: GERONIMO-2787
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: naming
            Reporter: Jarek Gawor

I defined the following entries in my web.xml file:


So the JNDI mapping where: 'java:comp/env/services/myService/foo' = serviceRef1 and  'java:comp/env/services/myService'
= serviceRef2

That caused the following exception:

java.lang.ClassCastException: org.apache.xbean.naming.reference.CachingReference

        at org.apache.xbean.naming.context.ContextUtil.buildMapTree(ContextUtil.
        at org.apache.xbean.naming.context.ContextUtil.createBindings(ContextUti
        at org.apache.xbean.naming.context.ImmutableContext.<init>(ImmutableCont
        at org.apache.xbean.naming.context.ImmutableContext.<init>(ImmutableCont
        at org.apache.geronimo.naming.enc.EnterpriseNamingContext.createEnterpri
        at org.apache.geronimo.naming.enc.EnterpriseNamingContext.createEnterpri
        at org.apache.geronimo.cxf.CXFWebServiceContainerFactoryGBean.<init>(CXF
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

The second JNDI name cannot be used because 'myService' is a sub context. However, this is
not checked and that strange exception is raised.


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message