I deployed a service.aar file with the following internal structure:
service.aar
META-INF
MANIFEST.MF
services.xml
xsd0.xsd
service.wsdl
lib
jar1.jar
jar2.jar
classes
class1.class
When class1 attempts to access a class in jar1.jar, the tomcat
webappclassloader fails to see the jars in the aar file and instead
delegates to its parent which is a jboss class loader. This attempts to
find the class in other jboss class directories and then returns a
ClassNotFoundException.
Axis2 is deployed as an exploded war directory within jboss. My aar
file is deployed to mywar/WEB-INF/services.
What do I need to do to load embedded jars from aar files within the
jboss/tomcat environment? Should I just put these jars in the
mywar/WEB-INF/lib directory (which means other services see them as
well)? I would prefer the isolation that comes with embedded jars if
possible.
Well I have tested this and I am sure this is working fine. But one more
thing its depend on where you trying to load the class. If you trying to
load the class at the service invocation time you will not have any
problem but if you trying to do this at the deployment time you might
have some problem unless you follow the following KB.
http://wso2.org/library/98
Anyway I am more than happy to help you if you can send me you aar file
(or create a JIRA)
Thank you!
Deepal
-
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]