[ http://issues.apache.org/jira/browse/AXIS2-239?page=comments#action_12330425 ]
Srinath Perera commented on AXIS2-239: -------------------------------------- dims is it impossible to do this without using the Thread.setContextClassLoader()? I prefer not to share information via static place holders. For an example Axis2 do not have MessageContext.getMessageContext() nor AxisResgistry is static. I think ruchith's concern is valied concern, can not we revised our classloding hireachy for the modules to have the service classloaders (one it engages now) as the parent class loder > Cannot load service specific classes by external modules > -------------------------------------------------------- > > Key: AXIS2-239 > URL: http://issues.apache.org/jira/browse/AXIS2-239 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: deployment > Reporter: Ruchith Udayanga Fernando > > Right now we cannot load classes available in the service archive (.aar file) > by modules that are configured to be engaged for that service. > We experience this when we try to use the security module where the security > module (WSS4J) will have to load the password callback class to get the > password information from the developers. Intuitively this password callback > class should be packaged with the service archive. > Currently Axis2 uses a specific class loader to load the classes that belong > to a service form it archive. And the service archives are not in the scope > the context class loader. But IMHO since WSS4J uses the context class loader > to pickup the password callback class it will not pickup the class that is > available in the service archive. > Should we change Axis2 to support the above behaviour where the external > module can load classes available in the service archive? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
