Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1484

ClassCastException while creating JNDI SubContext

XMLWordPrintable

      Creating a subcontext from a servlet failes with a ClassCastExeception.

      java.lang.ClassCastException
      at org.jboss.util.property.PropertyMap.remove(PropertyMap.java:198)
      at org.jnp.interfaces.NamingContext.getEnv(NamingContext.java:1299)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:867)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:858)
      at javax.naming.InitialContext.createSubcontext(InitialContext.java:413)

      The debugger shows a CompoundName instance for the value jnp.parsedName instead of a String. I was unable to create a testcase because I don't know how to place the CompoundName instance this far.

      Will examine the issue more closely.

            starksm64 Scott Stark (Inactive)
            french_c Jens Schumann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: