Re: hibernate and axis2

2009-10-06 Thread TomazM
to add the following parameter to the service: parameter name=ServiceTCCL locked=falsecomposite/parameter So where to put Hibernate persistance.xml in axis2 dir structure per one service? Regards, Tomaz Andreas Right. With only one end user aar and without the OP showing a need

Re: hibernate and axis2

2009-10-06 Thread robert lazarski
work directly in an aar without some extra effort. It should be enough to add the following parameter to the service: parameter name=ServiceTCCL locked=falsecomposite/parameter So where to put Hibernate persistance.xml in axis2 dir structure per one service? Regards, Tomaz For just

Re: hibernate and axis2

2009-10-06 Thread Andreas Veithen
work directly in an aar without some extra effort. It should be enough to add the following parameter to the service: parameter name=ServiceTCCL locked=falsecomposite/parameter So where to put Hibernate persistance.xml in axis2 dir structure per one service? Regards, Tomaz In the META-INF

Re: hibernate and axis2

2009-09-30 Thread robert lazarski
-INF/lib/hibernate3.jar ./WEB-INF/classes ./WEB-INF/classes/persistence.xml ./WEB-INF/classes/com/mycompany/* ./WEB-INF/services ./WEB-INF/services/myService.aar From there, I'd verify that hibernate is working in the war via a non-axis2 class like a servlet etc - from there integrating hibernate

Re: hibernate and axis2

2009-09-30 Thread Andreas Veithen
I suggest you don't put all these jar's in the aar, put them in WEB-INF/lib . hibernate uses the TCCL and that won't work directly in an aar without some extra effort. It should be enough to add the following parameter to the service: parameter name=ServiceTCCL locked=falsecomposite/parameter

Re: hibernate and axis2

2009-09-30 Thread robert lazarski
On Wed, Sep 30, 2009 at 9:53 AM, Andreas Veithen andreas.veit...@gmail.com wrote: I suggest you don't put all these jar's in the aar, put them in WEB-INF/lib . hibernate uses the TCCL and that won't work directly in an aar without some extra effort. It should be enough to add the following

Re: hibernate and axis2

2009-09-30 Thread ANTHONY ENNIS
...@gmail.com Date: Wednesday, September 30, 2009 9:55 Subject: Re: hibernate and axis2 To: axis-user@ws.apache.org On Wed, Sep 30, 2009 at 9:53 AM, Andreas Veithen andreas.veit...@gmail.com wrote: I suggest you don't put all these jar's in the aar, put them in WEB-INF/lib . hibernate uses

Re: RE: hibernate and axis2

2009-09-30 Thread ANTHONY ENNIS
, September 30, 2009 13:14 Subject: RE: hibernate and axis2 To: tony.en...@insightbb.com java.lang.Long is a java class here is an example (apparently this scooter can exceed warp1) import javax.persistence.Entity; import javax.persistence.Id; /*** @author Emmanuel Bernard */ @Entity public

Re: hibernate and axis2

2009-09-30 Thread robert lazarski
On Wed, Sep 30, 2009 at 1:41 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I started this morning with the Andreas' solution as it is easiest to implement.  I got farther.  The web service finds the persistence file and starts mapping the classes. Now I am getting the following exception,

Re: hibernate and axis2

2009-09-30 Thread ANTHONY ENNIS
Thanks. I was about 5 minutes from starting to cry like a small girl! - Original Message - From: robert lazarski robertlazar...@gmail.com Date: Wednesday, September 30, 2009 13:56 Subject: Re: hibernate and axis2 To: axis-user@ws.apache.org On Wed, Sep 30, 2009 at 1:41 PM, ANTHONY ENNIS

Re: hibernate and axis2

2009-09-30 Thread ANTHONY ENNIS
...And suddenly, the application works stem to stern. Thank you all! - Original Message - From: robert lazarski robertlazar...@gmail.com Date: Wednesday, September 30, 2009 13:56 Subject: Re: hibernate and axis2 To: axis-user@ws.apache.org Kool, glad to hear you're making some

hibernate and axis2

2009-09-29 Thread ANTHONY ENNIS
I'm at wit's end.  Now the situation is that I can connect to the database using my persistence.xml settings when I run from my IDE (intellij.)  Previously, I was using a properties file.  So that is a small amount of progress. However, when I deploy my webservice, it accepts messages but

