Hello all,

I have a problem here integrating CXF client with a web app.

Here is what I did:
1. I created a client from a WSDL using CXF 2.1.2 in Eclipse STP.
2. I then imported this client into Eclipse WTP making it as a dependent of
another web app.
3. When I deployed both on the server and ran it, it threw few errors and I
had to add few external JARs to the web app's \WEB-INF\lib folder
(jaxb-api-1.5, jaxb-xjc-2.1.7, jaxws-api-2.0, jaxws-rt-2.0EA3,
stax-api-1.0.1)
4. Now when I run it after giving it what it wanted this is what I get:

null
java.lang.NullPointerException
        at
com.sun.xml.ws.client.ServiceContextBuilder.processAnnotations(ServiceContextBuilder.java:164)
        at
com.sun.xml.ws.client.ServiceContextBuilder.build(ServiceContextBuilder.java:82)
        at
com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:117)
        at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:50)
        at javax.xml.ws.Service.<init>(Service.java:57)
        at
us.two.safe.login.LoginService_Service.<init>(LoginService_Service.java:48)
        at
us.two.safe.login.LoginService_LoginService_Client.testLogin(LoginService_LoginService_Client.java:71)
        at
org.apache.jsp.html.logonrequest_jsp._jspService(logonrequest_jsp.java:104)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(J

Does anyone know what exactly happened?
Is it because I imported a project that was created in STP to WTP? I know I
could use CXF WTP version now but I'm curious to know the solution for this.
But when I run the client as a stand alone java app it works. So, this makes
me to think something is tricky somewhere.

Thanks.

Importing CXF client from Eclipse STP into WTP
-- 
View this message in context: 
http://www.nabble.com/Importing-CXF-client-from-Eclipse-STP-into-WTP%3A-java.lang.NullPointerException-tp19783305p19783305.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to