cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daisy Li (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider
Date Wed, 01 Aug 2007 14:49:52 GMT

    [ https://issues.apache.org/jira/browse/CXF-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516990
] 

Daisy Li commented on CXF-866:
------------------------------

Hi Jevis,

When I made @WebServiceProvider changes to these two impl files, the demo worked fine with
spring container. 

@WebServiceProvider(portName = "SoapPort2", serviceName = "SOAPService2",
                      targetNamespace = "http://apache.org/hello_world_soap_http",
                      wsdlLocation = "wsdl/hello_world.wsdl")
@ServiceMode(value = Service.Mode.MESSAGE)
public class GreeterDOMSourceMessageProvider implements Provider<DOMSource> {


@WebServiceProvider(portName = "SoapPort3", serviceName = "SOAPService3",
                      targetNamespace = "http://apache.org/hello_world_soap_http",
                      wsdlLocation = "wsdl/hello_world.wsdl")
public class GreeterDOMSourcePayloadProvider implements Provider<DOMSource> {

I got the following errors when running the current sample dispatch_provider with spring container.


C:\IONA\artix_5.0\java\bin>spring_container.bat start
Setting JAVA_HOME to C:\jdk1.5.0_06
Setting ANT_HOME to C:\IONA\artix_5.0\tools\ant
Setting PATH variables
Aug 1, 2007 10:41:42 AM org.apache.cxf.bus.spring.SpringBusFactory createBus
WARNING: Failed to create application context.
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'SoapEndpoint2': Invocation of init method failed; nested exception is ja
va.lang.NullPointerException
Caused by: java.lang.NullPointerException
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOp
erationsForProvider(JaxWsServiceFactoryBean.java:184)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOp
erations(JaxWsServiceFactoryBean.java:168)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServ
iceFromWSDL(ReflectionServiceFactoryBean.java:197)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializ
eServiceModel(ReflectionServiceFactoryBean.java:248)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Re
flectionServiceFactoryBean.java:138)
        at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(Abstra
ctEndpointFactory.java:81)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.ja
va:106)
        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactory
Bean.java:129)
        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:277)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:223)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:175)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:329)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1214)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1179)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:427)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:144)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:279)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:360)
        at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplication
Context.java:71)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory
.java:81)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory
.java:66)
        at com.iona.cxf.container.Application.init(Application.java:113)
        at com.iona.cxf.container.Application.changeState(Application.java:66)
        at com.iona.cxf.container.Application.start(Application.java:40)
        at com.iona.cxf.container.ContainerBean.deployApplication(ContainerBean.
java:228)
        at com.iona.cxf.container.ContainerBean.deployWar(ContainerBean.java:220
)
        at com.iona.cxf.container.ContainerBean.scanRepository(ContainerBean.jav
a:340)
        at com.iona.cxf.container.ContainerBean.run(ContainerBean.java:105)
        at com.iona.cxf.container.ContainerBean.afterPropertiesSet(ContainerBean
.java:361)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:427)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:144)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:279)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:360)
        at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplication
Context.java:78)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory
.java:94)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory
.java:89)
        at com.iona.cxf.container.ContainerLauncher.startContainer(ContainerLaun
cher.java:166)
        at com.iona.cxf.container.ContainerLauncher.execute(ContainerLauncher.ja
va:83)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
va:83)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
va:52)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
va:39)
        at com.iona.cxf.container.ContainerLauncher.main(ContainerLauncher.java:
60)
Aug 1, 2007 10:41:42 AM com.iona.cxf.container.ContainerBean scanRepository
SEVERE: java.lang.NullPointerException
com.iona.cxf.container.ContainerException: java.lang.NullPointerException
        at com.iona.cxf.container.ContainerBean.deployApplication(ContainerBean.
java:230)
        at com.iona.cxf.container.ContainerBean.deployWar(ContainerBean.java:220
)
        at com.iona.cxf.container.ContainerBean.scanRepository(ContainerBean.jav
a:340)
        at com.iona.cxf.container.ContainerBean.run(ContainerBean.java:105)
        at com.iona.cxf.container.ContainerBean.afterPropertiesSet(ContainerBean
.java:361)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:427)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:144)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:279)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:360)
        at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplication
Context.java:78)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory
.java:94)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory
.java:89)
        at com.iona.cxf.container.ContainerLauncher.startContainer(ContainerLaun
cher.java:166)
        at com.iona.cxf.container.ContainerLauncher.execute(ContainerLauncher.ja
va:83)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
va:83)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
va:52)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja
va:39)
        at com.iona.cxf.container.ContainerLauncher.main(ContainerLauncher.java:
60)
Caused by: java.lang.NullPointerException
        at com.iona.cxf.container.Application.cleanup(Application.java:131)
        at com.iona.cxf.container.Application.changeState(Application.java:70)
        at com.iona.cxf.container.Application.start(Application.java:40)
        at com.iona.cxf.container.ContainerBean.deployApplication(ContainerBean.
java:228)
        ... 22 more
Spring Container Ready

> Impls for Sample dispatch_provider don't have @WebServiceProvider
> -----------------------------------------------------------------
>
>                 Key: CXF-866
>                 URL: https://issues.apache.org/jira/browse/CXF-866
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.0-M1
>            Reporter: Daisy Li
>             Fix For: 2.0.1
>
>
> GreeterDOMSourceMessageProvider.java
> GreeterDOMSourcePayloadProvider.java
> The sample doesn't work with spring container because they don't have @WebServiceProvider.


-- 
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