Hi Serethos,
You are picking up JMS transport and not servlet. Make sure you have
proper URI in your wsdl service and endpoint.publish() call.
Regards,
Ulhas Bhole
Serethos wrote:
Hello!
I need to get the Servlet Transport of CXF and Jetty to work together but
have several problems with it.
Searching within forums, mailing lists and the inet there is often mentioned
the complete source the to code snippet example of the user doc
(http://cwiki.apache.org/CXF20DOC/servlet-transport.html).
The problem ist that the links to the cxf repository are always dead (like
this one:
https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/NoSpringServletServer.java
)
Is there any source to get all classes of the example so that I can test it
and exclude an error of mine?
As addition I want to attach my StackStrace of the error. Perhaps someone
could give me a hint, what the problem could be (and what an
'AnnotationVisitor' is)
an AnnotationVisitor
([EMAIL PROTECTED]) raised an
exception on element public void
org.apache.cxf.transport.jms.JMSTransportFactory.setBus(org.apache.cxf.Bus).
java.lang.NullPointerException
at javax.naming.InitialContext.getURLScheme(InitialContext.java:269)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:318)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
org.apache.cxf.transport.servlet.ServletContextResourceResolver.resolve(ServletContextResourceResolver.java:62)
at
org.apache.cxf.resource.DefaultResourceManager.findResource(DefaultResourceManager.java:99)
at
org.apache.cxf.resource.DefaultResourceManager.resolveResource(DefaultResourceManager.java:55)
at
org.apache.cxf.common.injection.ResourceInjector.resolveResource(ResourceInjector.java:401)
at
org.apache.cxf.common.injection.ResourceInjector.visitMethod(ResourceInjector.java:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.cxf.common.annotation.AnnotationProcessor.visitAnnotatedElement(AnnotationProcessor.java:131)
at
org.apache.cxf.common.annotation.AnnotationProcessor.processMethods(AnnotationProcessor.java:103)
at
org.apache.cxf.common.annotation.AnnotationProcessor.accept(AnnotationProcessor.java:90)
at
org.apache.cxf.common.injection.ResourceInjector.inject(ResourceInjector.java:81)
at
org.apache.cxf.common.injection.ResourceInjector.inject(ResourceInjector.java:76)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:165)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.activateViaNS(ExtensionManagerImpl.java:86)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAll(ExtensionManagerImpl.java:94)
at org.apache.cxf.bus.extension.DeferredMap.undefer(DeferredMap.java:36)
at
org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactoryForUri(DestinationFactoryManagerImpl.java:136)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:160)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:114)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:160)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:322)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:244)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:194)
at
org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:84)
at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
at xoz.JettyServletLauncher.main(JettyServletLauncher.java:55)
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland