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


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

        

Reply via email to