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 ndthuy
; > irrespective of the service scope this method will be >>> >> >> > >>> >> >> > * called >>> >> >> > >>> >> >> > * @param ctxIgnore ctxIgnore >>> >> >> > >>> >> >> > * @param ignore ignore >>> >> >> > >>> >> >> > */ >>> >

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread Martin Gainty
Original Message - From: "ndthuy" <[EMAIL PROTECTED]> To: 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 receive the following errors: >

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread ndthuy
t; /** >> >> >> > >> >> >> > * this will be called during the deployement time of the >> >> service. >> >> >> > irrespective of the service scope this method >> >> >> > >> >> >> > * will be called >> >> >> > >> >> >> > * @param ignore ignore >> >> >> > >> >> >> > * @param

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread robert lazarski
; // By Default Spring uses > >> >> > Thread.currentThread().getContextClassLoader() to load > >> >> > > >> >> > // classes. When in the context of a Axis2 Service, we want > >> to > >> >> > use the Service ClassLoader > >> >> > > >> >> > // instead of the context (or in this case webapp) > >> ClassLoader. > >> >> > Therefore, we ne

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread ndthuy
ClassLoader equal to the Service >> ClassLoader >> >> > while we are loading the spring >> >> > >> >> > // context files. Once the spring context is loaded, we set >> the >> >> > context ClassLoader back to >> >> > >> >> > // what is was before. >> >> > >> >> > ClassLoader contextCl = >>

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-03 Thread robert lazarski
extParam, ClassLoader cl) { > > StringTokenizer tokenizer = new > StringTokenizer(springContextParam, ","); > > String[] urls = new String[tokenizer.countTokens()]; > > int i = 0; > > > > if (logger.isDebugEnabled()) { > > logger.debug("Class

Re: Problem with Using Spring and Hibernate with Axis2

2007-12-02 Thread Anthony Bull
ll; } else { urls[i] = url.toString(); } i++; } return urls; } } ________ 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

RE: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
> > > springAdminRetrieveUserService > > true > true > mep="http://www.w3.org/ns/wsdl/in-out";> > urn:retrie

RE: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
some JSPs that call my POJO services as well. That is when I >> decided to move all of my services into the war file. After a few bumps >> in the road, which Robert was able to help me through, everything was up >> and running. >> >> >> -Original Messag

RE: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
to:[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 > with the TCCL for that and its the recommended approach

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread Martin Gainty
Message - From: "ndthuy" <[EMAIL PROTECTED]> To: 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

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread robert lazarski
appCtx = new > >> > ClassPathXmlApplicationContext(springContextFiles, false); > >> > > >> > > >> > > >> > // save the spring context in a static class > >> > > >> > Axis2SpringContextHold

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
lder.setContext(appCtx); >> > >> > >> > >> > appCtx.setClassLoader(classLoader); >> > >> > appCtx.refresh(); >> > >> > >> > >> > // set the context ClassLoader back to the webapp ClassLoader >> > >> > Thread.curren

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread robert lazarski
/** > > > > * getSpringContextFileNames > > > > * @param springContextParam springContextParam > > > > * @param cl cl > > > > * @return String[] spring context file names > > > > */ > > > > private String[] getSpringContextFileNames(String > > springContextParam, ClassLoader

RE: Problem with Using Spring and Hibernate with Axis2

2007-11-30 Thread ndthuy
cl); > > logger.debug("Token count = " + tokenizer.countTokens()); > > logger.debug("Context files = " + springContextParam); > > } > > > > while ((tokenizer.hasMoreTokens())) { > > String contextFile = ((String) > tokenize

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread Martin Gainty
start with a working Spring axis2 webservice sample http://ws.apache.org/axis2/1_3/spring.html and iterate to your ultimate goal M-- - Original Message - From: "robert lazarski" <[EMAIL PROTECTED]> To: Sent: Thursday, November 29, 2007 1:32 PM Subject: Re: Problem with

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread Anthony Bull
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 where the only way around it is t

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread ndthuy
All, When I am not using axis2, I don't have any problem with loading applicationContext.xml iksrazal wrote: > > Remove 'parameter name="ServiceClass"' entries - they should be there > when using spring beans in your service.xml . > > Beyond that, looks like you have a spring issue and not an

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread robert lazarski
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 beans in your service.xml . > > Beyond that,

Re: Problem with Using Spring and Hibernate with Axis2

2007-11-29 Thread robert lazarski
Remove 'parameter name="ServiceClass"' entries - they should be there when using spring beans in your service.xml . Beyond that, looks like you have a spring issue and not an axis2 issue - you seem to have problems with this area: > class="com.cvg.ap.service.privateservic