You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daisy Li (JIRA)" <ji...@apache.org> on 2007/07/31 22:32:52 UTC

[jira] Created: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider

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.


[jira] Updated: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider

Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jervis Liu updated CXF-866:
---------------------------

    Fix Version/s:     (was: 2.0.1)
                   2.1

> 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
>            Assignee: Jervis Liu
>             Fix For: 2.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.


[jira] Commented: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider

Posted by "Daisy Li (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517532 ] 

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

Yes, it works after I changed @WebServiceProvider() to 

@WebServiceProvider() to @WebServiceProvider(portName = "SoapPort2", serviceName = "SOAPService2", 
                      targetNamespace = "http://apache.org/hello_world_soap_http", 
                      wsdlLocation = "wsdl/hello_world.wsdl")


I used Artix 5.0 release kit.



> 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
>            Assignee: Jervis Liu
>             Fix For: 2.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.


[jira] Assigned: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider

Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jervis Liu reassigned CXF-866:
------------------------------

    Assignee: Jervis Liu

> 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
>            Assignee: Jervis Liu
>             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.


[jira] Commented: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider

Posted by "Daisy Li (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Resolved: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-866.
-----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.1)
                   2.0.4
         Assignee:     (was: Jervis Liu)


I'm going to resolve this issue as the sample seems to work perfectly in 2.0.4 and 2.1 with both  the "simple" form (no params to the annotation) as well as when I add the params.   If something still doesn't work, please re-open with more details.

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


[jira] Commented: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider

Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516864 ] 

Jervis Liu commented on CXF-866:
--------------------------------

Hi Daisy, they DO have @WebServiceProvider annotation. Could you please provide the error message or stack trace to show dispatch_provider sample does not work in your environment? 

Thanks.
Jervis

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


[jira] Commented: (CXF-866) Impls for Sample dispatch_provider don't have @WebServiceProvider

Posted by "Jervis Liu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517159 ] 

Jervis Liu commented on CXF-866:
--------------------------------

Hi Daisy, the current dispatch_provider sample code is like below:

@WebServiceProvider()
public class GreeterDOMSourcePayloadProvider implements Provider<DOMSource> {
..........}


@WebServiceProvider()
@ServiceMode(value = Service.Mode.MESSAGE)            
public class GreeterDOMSourceMessageProvider implements Provider<DOMSource> {
.........
}

Do you mean you changed @WebServiceProvider() to @WebServiceProvider(portName = "SoapPort2", serviceName = "SOAPService2", 
                      targetNamespace = "http://apache.org/hello_world_soap_http", 
                      wsdlLocation = "wsdl/hello_world.wsdl") ?

Then it works? What version of CXF are you using?


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