[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-dev
Subject:    [jira] [Created] (AXIS2-5175) serviceTCCL = composite breaks
From:       "Mallik Somepalli (Created) (JIRA)" <jira () apache ! org>
Date:       2011-10-31 18:51:32
Message-ID: 1920748212.42064.1320087092182.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]

serviceTCCL = composite breaks InitialContext lookups inside service code
-------------------------------------------------------------------------

                 Key: AXIS2-5175
                 URL: https://issues.apache.org/jira/browse/AXIS2-5175
             Project: Axis2
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.6.0
         Environment: Tomcat 7.0, axis2 1.6.0, Jdk 1.6.0_29
            Reporter: Mallik Somepalli


Data source is configured in context.xml and a simple look up in service code for the \
data source returns with  "javax.naming.NameNotFoundException: Name java:comp is not \
bound in this Context"

On initial glance, this seem to be caused by getParent() method \
"org.apache.axis2.classloader.MultiParentClassLoader" not returning parent class \
loader properly. Tomcat keeps track of jndi bindings per class loader/per thread and \
when serviceTCCL is configured, the bindings are not found context of \
MultiParentClassLoader or its parent chain (getParent breaks the chain).The java doc \
on this class says "This getParent method of this class will always return null, \
which may be interpreted by the calling code to mean that this class loader is a \
direct child of the system class". 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic