Any chance you could log a bug and attach a small test case that shows the 
issue?   That's definitely the best way to help us debug it.

Dan


On Monday 12 January 2009 2:22:25 pm Lawrence Johnbosco wrote:
> Hi,
>
> I'm facing a strange issue with CXF while deploying more than one JAX-WS
> endpoint services - CXF publishes the first web service but failed with
> Nullpointer Exception while publishing the second one.
>
> Interestingly, this issue disappears when I removed the "cxf:bus" entry in
> my CXF config file. Also, when I use only one JAX-WS endpoint, this issue
> is not happening..
>
> I'm using CXF 2.1.3 and this issue happens both in Tomcat and Weblogic 9.2.
>
> Please find below a sample CXF config entry and the stack trace.. I'm
> wondering if it's a bug with CXF.. As a temporary fix, I removed the
> "cxf:bus" entries but if there is a permanent fix or is it a known issue,
> please let me know.
>
> <beans
>
> xmlns="http://www.springframework.org/schema/beans";
>
> xmlns:cxf="http://cxf.apache.org/core";
>
> xmlns:jaxws="http://cxf.apache.org/jaxws";
>
> xmlns:test="http://apache.org/hello_world_soap_http";
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>
> xsi:schemaLocation="
>
> http://cxf.apache.org/core
>
> http://cxf.apache.org/schemas/core.xsd
>
> http://www.springframework.org/schema/beans
>
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>
> http://cxf.apache.org/jaxws
>
> http://cxf.apache.org/schemas/jaxws.xsd";>
>
>  <cxf:bus>
>
> <cxf:features>
>
> <cxf:logging/>
>
> </cxf:features>
>
> </cxf:bus>
>
> <jaxws:endpoint id="doubleit"
>
> implementor="com.company.webservice.service.DoubleItPortTypeImpl"
>
> address="/doubleit"
>
> wsdlLocation="WEB-INF/wsdl/DoubleIt.wsdl">
>
> </jaxws:endpoint>
>
>
>
> <jaxws:endpoint id="hello"
>
> implementor="com.company.webservice.service.GreeterImpl"
>
> address="/SoapPort"
>
> wsdlLocation="WEB-INF/wsdl/hello_world.wsdl">
>
> </jaxws:endpoint>
>
> </beans>
>
>
>
> Stack Trace:
>
>
>
> Caused by: javax.xml.ws.WebServiceException: java.lang.NullPointerException
>  at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:267)
>  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:201)
>  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:394)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ....
>
> Caused by: java.lang.NullPointerException
>  at
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:81)
>  at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFro
>mWSDL(ReflectionServiceFactoryBean.java:311) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServi
>ceModel(ReflectionServiceFactoryBean.java:408) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflecti
>onServiceFactoryBean.java:189)



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

Reply via email to