Hi,


I need to create a webservice client with SSL authentification. I followed
this example from cxf's documentation :
http://cwiki.apache.org/CXF20DOC/client-http-transport.html

I created and tested it with JUnit/Eclipse everything was alright but now
when i package and deploy it as an ear application I have got an
NullPointerException.

I looked to the cxf's sources and the problem is that schema as no element
in the ReflectionServiceFactoryBean.createBareMessage method.

I tried with two cxf's version : 2.1 and 2.1.1 no change.

This is the stackTrace :



     [java] java.lang.NullPointerException

     [java]     at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createBareMessage(ReflectionServiceFactoryBean.java:982)

     [java]     at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:356)

     [java]     at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:513)

     [java]     at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:396)

     [java]     at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:181)

     [java]     at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:163)

     [java]     at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:79)

     [java]     at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:51)

     [java]     at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:97)

     [java]     at
org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:93)

I think this comes from a library conflicts but no way to find which one.

This is my code, nothing is configured with Spring.



    JaxWsProxyFactoryBean proxyFactory = *new* JaxWsProxyFactoryBean();

    proxyFactory.setServiceClass(ServiceAPI.*class*);

    proxyFactory.setAddress(serviceURL);



    proxy = (ServiceAPI) proxyFactory.create();



If somebody knows where i can have a look ...



Thanks

Reply via email to