Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 47178 invoked from network); 5 Oct 2007 14:07:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 14:07:29 -0000 Received: (qmail 37327 invoked by uid 500); 5 Oct 2007 14:07:16 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 37298 invoked by uid 500); 5 Oct 2007 14:07:16 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 37289 invoked by uid 99); 5 Oct 2007 14:07:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 07:07:16 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of egilmezbilek@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 14:07:15 +0000 Received: by py-out-1112.google.com with SMTP id u77so1257581pyb for ; Fri, 05 Oct 2007 07:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Pm/K1Fc7eF+tvvdBBiYVZ1e98imcoDhR1YESHCQxqMI=; b=frAm56XPfxEuhragTee0QPyOXko8fT7PuyK/Hi4FPRmdf6+Je8Tb5PjTNSDLfI51yrinnICQy9WgVHzqn45OCxos5qbgbmwWivByR98NSAg6zTUd7ZsqbNxO/HQzEbmcOS+YjR7WoMCI5vofc0YIwT8Fg1Xj/caUht78046jsxo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=JQfYntcEVtvsCElkchHzaxc4KP7b5hsrDrFTTynmuQv4rGD3EI1jwxlPBMDvaTnVtfhUCSCcvHYpRviPNtVKtA9MHIbNxkQ2TCMht05mW6XyjkBJAL3IwZZy/Rn7Rf2x0sxNkFbLBxRgNeeU9Jz8rBQiSOCXSRVrCPcqux/IL3U= Received: by 10.65.44.5 with SMTP id w5mr644201qbj.1191593213250; Fri, 05 Oct 2007 07:06:53 -0700 (PDT) Received: by 10.65.210.14 with HTTP; Fri, 5 Oct 2007 07:06:52 -0700 (PDT) Message-ID: <9555ec7f0710050706t158be87bs9a4c708d107133f0@mail.gmail.com> Date: Fri, 5 Oct 2007 17:06:52 +0300 From: "Mustafa Egilmezbilek" To: cxf-user@incubator.apache.org Subject: Re: WebServiceContext is null In-Reply-To: <13058080.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24924_12607306.1191593213019" References: <9555ec7f0709270714r5e5ebdf5wae6055857ad33698@mail.gmail.com> <13041285.post@talk.nabble.com> <9555ec7f0710042248o38ff1d2co26960ff99a0966a3@mail.gmail.com> <13053961.post@talk.nabble.com> <9555ec7f0710042324n4efea84eq2e4cc9f5316dbd99@mail.gmail.com> <9555ec7f0710050005m43d7fa99r7e8ac0c5ae846fd5@mail.gmail.com> <13057319.post@talk.nabble.com> <9555ec7f0710050442n4fafe11aqce9fa7b42ef586ba@mail.gmail.com> <9555ec7f0710050503k79054867kf80c31e1e7a3d779@mail.gmail.com> <13058080.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24924_12607306.1191593213019 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline @Transactional annotation did not help either. I guess Facade solution might be the only solution for now ... Thanks, On 10/5/07, Willem2 wrote: > > > Yes , the key is we can't inject the WebContext resource into implementor > which is enhanced by Spring AOP. > > Can try you add the transaction annotation to setWsContext method? > > And there is an another way to walk around it just by adding a facade > which > do not use any Spring AOP stuff and wraps the real Business logical into > the > facade. > > Willem. > > > blacksheep wrote: > > > > Willem, > > > > I tested by removing , and worked well. I got the > > WebServiceContext. But when I put it back I got null again. > > > > > > On 10/5/07, Mustafa Egilmezbilek wrote: > >> > >> :( > >> > >> Still null pointer exception > >> > >> You said your tests were successful. Which jdk are you using. Do you > >> think > >> it might be because of jdk 1.6 ? > >> > >> > >> On 10/5/07, Willem2 wrote: > >> > > >> > > >> > Hi, > >> > > >> > Can you define the below method in your implementor's interface? > >> > void setWsContext(final WebServiceContext wsContext) ; > >> > We could add the annotation @WebMethod(exclude = true) in the method > to > >> > exclude it from the wsdl operation. > >> > > >> > Sprint Dynamical Proxy is based on the interface, so we need to > export > >> > this > >> > method to the proxy. > >> > > >> > Willem. > >> > > >> > > >> > blacksheep wrote: > >> > > > >> > > Willem I got the latest trunk and the got rid of the: > >> > > java.lang.IllegalArgumentException: object is not an instance of > >> > declaring > >> > > class ... exception. > >> > > > >> > > But WsbServiceContext is still null :( > >> > > > >> > > On 10/5/07, Mustafa Egilmezbilek < egilmezbilek@gmail.com> wrote: > >> > >> > >> > >> When did you commit your code ? I started to get the latest trunk > >> > version > >> > >> . > >> > >> > >> > >> Here is the stack trace (looks like the old ones): > >> > >> > >> > >> Oct 5, 2007 8:51:23 AM > >> > >> org.apache.cxf.common.annotation.AnnotationProcessor > >> > >> visitAnnotatedElement > >> > >> > >> > >> SEVERE: an AnnotationVisitor ( > >> > >> org.apache.cxf.common.injection.ResourceInjector@ecf608 ) raised > an > >> > >> exception on element public final void > >> > >> aero.tav.afis.service.ActiveFlightInfoOperationsImpl.setWebContext > ( > >> > >> javax.xml.ws.WebServiceContext ). > >> > >> java.lang.IllegalArgumentException : object is not an instance of > >> > >> declaring > >> > >> class > >> > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > >> at sun.reflect.NativeMethodAccessorImpl.invoke( > >> > >> NativeMethodAccessorImpl.java :39) > >> > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> DelegatingMethodAccessorImpl.java:25) > >> > >> at java.lang.reflect.Method.invoke(Method.java:597) > >> > >> at > >> org.apache.cxf.common.injection.ResourceInjector.invokeSetter( > >> > >> ResourceInjector.java:241) > >> > >> at > org.apache.cxf.common.injection.ResourceInjector.visitMethod( > >> > >> ResourceInjector.java :185) > >> > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > >> at sun.reflect.NativeMethodAccessorImpl.invoke ( > >> > >> NativeMethodAccessorImpl.java:39) > >> > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke ( > >> > >> DelegatingMethodAccessorImpl.java:25) > >> > >> at java.lang.reflect.Method.invoke(Method.java:597) > >> > >> at > >> > >> > >> > > >> > org.apache.cxf.common.annotation.AnnotationProcessor.visitAnnotatedElement > ( > >> > >> AnnotationProcessor.java:131) > >> > >> at > >> > >> > org.apache.cxf.common.annotation.AnnotationProcessor.processMethods > >> > >> (AnnotationProcessor.java:103) > >> > >> at org.apache.cxf.common.annotation.AnnotationProcessor.accept( > >> > >> AnnotationProcessor.java :90) > >> > >> at org.apache.cxf.common.injection.ResourceInjector.inject( > >> > >> ResourceInjector.java:81) > >> > >> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.injectResources( > >> > >> JaxWsServerFactoryBean.java:201) > >> > >> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.init ( > >> > >> JaxWsServerFactoryBean.java:157) > >> > >> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create ( > >> > >> JaxWsServerFactoryBean.java:150) > >> > >> at org.apache.cxf.jaxws.EndpointImpl.getServer( > EndpointImpl.java > >> > :291) > >> > >> at org.apache.cxf.jaxws.EndpointImpl.doPublish > >> > >> (EndpointImpl.java :231) > >> > >> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java > >> > :182) > >> > >> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java > >> > :344) > >> > >> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native > Method) > >> > >> at sun.reflect.NativeMethodAccessorImpl.invoke( > >> > >> NativeMethodAccessorImpl.java:39) > >> > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> DelegatingMethodAccessorImpl.java :25) > >> > >> at java.lang.reflect.Method.invoke (Method.java:597) > >> > >> at > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod > >> > >> (AbstractAutowireCapableBeanFactory.java :1240) > >> > >> at > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods > >> > ( > >> > >> AbstractAutowireCapableBeanFactory.java:1205) > >> > >> at > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean > >> > >> (AbstractAutowireCapableBeanFactory.java:1171) > >> > >> at > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > ( > >> > >> AbstractAutowireCapableBeanFactory.java:425) > >> > >> at > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject > >> > ( > >> > >> AbstractBeanFactory.java:251) > >> > >> at > >> > >> > >> > > >> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > >> > ( > >> > >> DefaultSingletonBeanRegistry.java:156) > >> > >> at > >> > >> > >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean( > >> > >> AbstractBeanFactory.java:248) > >> > >> at > >> > >> > >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean( > >> > >> AbstractBeanFactory.java:160) > >> > >> at > >> > >> > >> > > >> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons > >> > >> (DefaultListableBeanFactory.java:287) > >> > >> at > >> > >> > >> > > org.springframework.context.support.AbstractApplicationContext.refresh > >> ( > >> > >> AbstractApplicationContext.java:352) > >> > >> at > >> > >> > >> > > >> > org.springframework.web.context.ContextLoader.createWebApplicationContext > >> > ( > >> > >> ContextLoader.java:244) > >> > >> at > >> > >> > >> > > >> org.springframework.web.context.ContextLoader.initWebApplicationContext > ( > >> > >> ContextLoader.java:187) > >> > >> at > >> > >> > >> > > >> > org.springframework.web.context.ContextLoaderListener.contextInitialized > >> > ( > >> > >> ContextLoaderListener.java:49) > >> > >> at org.apache.catalina.core.StandardContext.listenerStart ( > >> > >> StandardContext.java :3827) > >> > >> at > >> > >> org.apache.catalina.core.StandardContext.start( > StandardContext.java > >> > >> :4334) > >> > >> at org.apache.catalina.core.ContainerBase.start ( > >> > ContainerBase.java > >> > >> :1045) > >> > >> at org.apache.catalina.core.StandardHost.start > >> > >> (StandardHost.java:719) > >> > >> at org.apache.catalina.core.ContainerBase.start( > >> > ContainerBase.java > >> > >> :1045) > >> > >> at org.apache.catalina.core.StandardEngine.start( > >> > StandardEngine.java > >> > >> :443) > >> > >> at org.apache.catalina.core.StandardService.start ( > >> > >> StandardService.java:516) > >> > >> at org.apache.catalina.core.StandardServer.start( > >> > StandardServer.java > >> > >> :710) > >> > >> at org.apache.catalina.startup.Catalina.start(Catalina.java > :566) > >> > >> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native > Method) > >> > >> at sun.reflect.NativeMethodAccessorImpl.invoke( > >> > >> NativeMethodAccessorImpl.java:39) > >> > >> at sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> DelegatingMethodAccessorImpl.java :25) > >> > >> at java.lang.reflect.Method.invoke (Method.java:597) > >> > >> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java > >> > :288) > >> > >> at > >> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > >> > >> > >> > >> On 10/5/07, Willem2 wrote: > >> > >> > > >> > >> > > >> > >> > Can you show me the stack trace and try the code that I just > >> > committed > >> > >> > ? > >> > >> > Willem. > >> > >> > > >> > >> > > >> > >> > blacksheep wrote: > >> > >> > > > >> > >> > > Hi Willem, > >> > >> > > > >> > >> > > Mine still fails :( Last version of my code is like this: > >> > >> > > > >> > >> > > public WebServiceContext wsContext; > >> > >> > > > >> > >> > > @Resource > >> > >> > > public final void setWsContext(final WebServiceContext > >> > wsContext) > >> > >> > { > >> > >> > > this.wsContext = wsContext; > >> > >> > > } > >> > >> > > > >> > >> > > > >> > >> > > On 10/4/07, Willem2 < ning.jiang@iona.com> wrote: > >> > >> > >> > >> > >> > >> > >> > >> > >> Hi, > >> > >> > >> > >> > >> > >> I just get the unit test workable :) > >> > >> > >> Can you try it with the setter Resource annotation? > >> > >> > >> > >> > >> > >> Willem. > >> > >> > >> > >> > >> > >> > >> > >> > >> Willem2 wrote: > >> > >> > >> > > >> > >> > >> > OK, on the bright side, we have a small test case to show > how > >> > to > >> > >> > get > >> > >> > >> the > >> > >> > >> > exception. > >> > >> > >> > I will try to dig the resource injection part then :) > >> > >> > >> > > >> > >> > >> > Willem. > >> > >> > >> > > >> > >> > >> > > >> > >> > >> > blacksheep wrote: > >> > >> > >> >> > >> > >> > >> >> I did it already but no luck :( > >> > >> > >> >> > >> > >> > >> >> On 10/4/07, Willem2 wrote: > >> > >> > >> >>> > >> > >> > >> >>> > >> > >> > >> >>> Can you try to remove the @Resource for the wsContext > class > >> > >> > member? > >> > >> > >> >>> I just wrote some tests on the proxy object injection, I > >> > always > >> > >> > get > >> > >> > >> some > >> > >> > >> >>> java.lang.IllegalArgumentException here. :( > >> > >> > >> >>> > >> > >> > >> >>> Willem. > >> > >> > >> >>> > >> > >> > >> >>> blacksheep wrote: > >> > >> > >> >>> > > >> > >> > >> >>> > I noticed it and set endorsing lib to use jaxb-2.1.jar. > >> > >> > >> >>> > > >> > >> > >> >>> > By the way I changed my code to: > >> > >> > >> >>> > @Resource > >> > >> > >> >>> > public WebServiceContext wsContext; > >> > >> > >> >>> > > >> > >> > >> >>> > @Resource > >> > >> > >> >>> > public final void setWebContext(final > >> > WebServiceContext > >> > >> > >> wsContext) > >> > >> > >> >>> { > >> > >> > >> >>> > this.wsContext = wsContext; > >> > >> > >> >>> > } > >> > >> > >> >>> > > >> > >> > >> >>> > Is this right because I still got the problem: > >> > >> > >> >>> > > >> > >> > >> >>> > SEVERE: an AnnotationVisitor ( > >> > >> > >> >>> > org.apache.cxf.common.injection.ResourceInjector@ecf608 > ) > >> > >> raised > >> > >> > an > >> > >> > >> >>> > exception > >> > >> > >> >>> > on element public javax.xml.ws.WebServiceContext > >> > >> > >> >>> > > >> > >> aero.tav.afis.service.ActiveFlightInfoOperationsImpl.wsContext. > >> > >> > >> >>> > java.lang.IllegalArgumentException : Can not set > >> > >> > >> >>> > javax.xml.ws.WebServiceContext field > >> > >> > >> >>> > > >> > >> aero.tav.afis.service.ActiveFlightInfoOperationsImpl.wsContextto > >> > >> > >> >>> $Proxy32 > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> > >> > >> > >> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException( > >> > >> > >> >>> > UnsafeFieldAccessorImpl.java:146) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> > >> > sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException > >> > >> > >> ( > >> > >> > >> >>> > UnsafeFieldAccessorImpl.java :150) > >> > >> > >> >>> > at sun.reflect.UnsafeFieldAccessorImpl.ensureObj ( > >> > >> > >> >>> > UnsafeFieldAccessorImpl.java:37) > >> > >> > >> >>> > at sun.reflect.UnsafeObjectFieldAccessorImpl.set( > >> > >> > >> >>> > UnsafeObjectFieldAccessorImpl.java:57) > >> > >> > >> >>> > at java.lang.reflect.Field.set(Field.java:657) > >> > >> > >> >>> > at > >> > >> > >> org.apache.cxf.common.injection.ResourceInjector.injectField( > >> > >> > >> >>> > ResourceInjector.java :273) > >> > >> > >> >>> > at > >> > >> > org.apache.cxf.common.injection.ResourceInjector.visitField( > >> > >> > >> >>> > ResourceInjector.java :164) > >> > >> > >> >>> > at > >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >> > >> > Method) > >> > >> > >> >>> > at sun.reflect.NativeMethodAccessorImpl.invoke ( > >> > >> > >> >>> > NativeMethodAccessorImpl.java:39) > >> > >> > >> >>> > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> > >> >>> > DelegatingMethodAccessorImpl.java:25) > >> > >> > >> >>> > at java.lang.reflect.Method.invoke(Method.java:597) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.apache.cxf.common.annotation.AnnotationProcessor.visitAnnotatedElement > >> > >> > >> >>> ( > >> > >> > >> >>> > AnnotationProcessor.java:131) > >> > >> > >> >>> > at > >> > >> > >> >>> > >> > >> > > >> org.apache.cxf.common.annotation.AnnotationProcessor.processFields( > >> > >> > >> >>> > AnnotationProcessor.java :110) > >> > >> > >> >>> > at > >> > >> > org.apache.cxf.common.annotation.AnnotationProcessor.accept ( > >> > >> > >> >>> > AnnotationProcessor.java :89) > >> > >> > >> >>> > at > >> > >> org.apache.cxf.common.injection.ResourceInjector.inject( > >> > >> > >> >>> > ResourceInjector.java:81) > >> > >> > >> >>> > at > >> > >> > org.apache.cxf.jaxws.JaxWsServerFactoryBean.injectResources( > >> > >> > >> >>> > JaxWsServerFactoryBean.java:201) > >> > >> > >> >>> > at org.apache.cxf.jaxws.JaxWsServerFactoryBean.init( > >> > >> > >> >>> > JaxWsServerFactoryBean.java:157) > >> > >> > >> >>> > at > >> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create( > >> > >> > >> >>> > JaxWsServerFactoryBean.java:150) > >> > >> > >> >>> > at org.apache.cxf.jaxws.EndpointImpl.getServer ( > >> > >> > >> EndpointImpl.java > >> > >> > >> >>> :291) > >> > >> > >> >>> > at > >> > >> > >> org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java > >> > >> > >> >>> :231) > >> > >> > >> >>> > at > >> > >> > >> >>> org.apache.cxf.jaxws.EndpointImpl.publish > >> > >> (EndpointImpl.java:182) > >> > >> > >> >>> > at > >> > >> > >> >>> org.apache.cxf.jaxws.EndpointImpl.publish > >> > >> (EndpointImpl.java:344) > >> > >> > >> >>> > at > >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >> > >> > Method) > >> > >> > >> >>> > at sun.reflect.NativeMethodAccessorImpl.invoke ( > >> > >> > >> >>> > NativeMethodAccessorImpl.java:39) > >> > >> > >> >>> > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> > >> >>> > DelegatingMethodAccessorImpl.java:25) > >> > >> > >> >>> > at java.lang.reflect.Method.invoke(Method.java:597) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod > >> > >> > >> >>> > ( AbstractAutowireCapableBeanFactory.java:1240) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods > >> > >> > >> >>> > (AbstractAutowireCapableBeanFactory.java:1205) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean > >> > >> > >> >>> > (AbstractAutowireCapableBeanFactory.java:1171) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > >> > >> > >> >>> > (AbstractAutowireCapableBeanFactory.java :425) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject( > >> > >> > >> >>> > AbstractBeanFactory.java:251) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > >> > >> > >> >>> > (DefaultSingletonBeanRegistry.java :156) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> > >> > >> > >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >> > >> > >> >>> > (AbstractBeanFactory.java :248) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> > >> > >> > >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >> > >> > >> >>> > ( AbstractBeanFactory.java:160) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons > >> > >> > >> >>> > (DefaultListableBeanFactory.java:287) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > > org.springframework.context.support.AbstractApplicationContext.refresh > >> > >> > >> ( > >> > >> > >> >>> > AbstractApplicationContext.java :352) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.web.context.ContextLoader.createWebApplicationContext > >> > ( > >> > >> > >> >>> > ContextLoader.java:244) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> org.springframework.web.context.ContextLoader.initWebApplicationContext > ( > >> > >> > >> >>> > ContextLoader.java:187) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.web.context.ContextLoaderListener.contextInitialized > >> > >> > >> >>> ( > >> > >> > >> >>> > ContextLoaderListener.java:49) > >> > >> > >> >>> > at > >> > org.apache.catalina.core.StandardContext.listenerStart( > >> > >> > >> >>> > StandardContext.java :3827) > >> > >> > >> >>> > at org.apache.catalina.core.StandardContext.start( > >> > >> > >> >>> StandardContext.java > >> > >> > >> >>> > :4334) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> > >> > >> > >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > >> > >> > >> >>> > at > >> > >> > >> org.apache.catalina.core.StandardHost.start ( > StandardHost.java > >> > >> > >> >>> :719) > >> > >> > >> >>> > at > >> > >> > >> >>> > > >> > >> > >> > >> > >> org.apache.catalina.core.ContainerBase.start (ContainerBase.java > >> > :1045) > >> > >> > >> >>> > at > >> > >> > >> >>> org.apache.catalina.core.StandardEngine.start ( > >> > >> > StandardEngine.java > >> > >> > >> >>> > :443) > >> > >> > >> >>> > at org.apache.catalina.core.StandardService.start( > >> > >> > >> >>> StandardService.java > >> > >> > >> >>> > :516) > >> > >> > >> >>> > at > >> > >> > >> >>> > >> > >> org.apache.catalina.core.StandardServer.start(StandardServer.java > >> > >> > >> >>> > :710) > >> > >> > >> >>> > at > >> > >> > >> org.apache.catalina.startup.Catalina.start (Catalina.java > :566) > >> > >> > >> >>> > at > >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >> > >> > Method) > >> > >> > >> >>> > at sun.reflect.NativeMethodAccessorImpl.invoke ( > >> > >> > >> >>> > NativeMethodAccessorImpl.java:39) > >> > >> > >> >>> > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> > >> >>> > DelegatingMethodAccessorImpl.java:25) > >> > >> > >> >>> > at java.lang.reflect.Method.invoke(Method.java:597) > >> > >> > >> >>> > at org.apache.catalina.startup.Bootstrap.start( > >> > >> > Bootstrap.java > >> > >> > >> :288) > >> > >> > >> >>> > at > >> > >> > >> org.apache.catalina.startup.Bootstrap.main (Bootstrap.java > :413) > >> > >> > >> >>> > > >> > >> > >> >>> > Thanks, > >> > >> > >> >>> > > >> > >> > >> >>> > > >> > >> > >> >>> > On 10/4/07, Willem2 < ning.jiang@iona.com> wrote: > >> > >> > >> >>> >> > >> > >> > >> >>> >> > >> > >> > >> >>> >> Hi, > >> > >> > >> >>> >> > >> > >> > >> >>> >> > >> > >> > >> >>> >> Maybe you can try it with the set method Injection. > >> > >> > >> >>> >> @Resource > >> > >> > >> >>> >> public final void setWebContext(final > >> > WebServiceContext > >> > >> > >> >>> argResource) > >> > >> > >> >>> >> { > >> > >> > >> >>> >> this.resource = argResource1; > >> > >> > >> >>> >> } > >> > >> > >> >>> >> > >> > >> > >> >>> >> BTW, > >> > >> > >> >>> >> Current CXF trunk is changing to use JAXB2.1 , so you > >> > can't > >> > >> > use > >> > >> > >> >>> jdk1.6 > >> > >> > >> >>> >> to > >> > >> > >> >>> >> build without endorsing the JAXB API. > >> > >> > >> >>> >> > >> > >> > >> >>> >> Willem. > >> > >> > >> >>> >> > >> > >> > >> >>> >> > >> > >> > >> >>> >> blacksheep wrote: > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > Hi Willem, > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > Thanks for your effort. I got the latest trunk this > >> > morning > >> > >> > but > >> > >> > >> had > >> > >> > >> >>> a > >> > >> > >> >>> >> > problem during maven install. I am using jdk1.6 and > it > >> > gave > >> > >> > me > >> > >> > >> some > >> > >> > >> >>> >> > trouble > >> > >> > >> >>> >> > . > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > I switched to jdk 1.5 and I was able to build the > >> > latest > >> > >> > trunk > >> > >> > >> but > >> > >> > >> >>> then > >> > >> > >> >>> >> my > >> > >> > >> >>> >> > test failed: > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > Oct 4, 2007 2:29:23 PM > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.apache.cxf.common.annotation.AnnotationProcessorvisitAnnotatedElement > >> > >> > >> >>> >> > SEVERE: an AnnotationVisitor ( > >> > >> > >> >>> >> > > >> org.apache.cxf.common.injection.ResourceInjector@20dcb7) > >> > >> > raised > >> > >> > >> an > >> > >> > >> >>> >> > exception > >> > >> > >> >>> >> > on element public javax.xml.ws.WebServiceContext > >> > >> > >> >>> >> > > >> > >> > aero.tav.afis.service.ActiveFlightInfoOperationsImpl.wsContext . > >> > >> > >> >>> >> > java.lang.IllegalArgumentException: Can not set > >> > >> > >> >>> >> > javax.xml.ws.WebServiceContext field > >> > >> > >> >>> >> > > >> > >> > aero.tav.afis.service.ActiveFlightInfoOperationsImpl.wsContext > >> > >> > >> to > >> > >> > >> >>> >> $Proxy32 > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> > >> > >> > > >> > sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException( > >> > >> > >> >>> >> > UnsafeFieldAccessorImpl.java:146) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> > >> > >> > > >> > sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException( > >> > >> > >> >>> >> > UnsafeFieldAccessorImpl.java :150) > >> > >> > >> >>> >> > at sun.reflect.UnsafeFieldAccessorImpl.ensureObj > ( > >> > >> > >> >>> >> > UnsafeFieldAccessorImpl.java :37) > >> > >> > >> >>> >> > at sun.reflect.UnsafeObjectFieldAccessorImpl.set( > >> > >> > >> >>> >> > UnsafeObjectFieldAccessorImpl.java :57) > >> > >> > >> >>> >> > at java.lang.reflect.Field.set(Field.java:657) > >> > >> > >> >>> >> > at > >> > >> > >> >>> > >> org.apache.cxf.common.injection.ResourceInjector.injectField( > >> > >> > >> >>> >> > ResourceInjector.java :273) > >> > >> > >> >>> >> > at > >> > >> > >> org.apache.cxf.common.injection.ResourceInjector.visitField ( > >> > >> > >> >>> >> > ResourceInjector.java:164) > >> > >> > >> >>> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0 > >> > (Native > >> > >> > >> Method) > >> > >> > >> >>> >> > at sun.reflect.NativeMethodAccessorImpl.invoke( > >> > >> > >> >>> >> > NativeMethodAccessorImpl.java :39) > >> > >> > >> >>> >> > at > >> sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> > >> >>> >> > DelegatingMethodAccessorImpl.java:25) > >> > >> > >> >>> >> > at java.lang.reflect.Method.invoke (Method.java > >> > :597) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.apache.cxf.common.annotation.AnnotationProcessor.visitAnnotatedElement > >> > >> > >> >>> >> ( > >> > >> > >> >>> >> > AnnotationProcessor.java :131) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > >> > >> > >> > >> > org.apache.cxf.common.annotation.AnnotationProcessor.processFields ( > >> > >> > >> >>> >> > AnnotationProcessor.java:110) > >> > >> > >> >>> >> > at > >> > >> > >> org.apache.cxf.common.annotation.AnnotationProcessor.accept ( > >> > >> > >> >>> >> > AnnotationProcessor.java:89) > >> > >> > >> >>> >> > at > >> > >> > org.apache.cxf.common.injection.ResourceInjector.inject( > >> > >> > >> >>> >> > ResourceInjector.java:81) > >> > >> > >> >>> >> > at > >> > >> > >> org.apache.cxf.jaxws.JaxWsServerFactoryBean.injectResources ( > >> > >> > >> >>> >> > JaxWsServerFactoryBean.java:201) > >> > >> > >> >>> >> > at > >> org.apache.cxf.jaxws.JaxWsServerFactoryBean.init( > >> > >> > >> >>> >> > JaxWsServerFactoryBean.java:157) > >> > >> > >> >>> >> > at > >> > org.apache.cxf.jaxws.JaxWsServerFactoryBean.create( > >> > >> > >> >>> >> > JaxWsServerFactoryBean.java :150) > >> > >> > >> >>> >> > at > >> > >> > >> >>> org.apache.cxf.jaxws.EndpointImpl.getServer( > >> > EndpointImpl.java > >> > >> > >> >>> >> :291) > >> > >> > >> >>> >> > at > >> > >> > >> >>> org.apache.cxf.jaxws.EndpointImpl.doPublish( > >> > EndpointImpl.java > >> > >> > >> >>> >> :231) > >> > >> > >> >>> >> > at org.apache.cxf.jaxws.EndpointImpl.publish( > >> > >> > >> EndpointImpl.java > >> > >> > >> >>> :182) > >> > >> > >> >>> >> > at org.apache.cxf.jaxws.EndpointImpl.publish ( > >> > >> > >> EndpointImpl.java > >> > >> > >> >>> :344) > >> > >> > >> >>> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0 > >> > (Native > >> > >> > >> Method) > >> > >> > >> >>> >> > at sun.reflect.NativeMethodAccessorImpl.invoke ( > >> > >> > >> >>> >> > NativeMethodAccessorImpl.java :39) > >> > >> > >> >>> >> > at > >> sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> > >> >>> >> > DelegatingMethodAccessorImpl.java:25) > >> > >> > >> >>> >> > at java.lang.reflect.Method.invoke (Method.java > >> > :597) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod > >> > >> > >> >>> >> > (AbstractAutowireCapableBeanFactory.java :1240) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods > >> > >> > >> >>> >> > (AbstractAutowireCapableBeanFactory.java:1205) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean > >> > >> > >> >>> >> > ( AbstractAutowireCapableBeanFactory.java:1171) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean > >> > >> > >> >>> >> > (AbstractAutowireCapableBeanFactory.java:425) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject > >> > >> > ( > >> > >> > >> >>> >> > AbstractBeanFactory.java:251) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton > >> > >> > >> >>> >> > ( DefaultSingletonBeanRegistry.java :156) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >> > >> > >> >>> >> > ( AbstractBeanFactory.java:248) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> > >> > >> > > >> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >> > >> > >> >>> >> > ( AbstractBeanFactory.java:160) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons > >> > >> > >> >>> >> > (DefaultListableBeanFactory.java:287) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > > org.springframework.context.support.AbstractApplicationContext.refresh > >> > >> ( > >> > >> > >> >>> >> > AbstractApplicationContext.java:352) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.web.context.ContextLoader.createWebApplicationContext > >> > >> > ( > >> > >> > >> >>> >> > ContextLoader.java:244) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > > org.springframework.web.context.ContextLoader.initWebApplicationContext > >> > >> > >> >>> ( > >> > >> > >> >>> >> > ContextLoader.java :187) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.web.context.ContextLoaderListener.contextInitialized > >> > >> > >> >>> >> ( > >> > >> > >> >>> >> > ContextLoaderListener.java:49) > >> > >> > >> >>> >> > at > >> > >> > org.apache.catalina.core.StandardContext.listenerStart( > >> > >> > >> >>> >> > StandardContext.java :3827) > >> > >> > >> >>> >> > at > org.apache.catalina.core.StandardContext.start( > >> > >> > >> >>> >> StandardContext.java > >> > >> > >> >>> >> > :4334) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> org.apache.catalina.core.ContainerBase.start( > >> > ContainerBase.java > >> > >> > :1045) > >> > >> > >> >>> >> > at > >> > >> > >> >>> org.apache.catalina.core.StandardHost.start ( > >> > StandardHost.java > >> > >> > >> >>> >> :719) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> > > >> > >> > >> >>> org.apache.catalina.core.ContainerBase.start( > >> > ContainerBase.java > >> > >> > :1045) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> org.apache.catalina.core.StandardEngine.start ( > >> > >> > StandardEngine.java > >> > >> > >> >>> >> > :443) > >> > >> > >> >>> >> > at > org.apache.catalina.core.StandardService.start( > >> > >> > >> >>> >> StandardService.java > >> > >> > >> >>> >> > :516) > >> > >> > >> >>> >> > at > >> > >> > >> >>> >> org.apache.catalina.core.StandardServer.start ( > >> > >> > StandardServer.java > >> > >> > >> >>> >> > :710) > >> > >> > >> >>> >> > at > >> > >> > >> >>> org.apache.catalina.startup.Catalina.start (Catalina.java > >> > :566) > >> > >> > >> >>> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0 > >> > (Native > >> > >> > >> Method) > >> > >> > >> >>> >> > at sun.reflect.NativeMethodAccessorImpl.invoke ( > >> > >> > >> >>> >> > NativeMethodAccessorImpl.java:39) > >> > >> > >> >>> >> > at > >> sun.reflect.DelegatingMethodAccessorImpl.invoke( > >> > >> > >> >>> >> > DelegatingMethodAccessorImpl.java :25) > >> > >> > >> >>> >> > at > >> java.lang.reflect.Method.invoke(Method.java:597) > >> > >> > >> >>> >> > at > >> > >> > >> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java > >> > >> > >> >>> :288) > >> > >> > >> >>> >> > at > >> > >> > >> >>> org.apache.catalina.startup.Bootstrap.main ( > Bootstrap.java > >> > :413) > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > Thanks, > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > On 10/4/07, Willem2 wrote: > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> Hi blacksheep, > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> I just committed a quick fix for CXF-1074. Can you > >> > test it > >> > >> > (the > >> > >> > >> >>> trunk > >> > >> > >> >>> >> >> version of CXF) with your application? > >> > >> > >> >>> >> >> I did not test it with your configuration file , > >> > because I > >> > >> > did > >> > >> > >> not > >> > >> > >> >>> >> have > >> > >> > >> >>> >> >> all > >> > >> > >> >>> >> >> your environments yet. > >> > >> > >> >>> >> >> Tell me if it works :) > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> Willem. > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> blacksheep wrote: > >> > >> > >> >>> >> >> > > >> > >> > >> >>> >> >> > Hi Willem, > >> > >> > >> >>> >> >> > > >> > >> > >> >>> >> >> > Any luck ? Please inform me. > >> > >> > >> >>> >> >> > > >> > >> > >> >>> >> >> > Thanks, > >> > >> > >> >>> >> >> > > >> > >> > >> >>> >> >> > > >> > >> > >> >>> >> >> > blacksheep wrote: > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> Thanks. I attached my spring configuration file. > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> On 9/30/07, Willem2 < ning.jiang@iona.com> > wrote: > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >>> I just wrote a test case of injecting the > >> > resource to > >> > >> > an > >> > >> > >> >>> enhanced > >> > >> > >> >>> >> >> >>> object > >> > >> > >> >>> >> >> >>> by > >> > >> > >> >>> >> >> >>> CGLIB, and it worked well. > >> > >> > >> >>> >> >> >>> Currently , I can't inject any resource to > >> > >> > the instance > >> > >> > >> of > >> > >> > >> >>> JDK > >> > >> > >> >>> >> >> >>> Dynamical > >> > >> > >> >>> >> >> >>> Proxy which is also a part of Spring AOP > >> solution. > >> > > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >>> Can you send me a same sample of using the > >> > >> > >> >>> tx:annotation-driven > >> > >> > >> >>> ? > >> > >> > >> >>> >> >> >>> I can test my solution with it, hope it is not > >> > >> > implemented > >> > >> > >> >>> with > >> > >> > >> >>> >> JDK > >> > >> > >> >>> >> >> >>> Dynamical Proxy. > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >>> Willem. > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >>> blacksheep wrote: > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > Hi, > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > I am using in my > >> > spring.xml > >> > >> . > >> > >> > >> >>> >> >> >>> > What's the workaround for this case ? > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > Thanks, > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > Karakoyun > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > On 9/28/07, Willem Jiang < > ning.jiang@iona.com> > >> > >> > wrote: > >> > >> > >> >>> >> >> >>> >> > >> > >> > >> >>> >> >> >>> >> Hi , > >> > >> > >> >>> >> >> >>> >> > >> > >> > >> >>> >> >> >>> >> How do you set up your endpoint implementor? > >> > >> > >> >>> >> >> >>> >> > >> > >> > >> >>> >> >> >>> >> I know there is an issue that if your > >> > implementor > >> > >> > is > >> > >> > >> came > >> > >> > >> >>> from > >> > >> > >> >>> >> a > >> > >> > >> >>> >> >> >>> Spring > >> > >> > >> >>> >> >> >>> >> bean which is enhanced by Spirng AOP will > not > >> > get > >> > >> > any > >> > >> > >> >>> >> >> >>> WebServiceContext > >> > >> > >> >>> >> >> >>> >> resource injected. > >> > >> > >> >>> >> >> >>> >> > >> > >> > >> >>> >> >> >>> >> You can find the detail information about > the > >> > JIRA > >> > >> > here > >> > >> > >> [1] > >> > >> > >> >>> >> >> >>> >> > >> > [1]https://issues.apache.org/jira/browse/CXF-1074 > >> > >> > >> >>> >> >> >>> >> > >> > >> > >> >>> >> >> >>> >> Willem. > >> > >> > >> >>> >> >> >>> >> > >> > >> > >> >>> >> >> >>> >> > >> > >> > >> >>> >> >> >>> >> Mustafa Egilmezbilek wrote: > >> > >> > >> >>> >> >> >>> >> > Hi, > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > I am trying to access WebServiceContext to > >> be > >> > >> able > >> > >> > use > >> > >> > >> >>> >> >> HttpSession > >> > >> > >> >>> >> >> >>> as > >> > >> > >> >>> >> >> >>> >> > described in: > >> > >> > >> >>> >> >> >>> > >> > >> http://cwiki.apache.org/CXF20DOC/servlet-transport.html > >> > >> > > >> > >> > >> >>> >> >> >>> , > >> > >> > >> >>> >> >> >>> >> but I > >> > >> > >> >>> >> >> >>> >> > keep getting null. What might be the > reason > >> ? > >> > > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > @Resource > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > *public* WebServiceContext wsContext; > >> > >> > >> >>> >> >> >>> >> > protected HttpSession getHttpSession() { > >> > >> > >> >>> >> >> >>> >> > MessageContext mc = > >> > >> > *wsContext*.getMessageContext(); > >> > >> > >> >>> >> >> >>> >> > HttpSession session = > >> > >> > >> >>> >> >> >>> ((javax.servlet.http.HttpServletRequest > >> > >> > >> >>> >> >> >>> >> > )mc.get( > >> > >> > >> MessageContext.SERVLET_REQUEST)).getSession(); > >> > >> > >> >>> >> >> >>> >> > return session; > >> > >> > >> >>> >> >> >>> >> > } > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > Thanks, > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > Karakoyun > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > > >> > >> > >> >>> >> >> >>> >> > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > -- > >> > >> > >> >>> >> >> >>> > Mustafa Egilmezbilek > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >>> -- > >> > >> > >> >>> >> >> >>> View this message in context: > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > >> > http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a12961806 > >> > > >> > >> > > >> > >> > >> > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> >>> Sent from the cxf-user mailing list archive at > >> > >> > Nabble.com. > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >>> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> -- > >> > >> > >> >>> >> >> >> Mustafa Egilmezbilek > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> > >> > >> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance > >> > >> > " > >> > >> > >> >>> >> >> >> xmlns:jaxws="http://cxf.apache.org/jaxws " > >> > >> > >> >>> >> >> >> xmlns:tx=" > >> > >> http://www.springframework.org/schema/tx > >> > >> > " > >> > >> > >> >>> >> >> >> xsi:schemaLocation=" > >> > >> > >> >>> >> http://www.springframework.org/schema/beans > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> > >> > >> > >> > >> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > >> > >> > >> > >> > >> > >> >>> >> >> >> http://cxf.apache.org/jaxws > >> > >> > >> >>> >> >> >> file:///C:/tools/WebServices/apache- > >> > >> cxf-2.0.2-incubator > >> > >> > >> >>> >> /xsd/jaxws.xsd > >> > >> > >> >>> >> >> >> > >> > http://www.springframework.org/schema/tx > >> > >> > >> >>> >> >> >> > >> > >> > http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > resource="classpath:META-INF/cxf/cxf.xml" > >> > >> > /> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> resource="classpath:META-INF/cxf/cxf- > extension-soap.xml > >> > >> > >> >>> >> " > >> > >> > >> >>> >> >> /> > >> > >> > >> >>> >> >> >> resource="classpath:META-INF/cxf/cxf- > >> > >> > >> servlet.xml " > >> > >> > >> >>> /> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> implementor="#activeFlightInfoOps" > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> implementorClass=" > >> > >> > aero.tav.afis.service.ActiveFlightInfoOperationsImpl " > >> > >> > >> >>> >> >> >> address="/ActiveFlightOperations" /> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> class=" > >> > >> > >> >>> >> >> > >> > >> > >> >>> > >> > >> > > org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean > >> > "> > >> > >> > >> >>> >> >> >> >> > >> > ref="dataSource" /> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> class=" > >> > >> > >> >>> >> >> > >> > >> org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter "> > >> > >> > >> >>> >> >> >> >> > name="showSql" > >> > >> > >> >>> value="true" > >> > >> > >> >>> >> /> > >> > >> > >> >>> >> >> >> >> > >> > name="generateDdl" > >> > >> > >> >>> >> value="true" > >> > >> > >> >>> >> >> /> > >> > >> > >> >>> >> >> >> >> > name="database" > >> > >> > >> >>> >> value="ORACLE" > >> > >> > >> >>> >> >> /> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> class=" > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver > >> > >> > >> >>> >> >> "/> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> class=" > >> > >> > >> >>> >> >> > >> > >> org.springframework.jdbc.datasource.DriverManagerDataSource "> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> value=" > >> > >> > >> oracle.jdbc.driver.OracleDriver" > >> > >> > >> >>> /> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> > >> > >> > >> >>> value="jdbc:oracle:thin:@localhost:1521:XE" > >> > >> > >> >>> /> > >> > >> > >> >>> >> >> >> >> value="XXXX" > >> > /> > >> > >> > >> >>> >> >> >> >> value="ZZZZ" > >> > /> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> class=" > >> > >> > >> >>> >> org.springframework.orm.jpa.JpaTransactionManager > >> > >> > >> >>> >> >> "> > >> > >> > >> >>> >> >> >> name="entityManagerFactory" > >> > >> > >> >>> >> >> >> ref="entityManagerFactory" > /> > >> > >> > >> >>> >> >> >> >> > >> > ref="dataSource" /> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> class=" > >> > >> > >> >>> >> >> > >> aero.tav.afis.service.ActiveFlightInfoOperationsImpl"> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> ref="serviceUsageDao" > >> > >> > >> >>> >> /> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> >> > >> > >> >>> >> >> >> class=" > >> > aero.tav.afis.dao.ServiceUsageDao "> > >> > >> > >> >>> >> >> >> name="entityManagerFactory" > >> > >> > >> >>> >> >> ref="entityManagerFactory" /> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> >> > >> > >> > >> >>> >> >> > > >> > >> > >> >>> >> >> > > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> -- > >> > >> > >> >>> >> >> View this message in context: > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a13032959 > >> > > >> > >> > >> > >> > >> > >> >>> >> >> Sent from the cxf-user mailing list archive at > >> > Nabble.com > >> > >> . > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> >> > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > -- > >> > >> > >> >>> >> > Mustafa Egilmezbilek > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > > >> > >> > >> >>> >> > >> > >> > >> >>> >> -- > >> > >> > >> >>> >> View this message in context: > >> > >> > >> >>> >> > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a13039120 > >> > >> > >> > >> > >> > >> >>> >> Sent from the cxf-user mailing list archive at > >> Nabble.com > >> > . > >> > >> > >> >>> >> > >> > >> > >> >>> >> > >> > >> > >> >>> > > >> > >> > >> >>> > > >> > >> > >> >>> > -- > >> > >> > >> >>> > Mustafa Egilmezbilek > >> > >> > >> >>> > > >> > >> > >> >>> > > >> > >> > >> >>> > >> > >> > >> >>> -- > >> > >> > >> >>> View this message in context: > >> > >> > >> >>> > >> > >> > >> > >> > >> > > >> > >> > >> > > >> > http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a13040302 > >> > >> > >> >>> Sent from the cxf-user mailing list archive at Nabble.com > . > >> > >> > >> >>> > >> > >> > >> >>> > >> > >> > >> >> > >> > >> > >> >> > >> > >> > >> >> -- > >> > >> > >> >> Mustafa Egilmezbilek > >> > >> > >> >> > >> > >> > >> >> > >> > >> > >> > > >> > >> > >> > > >> > >> > >> > >> > >> > >> -- > >> > >> > >> View this message in context: > >> > >> > >> > >> > >> > >> > > >> > http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a13041285 > >> > >> > > >> > >> > >> Sent from the cxf-user mailing list archive at Nabble.com. > >> > >> > >> > >> > >> > >> > >> > >> > > > >> > >> > > > >> > >> > > -- > >> > >> > > Mustafa Egilmezbilek > >> > >> > > > >> > >> > > > >> > >> > > >> > >> > -- > >> > >> > View this message in context: > >> > >> > > >> > >> > >> > http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a13053961 > >> > > >> > >> > Sent from the cxf-user mailing list archive at Nabble.com. > >> > >> > > >> > >> > > >> > >> > >> > >> > >> > >> -- > >> > >> Mustafa Egilmezbilek > >> > > > >> > > > >> > > > >> > > > >> > > -- > >> > > Mustafa Egilmezbilek > >> > > > >> > > > >> > > >> > -- > >> > View this message in context: > >> > http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a13057319 > >> > > >> > Sent from the cxf-user mailing list archive at Nabble.com. > >> > > >> > > >> > >> > >> -- > >> Mustafa Egilmezbilek > > > > > > > > > > -- > > Mustafa Egilmezbilek > > > > > > -- > View this message in context: > http://www.nabble.com/WebServiceContext-is-null-tf4528676.html#a13058080 > Sent from the cxf-user mailing list archive at Nabble.com. > > -- Mustafa Egilmezbilek ------=_Part_24924_12607306.1191593213019--