I have a web application using Axis and Axis is also used by some additions to tomcat architecture.

My deployment strategy would be to have a Axis.jar and all related jars in tomcats common/lib directory. Because it is used from Server/lib and Webapp/lib directories but this is not possible because it will break up possibility to hot deploy my webapp.

Other solution is to have Axis.jar and other related jars in server/lib directory and in webapp/lib directory. This solution unfortunately fails. I'm using axis as an client from class located in server/lib direcotry and when in org.apache.axis.Message class, method setup(xx, xx, xx, xx, xx) is trying to cast AttachmentsImpl class to interface Attachments a classCastException is thrown.

I think this has to be problem that somehow resulting AttachmentsImpl class is loaded by another class loader than one that is using axis client.

How this Axis class loader is intended to work and is there any nice solution to circumvent this problem?

Thanks
Toni

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to