> that's going to cause other problems with the spring.schemas and
> spring.namespaces since I'm generating an uber-jar with the maven assembler
> (too many problems with maven shade)

Right there is your problem.   You would likely need to use shade.    At the 
very least, you would need to cat all the /META-INF/cxf/bus-extensions.txt in 
all the jars together.

Dan




On Dec 12, 2012, at 1:47 PM, galvanni <[email protected]> wrote:

> 
> That didn't help.  I really shouldn't be doing anything with CXF - this is a
> JAX-WS client.  CXF gives me no clue as to why the WSDLManager is null in
> this factory that's throwing it.  It works in the Applet fine when I run
> just the Applet in the AppletViewer via IntelliJ but when I actually launch
> it from the deployed web app I'm getting this.  So CXF is not initialized
> properly or something.  I don't want to use Spring in the Applet because
> that's going to cause other problems with the spring.schemas and
> spring.namespaces since I'm generating an uber-jar with the maven assembler
> (too many problems with maven shade) - plus I really don't think I should
> have to use spring to just get the cxf runtime initialized properly.
> 
> CXFBusFactory busFactory = new org.apache.cxf.bus.CXFBusFactory();
> Bus bus = busFactory.createBus();
> // this tests as null so something is not right with the bus
> WSDLManager wsdlManager = bus.getExtension(WSDLManager.class);
> // this url is not null, so valid resource found
> URL wsdlURL =
> WorkflowEngineService.class.getResource("WorkflowEngine.wsdl");
> // this namespace and service checks against wsdl
> QName qname = new QName("http://www.mydomain.com";, "WorkflowEngineService");
> // this is where it throws the NPE below
> Service service = Service.create(wsdlURL, qname);
> 
> Caused by: java.lang.NullPointerException
>       at
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:92)
>       at 
> org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:199)
>       at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147)
>       at
> org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:97)
>       at javax.xml.ws.Service.<init>(Service.java:56)
>       at javax.xml.ws.Service.create(Service.java:680)
>       at
> com.fmgtech.services.di.WorkflowEngineServiceModule.configure(WorkflowEngineServiceModule.java:62)
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/CXF-JAX-WS-Client-without-Spring-tp5720035p5720166.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to