Hi,

i am currently working on a service, that is deployed in a service
archive, as described in the documentation. This service needs access on
a library which is located under WEB-INF/lib, due to further usage of
this library out of my service.

I am using axis 1.3 deployed as a war on a Tomcat 5.5.12.

The jar structure of mylib.jar is:
mylib.jar
-- META-INF
---- MANIFEST.MF
-- lib
--- ...couple of libs here
-- com
---- ...classes in package hierarchy

My service archive myservice.aar is located in the WEB-INF/services and
i have hotupdate in my axis2.xml configuration enabled.

The code i am trying to access classes from the jar file in my service
implementation class is following:

> MessageContext msgCtx = MessageContext.getCurrentMessageContext();
>                       
> AxisService serviceHandler = msgCtx.getAxisService();
>                       
> ClassLoader serviceLoader = serviceHandler.getClassLoader();
>                       
> //Class serviceClass = serviceLoader.loadClass(service);
>               
> Class serviceClass = Class.forName(service, true, serviceLoader);
>                       
> MyClass srv = (MyClass) serviceClass.newInstance();

The deployment of the service is working fine, but when i call some
function of my service implementation class that itselfs needs an
instance of the mylib.jar i get a ClassNotFoundException.

I have tried also the setOperationContext way, but as i read in the
mailing list, this way is not thread safe.

Has anybody an idea?

Thanks in advance.

Periklis

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to