Re: hibernate and axis2

2009-09-29 Thread robert lazarski
On Tue, Sep 29, 2009 at 6:34 PM, ANTHONY ENNIS tony.en...@insightbb.com wrote: I'm at wit's end.  Now the situation is that I can connect to the database using my persistence.xml settings when I run from my IDE (intellij.) Previously, I was using a properties file.  So that is a small amount of

Re: hibernate and axis2

2009-09-29 Thread Tony Ennis
Ahhh. Slowly the light comes on. So, you're saying a minimal aar file, and then a separately constructed war that gets embedded into an Axis2 directory that's in the classpath. I wasn't aware you could plop a war file in there indiscriminately - I thought they were only for deployed

hibernate and axis2

2009-09-28 Thread ANTHONY ENNIS
Thanks for the replies.  I'm at work now and don't have access to the postings sent earlier. I created a new jar that included my classes and the persistence.xml file. I placed it in my lib directory.  No difference. I'm working in part off code/requirements I didn't write.  One wrinkle is

Re: Please help newbie to integrate hibernate with axis2

2009-02-25 Thread Srinath Perera
integrate hibernate with axis2.I am trying this from 1 and half week..but i am not resolveing it... :( I am unable to initiate hibernate session,may be its problem of axis2 class loader not finding my mapping file and classes I have all my hibernate code and server skeleton code inside aar. I

RE: Please help newbie to integrate hibernate with axis2

2009-02-25 Thread Zouhdi Haffar
to integrate hibernate with axis2 Hi Anudeep; I am not involved with the hibernate integration, and have not tried it myself. So I am fowarding this to the user list. Hopefully someone will pick it up. Thanks Srinath On Wed, Feb 25, 2009 at 8:51 AM, Anudeep G anucool.i...@gmail.com wrote: Hi

RE: Please help newbie to integrate hibernate with axis2

2009-02-25 Thread gade anudeep
Thanks Zouhdi..I was able to solve this problem with ur info partly. And Now i am able to integrate hibernate with axis2 successfully from inside AAR file.. --- On Wed, 25/2/09, Zouhdi Haffar zouhdi.haf...@valtech.com wrote: From: Zouhdi Haffar zouhdi.haf...@valtech.com Subject: RE: Please

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-05 Thread ndthuy
All, I solve the problem by not using Spring 2.X version. I go back to Spring 1.x version and everything works fine. Thanks. ndthuy wrote: Hi All, I am using Spring and Hibernate with Axis2. I have the problem with loading the applicationContext.xml. Does anyone has similar problems

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread robert lazarski
Exclusively hibernate. I'm using axis2 / jibx with it currently, experimenting with a 'code first' approach. I plan on updating the docs to include an approach like that, and a general overhaul asap. HTH, Robert On Dec 2, 2007 6:48 PM, Anthony Bull [EMAIL PROTECTED] wrote: Robert, what

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread robert lazarski
[mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 7:21 PM To: axis-user@ws.apache.org Subject: Re: Problem with Using Spring and Hibernate with Axis2 You will find the most persistance frameworks have real problems when combined with Spring inside an AAR

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread ndthuy
@ws.apache.org Subject: Re: Problem with Using Spring and Hibernate with Axis2 You will find the most persistance frameworks have real problems when combined with Spring inside an AAR. The Spring inside the AAR approach on the Axis2 website does not work correctly when

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread Martin Gainty
available in WEB-INF/classes HTH/ M-- - Original Message - From: ndthuy [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, December 03, 2007 9:59 AM Subject: Re: Problem with Using Spring and Hibernate with Axis2 This is the latest update: I am able to deploy but when I run I

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread ndthuy
PROTECTED] Sent: Thursday, November 29, 2007 7:21 PM To: axis-user@ws.apache.org Subject: Re: Problem with Using Spring and Hibernate with Axis2 You will find the most persistance frameworks have real problems when combined with Spring inside an AAR. The Spring inside

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-02 Thread Anthony Bull
r.debug("loading spring context file " + url); } if (url == null) { urls[i] = null; } else { urls[i] = url.toString(); } i++; } return urls; } } ______

