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
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
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
-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
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
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
...@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
, 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
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,
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
...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
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
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
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
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
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
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
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
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
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
[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
@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
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
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
r.debug("loading spring context file " + url);
}
if (url == null) {
urls[i] = null;
} else {
urls[i] = url.toString();
}
i++;
}
return urls;
}
}
______
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
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
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
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
:
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
;
}
}
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
: 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
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
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
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
://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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
51 matches
Mail list logo