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!!.
>
>
> -----Original Message-----
> From: nancy [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 10, 2006 3:25 PM
> To: '[email protected]'
> Subject: Want to Deploy full apllication
>
>  Hi,
>
> I am having a j2ee application with jsp pages, hibernate etc.I have exposed
> two methods of my some class lets say
>
> a.b.c.Classs1
>
> Where a.b.c is package path.
>
> I created a service.xml and plced it in Meta-inf in a.b.c package and also
> I placed same meta-inf folder outside WEB-INF. Now, Whne I am having two
> archive files. One is war another is aar. Both structures are different.
>
> War is having all the jsp pages as well as classes and lib.
>
> Aar is having Meta-inf and a.b.c.class1 and other packages.
>
> But I want to run my application within one archive file.
> What is the structure of the aar file having whole of the application like
> war.Please help!!!!
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.15.0/249 - Release Date: 2/2/2006

-- 

Reply via email to