Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 21085 invoked from network); 29 Oct 2010 23:53:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Oct 2010 23:53:00 -0000 Received: (qmail 22679 invoked by uid 500); 29 Oct 2010 23:52:59 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 22604 invoked by uid 500); 29 Oct 2010 23:52:59 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 22596 invoked by uid 99); 29 Oct 2010 23:52:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 23:52:59 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bimargulies@gmail.com designates 209.85.214.41 as permitted sender) Received: from [209.85.214.41] (HELO mail-bw0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 23:52:54 +0000 Received: by bwz16 with SMTP id 16so3092457bwz.0 for ; Fri, 29 Oct 2010 16:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=qsfR/lxHJWUQJQpXNus72MUcVimS5Z1e8t+hs6Zie6Q=; b=uu/FdLtNnMC5RvQ+twV+EJFTimzKSJQmhVLoaSFlAWQT15A/jrydMZtvoD8VbOfY5v 0y9xHnqtxcwmsRqtb6YYD7GiWdDiiexZxTCYBcI6hHcqyS1iKbTie9VnDo6Q9ouG0cq9 LiYMiK/CHcKF+Vr0iVTi2JR/UbDBOvtXQ7+gU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=YCWFnGGba4ucg/lLY/YMUggFsaD6Z6b57Kcl0PmCwGr8eI+LiIeT7JsmtAD6OBEonM DusYAomgJDSfnNjn+IJ98WfgNUbMYhRdKIY9TFBazdNZMEWuzqiqcmre+sxTax6BsdC7 KwWBmYKyfIS0BdmkqsDqkp5GtC4mgjgedeTwg= MIME-Version: 1.0 Received: by 10.204.69.65 with SMTP id y1mr4766325bki.23.1288396352356; Fri, 29 Oct 2010 16:52:32 -0700 (PDT) Received: by 10.204.78.79 with HTTP; Fri, 29 Oct 2010 16:52:32 -0700 (PDT) In-Reply-To: <980053.52031.qm@web113408.mail.gq1.yahoo.com> References: <980053.52031.qm@web113408.mail.gq1.yahoo.com> Date: Fri, 29 Oct 2010 19:52:32 -0400 Message-ID: Subject: Re: Problem using LocalTransport in Tomcat From: Benson Margulies To: users@cxf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Your two ends are disagreeing about the namespace. What data binding are you using? On Fri, Oct 29, 2010 at 7:18 PM, Joe Lin wrote: > I corrected that problem. I need to setServiceClass for the factory but n= ow when I tried to make an invokation at hello2.sayHello("yo!") I'm getting= a "Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"= http://order.demo/", local:"arg0"). Expected elements are <{}arg0>". > > Any help? > > Following is the new code. > > @WebService(endpointInterface=3D"demo.order.HelloService") > public class HelloImpl implements HelloService { > > =C2=A0 =C2=A0 =C2=A0 =C2=A0@Override > =C2=A0 =C2=A0 =C2=A0 =C2=A0public String sayHello(String name) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if ( name =3D=3D n= ull ) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0name =3D "Nothing"; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0// TODO Auto-gener= ated method stub > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ClientProxyFactory= Bean factory =3D new ClientProxyFactoryBean(); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0factory.setAddress= ("local://hello"); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0factory.setService= Class(HelloService.class); //<----------- need to ass this > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0HelloService hello= 2 =3D (HelloService) factory.create(); > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Method[] methods = =3D hello2.getClass().getDeclaredMethods(); > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0name =3D hello2.sa= yHello("yo!"); =C2=A0 //<------------- JAXB problem here > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return "hello " + = name ; > =C2=A0 =C2=A0 =C2=A0 =C2=A0} > > } > --- On Fri, 10/29/10, Joe Lin wrote: > >> From: Joe Lin >> Subject: Re: Problem using LocalTransport in Tomcat >> To: users@cxf.apache.org, "Daniel Kulp" >> Date: Friday, October 29, 2010, 2:35 PM >> Thanks. That works. But now I have a >> new problem. Essentially what I'm trying to accomplish is to >> call another service on LocalTransport from on of the >> service. I have HelloImpl and HelloImpl2 all implements >> HelloService. HelloImpl2 is the service on LocalTransport >> and I'm trying to call HelloImpl2 from HelloImpl. But I'm >> getting the following exception. It failed at >> ClientProxyFactory.create(): >> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> =C2=A0=C2=A0=C2=A0 at >> javax.servlet.http.HttpServlet.service(HttpServlet.java:617) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTT= PServlet.java:159) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica= tionFilterChain.java:290) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt= erChain.java:206) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv= e.java:233) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv= e.java:191) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java= :127) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java= :102) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.= java:109) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2= 98) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85= 7) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(= Http11Protocol.java:588) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> =C2=A0=C2=A0=C2=A0 at >> java.lang.Thread.run(Thread.java:637) >> Caused by: java.lang.NullPointerException >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.checkService= ClassAnnotations(ReflectionServiceFactoryBean.java:2340) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.setServiceCl= ass(ReflectionServiceFactoryBean.java:2337) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.initializeServi= ceFactory(AbstractWSDLBasedEndpointFactory.java:230) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(= AbstractWSDLBasedEndpointFactory.java:100) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:= 90) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactory= Bean.java:105) >> =C2=A0=C2=A0=C2=A0 at >> demo.order.HelloImpl.sayHello(HelloImpl.java:19) >> =C2=A0=C2=A0=C2=A0 at >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> =C2=A0=C2=A0=C2=A0 at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39) >> =C2=A0=C2=A0=C2=A0 at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:25) >> =C2=A0=C2=A0=C2=A0 at >> java.lang.reflect.Method.invoke(Method.java:597) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(Abstrac= tInvoker.java:173) >> =C2=A0=C2=A0=C2=A0 at >> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.ja= va:89) >> =C2=A0=C2=A0=C2=A0 ... 30 more >> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> Below is my interface and implementation: >> >> >> @WebService >> public interface HelloService { >> >> =C2=A0=C2=A0=C2=A0 @WebMethod >> =C2=A0=C2=A0=C2=A0 String sayHello(String name); >> } >> >> @WebService(endpointInterface=3D"demo.order.HelloService") >> public class HelloImpl2 implements HelloService { >> >> =C2=A0=C2=A0=C2=A0 @Override >> =C2=A0=C2=A0=C2=A0 public String sayHello(String name) { >> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 if ( name =3D=3D null ) >> >> name =3D "Nothing Local"; >> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 // TODO >> Auto-generated method stub >> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 return "hello " + >> name ; >> =C2=A0=C2=A0=C2=A0 } >> >> } >> >> @WebService(endpointInterface=3D"demo.order.HelloService") >> public class HelloImpl implements HelloService { >> >> =C2=A0=C2=A0=C2=A0 @Override >> =C2=A0=C2=A0=C2=A0 public String sayHello(String name) { >> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 if ( name =3D=3D null ) >> >> name =3D "Nothing"; >> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 // TODO >> Auto-generated method stub >> >> >> ClientProxyFactoryBean factory =3D new >> ClientProxyFactoryBean(); >> >> factory.setAddress("local://hello"); >> >> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 HelloService hello2 =3D >> (HelloService) factory.create(); >> >> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 name =3D >> hello2.sayHello("yo!"); >> >> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 return "hello " + >> name ; >> =C2=A0=C2=A0=C2=A0 } >> } >> >> >> >> >> >> >> --- On Fri, 10/29/10, Daniel Kulp >> wrote: >> >> > From: Daniel Kulp >> > Subject: Re: Problem using LocalTransport in Tomcat >> > To: users@cxf.apache.org >> > Cc: "Joe Lin" >> > Date: Friday, October 29, 2010, 1:57 PM >> > >> > Hmm...=C2=A0 Sounds like its not finding the transport >> > factory for some reason. >> > >> > Can you add: >> > >> > transportId=3D"http://cxf.apache.org/transports/local" >> > >> > to the jaxws:endpoint for the local one to force it? >> > >> > Dan >> > >> > >> > >> > On Friday 29 October 2010 4:52:06 pm Joe Lin wrote: >> > > Thanks for the reply. Here is the full stack: >> > > >> > > Oct 29, 2010 12:22:39 AM >> > org.springframework.web.context.ContextLoader >> > > initWebApplicationContext SEVERE: Context >> > initialization failed >> > > >> > >> org.springframework.beans.factory.BeanCreationException: >> > Error creating >> > > bean with name 'helloLocal': Invocation of init >> method >> > failed; nested >> > > exception is javax.xml.ws.WebServiceException: >> > > java.lang.NullPointerException at >> > > >> > >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= to >> > > >> > >> ry.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) >> > at >> > > >> > >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= to >> > > >> > >> ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) >> > at >> > > >> > >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= to >> > > >> > >> ry.createBean(AbstractAutowireCapableBeanFactory.java:456) >> > at >> > > >> > >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec= t( >> > > AbstractBeanFactory.java:291) at >> > > >> > >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g= et >> > > Singleton(DefaultSingletonBeanRegistry.java:222) >> at >> > > >> > >> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(= Ab >> > > stractBeanFactory.java:288) at >> > > >> > >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab= st >> > > ractBeanFactory.java:190) at >> > > >> > >> org.springframework.beans.factory.support.DefaultListableBeanFactory.pre= In >> > > >> > >> stantiateSingletons(DefaultListableBeanFactory.java:580) at >> > > >> > >> org.springframework.context.support.AbstractApplicationContext.finishBea= nF >> > > >> > >> actoryInitialization(AbstractApplicationContext.java:895) >> > at >> > > >> > >> org.springframework.context.support.AbstractApplicationContext.refresh(A= bs >> > > tractApplicationContext.java:425) at >> > > >> > >> org.springframework.web.context.ContextLoader.createWebApplicationContex= t( >> > > ContextLoader.java:276) at >> > > >> > >> org.springframework.web.context.ContextLoader.initWebApplicationContext(= Co >> > > ntextLoader.java:197) at >> > > >> > >> org.springframework.web.context.ContextLoaderListener.contextInitialized= (C >> > > ontextLoaderListener.java:47) at >> > > >> > >> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j= av >> > > a:4135) at >> > > >> > >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4630= ) >> > > at >> > > >> > >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja= va >> > > :791) at >> > > >> > >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) >> > at >> > > >> > >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) >> > at >> > > >> > >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) >> > at >> > > >> > >> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) >> > at >> > > >> > >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) >> > at >> > > >> > >> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) >> > at >> > > >> > >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:32= 1) >> > > at >> > > >> > >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu= pp >> > > ort.java:119) at >> > > >> > >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) >> > at >> > > >> > >> org.apache.catalina.core.StandardHost.start(StandardHost.java:785) >> > at >> > > >> > >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) >> > at >> > > >> > >> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) >> > at >> > > >> > >> org.apache.catalina.core.StandardService.start(StandardService.java:519) >> > > at >> > >> org.apache.catalina.core.StandardServer.start(StandardServer.java:710) >> > > at >> > >> org.apache.catalina.startup.Catalina.start(Catalina.java:581) >> > > =C2=A0=C2=A0=C2=A0 at >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> > > =C2=A0=C2=A0=C2=A0 at >> > > >> > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a: >> > > 39) at >> > > >> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Im >> > > pl.java:25) at >> > java.lang.reflect.Method.invoke(Method.java:597) >> > > =C2=A0=C2=A0=C2=A0 at >> > >> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) >> > > =C2=A0=C2=A0=C2=A0 at >> > >> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) >> > > Caused by: javax.xml.ws.WebServiceException: >> > java.lang.NullPointerException >> > > =C2=A0=C2=A0=C2=A0 at >> > >> org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:335) >> > > =C2=A0=C2=A0=C2=A0 at >> > >> org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:238) >> > > =C2=A0=C2=A0=C2=A0 at >> > >> org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:481) >> > > =C2=A0=C2=A0=C2=A0 at >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> > > =C2=A0=C2=A0=C2=A0 at >> > > >> > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a: >> > > 39) at >> > > >> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Im >> > > pl.java:25) at >> > java.lang.reflect.Method.invoke(Method.java:597) >> > > =C2=A0=C2=A0=C2=A0 at >> > > >> > >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= to >> > > >> > >> ry.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544) >> > at >> > > >> > >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= to >> > > >> > >> ry.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485) >> > at >> > > >> > >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= to >> > > >> > >> ry.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) >> > ... 36 more >> > > Caused by: java.lang.NullPointerException >> > > =C2=A0=C2=A0=C2=A0 at >> > > >> > >> org.apache.cxf.binding.soap.SoapTransportFactory.getDestination(SoapTran= sp >> > > ortFactory.java:123) at >> > > >> > >> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:92) >> > at >> > > >> > >> org.apache.cxf.endpoint.ServerImpl.(ServerImpl.java:71) >> > > =C2=A0=C2=A0=C2=A0 at >> > > >> > >> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:= 14 >> > > 9) at >> > > >> > >> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBea= n. >> > > java:183) at >> > > >> > >> org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:407) >> > at >> > > >> > >> org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:314) >> > ... 45 >> > > more >> > > >> > > --- On Fri, 10/29/10, Daniel Kulp >> > wrote: >> > > > From: Daniel Kulp >> > > > Subject: Re: Problem using LocalTransport >> in >> > Tomcat >> > > > To: users@cxf.apache.org >> > > > Cc: "Joe Lin" >> > > > Date: Friday, October 29, 2010, 12:21 PM >> > > > On Friday 29 October 2010 3:03:06 pm >> > > > >> > > > Joe Lin wrote: >> > > > > Hi, I have two Jax-WS service endpoints >> that >> > I >> > > > >> > > > configure using the >> > > > >> > > > > CXFServlet transport as the following >> (in >> > beans.xml): >> > > > > >> > > > > >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > > > >=C2=A0 =C2=A0=C2=A0=C2=A0> > > > >> > > > id=3D"orderProcess" >> > > > >> > > > > >> implementor=3D"demo.order.OrderProcessImpl" >> > > > >> > > > address=3D"/OrderProcess" /> >> > > > >> > > > > > > > > >> > > > implementor=3D"demo.order.HelloImpl" >> > > > >> > > > > address=3D"/hello" /> >> > > > >> > > > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > > > >> > > > > It all worked fine. And I'd like to >> have >> > another >> > > > >> > > > service that uses the >> > > > >> > > > > LocalTransport. So I copied the example >> from >> > the users >> > > > >> > > > guide in cxf >> > > > >> > > > > website. >> > > > > >> > > > > >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > > > >=C2=A0 =C2=A0=C2=A0=C2=A0> > > > >> > > > >> > >> class=3D"org.apache.cxf.transport.local.LocalTransportFactory" >> > > > >> > > > > lazy-init=3D"false"> > > > > >> > > > name=3D"transportIds"> >> > > > >> > > > > >> > > > >> > > >=C2=A0 =C2=A0 >> > > > >> > > > > >> > >> > > > >> > > >=C2=A0 =C2=A0 http://cxf.apache.org/transports/local >> > > > >> > > > > >> > >> > > > >> > > >=C2=A0 =C2=A0 http://schemas.xmlsoap.org/soap/http >> > > > >> > > > > >> > >> > > > >> > > >=C2=A0 =C2=A0 http://schemas.xmlsoap.org/wsdl/soap/http >> > > > >> > > > Hmm... not sure why those last two URI's >> are >> > > > there.=C2=A0=C2=A0=C2=A0Don't do >> > that.=C2=A0=C2=A0=C2=A0That >> > > > >> > > > will likely cause other issues as other >> things >> > will start >> > > > using the local >> > > > transport instead. >> > > > >> > > > BTW: you could just do: >> > > > > > > > >> > >> resource=3D"classpath:META-INF/cxf/cxf-extension-local.xml"/> >> > > > instead. >> > > > >> > > > > >> > > > >> > > >=C2=A0 =C2=A0 >> > > > >> > > > > >> > =C2=A0=C2=A0=C2=A0 >> > > > > >> > > > >=C2=A0 =C2=A0=C2=A0=C2=A0 >> > > > > >> > > > > >> > =C2=A0=C2=A0=C2=A0> > > > >> > > > id=3D"helloLocal" address=3D"local://hello" >> > > > >> > > > > >> implementor=3D"demo.order.HelloImpl2"/> >> > > > > >> > > > >=C2=A0 =C2=A0=C2=A0=C2=A0> > > > >> > > > id=3D"orderProcess" >> > > > >> > > > > >> implementor=3D"demo.order.OrderProcessImpl" >> > > > >> > > > address=3D"/OrderProcess" /> >> > > > >> > > > > > > > > >> > > > implementor=3D"demo.order.HelloImpl" >> > > > >> > > > > address=3D"/hello" /> >> > > > > >> > > > > >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > > > > >> > > > > >> > > > > >> > > > > But I'm getting this in catalina.out: >> > > > > >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > > > >> > > > >> > >> org.springframework.beans.factory.BeanCreationException: >> > > > Error creating >> > > > >> > > > > bean with name 'helloLocal': Invocation >> of >> > init method >> > > > >> > > > failed; nested >> > > > >> > > > > exception is >> > javax.xml.ws.WebServiceException: >> > > > > java.lang.NullPointerException at >> > > > >> > > > >> > >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= t >> > > > o >> > > > >> > > > >> > >> ry.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) >> > > > at >> > > > >> > > > >> > >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= t >> > > > o >> > > > >> > > > >> > >> ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) >> > > > >> > > > > >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > > > >> > > > Is there more to that stack trace? >> > Normally >> > > > there would be a "caused by" >> > > > thing with more lines. >> > >> > -- >> > Daniel Kulp >> > dkulp@apache.org >> > http://dankulp.com/blog >> > >> >> >> >> > > > >