Ok, I think I have this figured out. Issue was the use of Hibernate IN Axis2. I found the following
I run hibernate with axis2. The structure of the aar, for example, is:
.
./META-INF
./META-INF/MANIFEST.MF
./META-INF/SWAWiseEndpoint.wsdl
./META-INF/services.xml
./com
./com/siemens
./com/siemens/swa
./com/siemens/swa/webservices
./com/siemens/swa/webservices/wisemobil
./com/siemens/swa/webservices/wisemobil/SWAWiseEndpointSkeleton.class
Where the services.xml has:
<parameter locked="false"
name="ServiceClass">com.siemens.swa.webservices.wisemobil.SWAWiseEndpointSkeleton</parameter>
So every other class reference - hibernate, spring, business logic classes
etc, are either referenced in WEB-INF/lib or WEB-INF/classes . Your hibernate
or spring config files belong at the root of WEB-INF . AFAIK nothing else is
currently supported. While an AAR has its own classloader, things like spring
and perhaps hibernate use the 'context classloader' (CCL) which is not
currently supported in an AAR.
Its as simple as that. AFAIK you can place any jar in the AAR lib directory,
provided it doesn't use the CCL. The CCL can't load service resources in an
AAR and AFAIK currently is not supported.
HTH,
Robert
http://www.braziloutsource.com/Em Sexta 10 Março 2006 07:59, o nancy escreveu:
> Hi,
>
> In continuation to my last mail,I am having one more problem.I want to load
> classes for hibernate,but it can't locate the xml files or any class from
> aar archive.But when I give jar file of my classes,it loads all the classes
> and .hbm.xml file.
> I cant understand the problem.Why it si doing like this.Please help!!.
>
So apparently if you wish to use Hibernate in Axis2 - then you don't deploy your service jar with your service.aar. You have to put them in the Axis2\WEB-INF\lib folder and your hibernate.properties seems to be picked up in the Axis2\WEB-INF\classes area.