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):
> 
> =============================================
>       <jaxws:endpoint id="orderProcess"
> implementor="demo.order.OrderProcessImpl" address="/OrderProcess" />
> <jaxws:endpoint id="helloService" implementor="demo.order.HelloImpl"
> address="/hello" /> =============================================
> 
> 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.
> 
> =============================================
>       <bean class="org.apache.cxf.transport.local.LocalTransportFactory"
> lazy-init="false"> <property name="transportIds">
>           <list>
>               <value>http://cxf.apache.org/transports/local</value>
>               <value>http://schemas.xmlsoap.org/soap/http</value>
>               <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>

Hmm... not sure why those last two URI's are there.   Don't do that.   That 
will likely cause other issues as other things will start using the local 
transport instead.  

BTW: you could just do:
<import resource="classpath:META-INF/cxf/cxf-extension-local.xml"/>
instead.

>           </list>
>       </property>
>       </bean>
> 
>       <jaxws:endpoint id="helloLocal" address="local://hello"
> implementor="demo.order.HelloImpl2"/>
> 
>       <jaxws:endpoint id="orderProcess"
> implementor="demo.order.OrderProcessImpl" address="/OrderProcess" />
> <jaxws:endpoint id="helloService" implementor="demo.order.HelloImpl"
> address="/hello" />
> 
> =============================================
> 
> 
> 
> But I'm getting this in catalina.out:
> =============================================
> 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.AbstractAutowireCapableBeanFacto
> ry.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
> ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> ===============================================

Is there more to that stack trace?    Normally there would be a "caused by" 
thing with more lines.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to