...to make it a bit more concise, I guess I just want to know how can i get my service to access jars/classes that reside in a directory outside of tomcat or axis2.
Thanks, Alan J -------------------------------------------- Alan R Jones Boeing Mission Systems Denver Engineering Center (BDEC) ________________________________ From: Jones, Alan R Sent: Thursday, July 24, 2008 11:11 AM To: [email protected] Subject: Identifying the correct classloader Hi, I checked the list archives, but cannot seem to find the answer to my issue: I have a binary (package) compiled in JBoss Rules. My axis2 service operates on this package/uses the package once it receives a request to do so. I cannot have the data model jar with which the package was originally compiled in my .aar file. So, I want to have a directory that can be accessed via URL, and drop the data model jar into this directory. I would then use a URLClassLoader when my service recieves the request to load all the classes in this jar. The problem is, I still get a ClassNotFoundException when I try to operate/load said package. I have tried getting the classloader from the MessageContext and casting this to a URLClassloader as I have seen examples, and getting the parent classloader, getting just about every classloader but still get the exception. Of course, as documented in many other list posts, if i drop the jar into WEB-INF/lib it all works fine. QUestion: How do I access THAT classloader (or, what is the correct classloader) from within my service code, to see success here? Thanks, Alan J
