Hi,
I am trying to create a client using
org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean and CXF. The
client loads well in standalone environment but fails when loaded on to a
webcontainer. I have tried this on websphere and tomcat. Here is the
exception i see.

Caused by: java.lang.NullPointerException
        at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:81)
        at 
org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:140)
        at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:132)
        at
org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:65)
        at javax.xml.ws.Service.<init>(Service.java:36)
        at javax.xml.ws.Service.create(Service.java:116)
        at
org.springframework.remoting.jaxws.LocalJaxWsServiceFactory.createJaxWsService(LocalJaxWsServiceFactory.java:134)
        at
org.springframework.remoting.jaxws.JaxWsPortClientInterceptor.prepare(JaxWsPortClientInterceptor.java:146)
        at
org.springframework.remoting.jaxws.JaxWsPortClientInterceptor.afterPropertiesSet(JaxWsPortClientInterceptor.java:136)
        at
org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean.afterPropertiesSet(JaxWsPortProxyFactoryBean.java:47)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
        ... 78 more

Here is the Spring Definition file.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

        <bean id="weatherService"
                class="mycompany.ws.metro.service.WeatherService" >
                <property name="weatherSoap" 
ref="nationalWeatherService"></property>
        </bean>

        <bean id="nationalWeatherService"
                
class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
                <property name="serviceInterface"
                        value="com.cdyne.ws.weatherws.WeatherSoap" />
                <property name="wsdlDocumentUrl"
                        value="WEB-INF/wsdl/NationalWeatherService.wsdl" />
                <property name="namespaceUri"
                        value="http://ws.cdyne.com/WeatherWS/"; />
                <property name="serviceName" value="Weather" />
                <property name="portName" value="WeatherSoap" />
        </bean>

</beans>

I would really appreciate any help in fixing the problem.


Thanks
Vasu

-- 
View this message in context: 
http://www.nabble.com/NullPointerException-creating-client-using-org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean-tp18350230p18350230.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to