cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maomaode (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-258) Server can not start when SEI has no wsdlLocation in the WebService annotation
Date Wed, 22 Nov 2006 02:12:03 GMT
    [ http://issues.apache.org/jira/browse/CXF-258?page=comments#action_12451845 ] 
            
maomaode commented on CXF-258:
------------------------------

I have attached the testcase, and the description of the steps to reproduce also very clear,
you can try to add the wsdlLocation and remove the wsdlLocation from the WebService annotation
in the SEI. That's how i found the the problem. 

> Server can not start when SEI has no wsdlLocation in the WebService annotation
> ------------------------------------------------------------------------------
>
>                 Key: CXF-258
>                 URL: http://issues.apache.org/jira/browse/CXF-258
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0-M1
>            Reporter: maomaode
>             Fix For: 2.0-RC
>
>         Attachments: Hello.java
>
>
> We have a simple testcase(attached the SEI), in which we have only one operation sayHi,
we use the java2wsdl to genete the code, the wsdl file generated is OK. 
> Then We use the wsdl2java to generate the java artifacts, those artifacts are also FINE.
> but when we start the server, then the server give us the following exception:
> INFO: Creating Service {http://cxf.com/}HelloService from class com.cxf.HelloImpl
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWrappedSchema(ReflectionServiceFactoryBean.java:3
> 45)
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:20
> 3)
>         at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:116)
>         at org.apache.cxf.jaxws.EndpointImpl.<init>(EndpointImpl.java:99)
>         at org.apache.cxf.jaxws.spi.ProviderImpl.createEndpoint(ProviderImpl.java:57)
>         at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:66)
>         at javax.xml.ws.Endpoint.publish(Endpoint.java:156)
>         at com.cxf.HelloServer.<init>(HelloServer.java:37)
>         at com.cxf.HelloServer.main(HelloServer.java:41)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message