Couple possibilities:

1) Is there an ASM jar available on the classpath.   That MAY help.

2) Check the version of XmlSchema.jar.   It needs to be 1.4.2.   1.3.x 
versions will definitely cause  this issue.

Dan


On Wednesday 10 December 2008 5:06:29 am Julie Ingignoli wrote:
> 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.createBareMessa
>ge(ReflectionServiceFactoryBean.java:982)
>
>      [java]     at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFro
>mClass(ReflectionServiceFactoryBean.java:356)
>
>      [java]     at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(
>JaxWsServiceFactoryBean.java:513)
>
>      [java]     at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServi
>ceModel(ReflectionServiceFactoryBean.java:396)
>
>      [java]     at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflecti
>onServiceFactoryBean.java:181)
>
>      [java]     at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFac
>toryBean.java:163)
>
>      [java]     at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(Abs
>tractWSDLBasedEndpointFactory.java:79)
>
>      [java]     at
> org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:51)
>
>      [java]     at
> org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBea
>n.java:97)
>
>      [java]     at
> org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.jav
>a: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



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog

Reply via email to