cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-1741) NPE is thrown when publish the code first service in NoSpringServlet
Date Mon, 11 Aug 2008 02:19:44 GMT

     [ https://issues.apache.org/jira/browse/CXF-1741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Willem Jiang resolved CXF-1741.
-------------------------------

    Resolution: Fixed

2.1.x 
http://svn.apache.org/viewvc?rev=684397&view=rev
2.0.x
http://svn.apache.org/viewvc?rev=684398&view=rev

> NPE is thrown when publish the code first service  in NoSpringServlet
> ---------------------------------------------------------------------
>
>                 Key: CXF-1741
>                 URL: https://issues.apache.org/jira/browse/CXF-1741
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.1.1, 2.0.8
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.1.2, 2.0.9
>
>
> If we publish a code first service with JAXWS API in NoSpringServlet like this
>             HelloImpl helloImpl = new HelloImpl();
>             Endpoint.publish("/Hello", helloImpl);    
> The stack trace like this
> Caused by: java.lang.NullPointerException
> 	at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
> 	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
> 	at javax.naming.InitialContext.lookup(InitialContext.java:351)
> 	at org.apache.cxf.transport.servlet.ServletContextResourceResolver.resolve(ServletContextResourceResolver.java:63)
> 	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:398)
> 	at org.apache.cxf.common.injection.ResourceInjector.visitMethod(ResourceInjector.java:185)
> 	at org.apache.cxf.common.annotation.AnnotationProcessor.processMethods(AnnotationProcessor.java:87)
> 	at org.apache.cxf.common.annotation.AnnotationProcessor.accept(AnnotationProcessor.java:70)
> 	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:175)
> 	at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateViaNS(ExtensionManagerImpl.java:96)
> 	at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAll(ExtensionManagerImpl.java:104)
> 	at org.apache.cxf.bus.extension.DeferredMap.undefer(DeferredMap.java:36)
> 	at org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactoryForUri(DestinationFactoryManagerImpl.java:140)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:206)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:146)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:116)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:168)
> 	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:336)
> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:251)
> 	... 6 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message