RE: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
To: axis-user@ws.apache.org Subject: Re: Problem with Using Spring and Hibernate with Axis2 The non-AAR approach is much simpler - you don't need to mess around with the TCCL for that and its the recommended approach. Just put all of your app level classes in WEB-INF/classes, all the spring

RE: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
was up and running. -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Fri 11/30/2007 12:00 PM To: axis-user@ws.apache.org Subject: Re: Problem with Using Spring and Hibernate with Axis2 The non-AAR approach is much simpler - you don't need to mess around

RE: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
PROTECTED] Sent: Fri 11/30/2007 12:00 PM To: axis-user@ws.apache.org Subject: Re: Problem with Using Spring and Hibernate with Axis2 The non-AAR approach is much simpler - you don't need to mess around with the TCCL for that and its the recommended approach. Just put all of your app level classes

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread Martin Gainty
Message - From: ndthuy [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, November 30, 2007 3:46 PM Subject: Re: Problem with Using Spring and Hibernate with Axis2 Hello, I just tried that approach and it still gave me the error of loading any beans of type

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread robert lazarski
: Hi All, I am using Spring and Hibernate with Axis2. I have the problem with loading the applicationContext.xml. Does anyone has similar problems? Attached are service.xml, applicationContext.xml and error meesage

RE: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
; } } From: Anthony Bull [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 7:21 PM To: axis-user@ws.apache.org Subject: Re: Problem with Using Spring and Hibernate with Axis2 You will find the most persistance frameworks have real problems when combined with Spring inside an AAR

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread robert lazarski
: Problem with Using Spring and Hibernate with Axis2 You will find the most persistance frameworks have real problems when combined with Spring inside an AAR. The Spring inside the AAR approach on the Axis2 website does not work correctly when using persistance frameworks. iBATIS

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
and Hibernate with Axis2 You will find the most persistance frameworks have real problems when combined with Spring inside an AAR. The Spring inside the AAR approach on the Axis2 website does not work correctly when using persistance frameworks. iBATIS and JPA also have similar issues

Re: Using Spring and Hibernate with Axis2

2007-11-29 Thread Suran Jayathilaka
Andrew McGhee wrote: Hi all, I am writing a web service using Axis2 1.1 and have successfully integrated Spring within the AAR. I am also using Hibernate, but at the moment can't get it to work inside the AAR - I have to explode the AAR. I have had a look at

RE: Using Spring and Hibernate with Axis2

2007-11-29 Thread Tremblay, Yann
In order to have axis2-spring and hibernate to work in our environment we had to put all hibernate files in the axis2/WebContent/Web-Inf/lib directory of axis2 war file. There is a problem with axis2 classloader and Spring and it is documented at the bottom of the following link: http

Re: Using Spring and Hibernate with Axis2

2007-11-29 Thread robert lazarski
://www.springframework.org/docs/api/org/springframework/orm/hibernate/LocalSessionFactoryBean.html#setMappingDirectoryLocations(org.springframework.core.io.Resource[]) Then search the archives for that type of init. Also, I'm planning some docs that specifically cover hibernate and axis2 for the next release. HTH, Robert

Re: Using Spring and Hibernate with Axis2

2007-11-29 Thread Martin Gainty
Sent: Thursday, November 29, 2007 7:44 AM Subject: Re: Using Spring and Hibernate with Axis2 At least look at the updated docs for 1.3 , as they explain the 'hibernate inside the aar' a bit better and this general advice would apply to axis2 1.1 (an upgrade is recommended if possible). http

Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread ndthuy
Hi All, I am using Spring and Hibernate with Axis2. I have the problem with loading the applicationContext.xml. Does anyone has similar problems? Attached are service.xml, applicationContext.xml and error meesage. Thanks a lot. service.xml ?xml version=1.0 encoding=UTF-8? !-- This file

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread robert lazarski
HTH, Robert HTH, Robert On Nov 29, 2007 1:08 PM, ndthuy [EMAIL PROTECTED] wrote: Hi All, I am using Spring and Hibernate with Axis2. I have the problem with loading the applicationContext.xml. Does anyone has similar problems? Attached are service.xml, applicationContext.xml and error meesage

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread robert lazarski
and Hibernate with Axis2. I have the problem with loading the applicationContext.xml. Does anyone has similar problems? Attached are service.xml, applicationContext.xml and error meesage. Thanks a lot. service.xml ?xml version=1.0 encoding=UTF-8? !-- This file was auto-generated from

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread ndthuy
property name=metadataEntity ref local=metadataEntity / /property /bean HTH, Robert HTH, Robert On Nov 29, 2007 1:08 PM, ndthuy [EMAIL PROTECTED] wrote: Hi All, I am using Spring and Hibernate with Axis2. I have the problem with loading

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread Martin Gainty
with Using Spring and Hibernate with Axis2 Meant to say 'they should NOT be there when using spring beans in your service.xml' . Robert On Nov 29, 2007 1:30 PM, robert lazarski [EMAIL PROTECTED] wrote: Remove 'parameter name=ServiceClass' entries - they should be there when using spring

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread Anthony Bull
t HTH, Robert On Nov 29, 2007 1:08 PM, ndthuy [EMAIL PROTECTED] wrote: Hi All, I am using Spring and Hibernate with Axis2. I have the problem with loading the applicationContext.xml. Does anyone has similar problems? Attached are service.xml, applicationContext.xml and error me

Using Spring and Hibernate with Axis2

2007-11-28 Thread Andrew McGhee
Hi all, I am writing a web service using Axis2 1.1 and have successfully integrated Spring within the AAR. I am also using Hibernate, but at the moment can't get it to work inside the AAR - I have to explode the AAR. I have had a look at http://ws.apache.org/axis2/1_1_1/spring.html#263 and

RE: [AXIS2]Classloader error while using Hibernate with AXIS2.

2007-01-22 Thread John Pfeifer
inside the aar file then those file can not be access from the context class loader , therefore to solve the problem we need to put those files into WEB-INF/lib directory. Thanks Deepal Hi All, I am using Hibernate with AXIS2 . My application runs stand-alone from Eclipse.However, when I try

Re: [AXIS2]Classloader error while using Hibernate with AXIS2.

2007-01-21 Thread Deepal Jayasinghe
the aar file then those file can not be access from the context class loader , therefore to solve the problem we need to put those files into WEB-INF/lib directory. Thanks Deepal Hi All, I am using Hibernate with AXIS2 . My application runs stand-alone from Eclipse.However, when I try

[AXIS2]Classloader error while using Hibernate with AXIS2.

2007-01-17 Thread Hemanth, Yamini \(MSAS Sys Dev IBD\)
Hi All, I am using Hibernate with AXIS2 . My application runs stand-alone from Eclipse.However, when I try deploying it as a service on Tomcat, the class-loader is unable to load the xml files related to Hibernate. THis was because AXIS will load the service in its own classloader. One of my

Re: [Axis2] Hibernate with axis2

2006-07-19 Thread Afkham Azeez
Here are possbile reasons: 1. On jboss-4.0.0 and possibly some other versions, the hibernate2.jar and cglib-full-2.0.1.jar should be removed from the lib directories since you may have used the latest hibernate version in Axis2, which conflicts with the older version used by jboss

[Axis2] Hibernate with axis2

2006-07-18 Thread Smirnova, Natalya
Hello, Thanks for youк help. But, unfortunately, I have to use JBOSS application server. And simply to drop hibernate.jar in axis2/WEB-INF/lib folder is not work. Does anybody know how I should do in this case? Best regards, Smirnova Natalya. MERA NN /EMA/custom software

Re: [Axis2] Hibernate with axis2

2006-07-18 Thread robert lazarski
Hi Smirnova, Axis2 and Hibernate play just fine together in a Jboss environment - I've been doing just that for several months now. Your hibernate jars go in server/default/lib/ or server/all/lib/ . Your Axis2 config would be just as any WAR config, and place that WAR in your EAR. HTH, Robert

Re: [Axis2] Hibernate with axis2

2006-07-18 Thread robert lazarski
Hi Smirnova, Axis2 and Hibernate play just fine together in a Jboss environment - I've been doing just that for several months now. Your hibernate jars go in server/default/lib/ or server/all/lib/ . Your Axis2 config would be just as any WAR config, and place that WAR in your EAR. HTH, Robert