Hi Iwan;

hmmm , as you have explained that hibernate dose not take some other class loader rather it use TCCL , so my suggestion is to use that , I think this is special case that system need to use service resources so the best solution is to put ur resources into WEB-INF/lib or WEB-INF/classes.

If you are going to use service class loader , you have to explicitly ask that from the service , it wont come out of the box.

Thanks,
Deepal
................................................................
~Future is Open~

----- Original Message ----- From: "Iwan Memruk" <[EMAIL PROTECTED]>
To: "Ajith Ranabahu" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Friday, December 09, 2005 2:07 AM
Subject: Re[2]: [Axis2] Axis2 0.93 doesn't find resources in .aar


Hello Ajith,

Friday, December 9, 2005, 5:16:30 AM, you wrote:

AR> Hmm..
AR> I guess the problem is likely to be that hibernate internally
AR> tries toload some of its classes by itself and picks up a wrong
AR> classloader! I'm not an expert of Hibernate but is there a way to
AR> specifythe classloader when creating/calling hibernate methods ?

I  must  specify that the problem is not with Hibernate. The Hibernate
mapping file was just an example. Other resources, such as spring bean
XML descriptor and others don't get loaded either.

Deepal  --  could you please explain -- does it work out of the box or
did you have to do the trick with getting the classloader that you had
described to me?

The  problem  is, I could get the classloader as you specified, but it
would break the code elegance (my business code is agnostic w.r.t. the
service  platform  used). Plus Hibernate does not allow to specify the
classloader to use in order to load its config.

Thanks everybody for helping.

AR> On 12/9/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:Hi Iwan;

AR> I just checked and it worked me as required.

AR> Thanks,
AR>  Deepal
AR> ................................................................
AR> ~Future is Open~

AR> ----- Original Message -----
AR> From: "Iwan Memruk" <[EMAIL PROTECTED]>
AR> To: <[email protected]>
AR> Sent: Thursday, December 08, 2005 5:42 PM
AR> Subject: [Axis2] Axis2 0.93 doesn't find resources in .aar


Hello axis-user,

Axis2 version 0.93

..doesn't load resources from .aar for me.

And so did 0.92.

If i deploy the resources to axis2/WEB-INF/classes, they get loaded
OK.

Someone else faced this problem?

--
Best regards,
Iwan mailto:[EMAIL PROTECTED]













--
Best regards,
Iwan                            mailto:[EMAIL PROTECTED]




Reply via email to