You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Oisin Hurley (JIRA)" <ji...@apache.org> on 2007/05/03 15:43:15 UTC

[jira] Created: (CXF-631) Regression in simple front end WSDL auto-generation

Regression in simple front end WSDL auto-generation
---------------------------------------------------

                 Key: CXF-631
                 URL: https://issues.apache.org/jira/browse/CXF-631
             Project: CXF
          Issue Type: Bug
          Components: Transports
    Affects Versions: 2.0-RC
         Environment: Windows XP
            Reporter: Oisin Hurley


since rev 532926 it is not possible to generate the wsdl at runtime anymore.

I start the server with 

JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
factory.setServiceClass(JaxWsService.class);
factory.setAddress("http://localhost:9001/jaxwstest");
factory.setServiceBean(service);
Server server = factory.create();

The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the wsdl with
http://localhost:9001/jaxwstest?wsdl

Now, the error message is

java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast to javax.wsdl.extensions.http.HTTPAddress
        at com.ibm.wsdl.extensions.http.HTTPAddressSerializer.marshall(Unknown Source)
        at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
        at com.ibm.wsdl.xml.WSDLWriterImpl.printPorts(Unknown Source)
        at com.ibm.wsdl.xml.WSDLWriterImpl.printServices(Unknown Source)
        at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
        at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
        at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:139)
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:152)
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:690)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:285)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)



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


[jira] Commented: (CXF-631) Regression in simple front end WSDL auto-generation

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

Daniel Kulp commented on CXF-631:
---------------------------------


This is a MUCH larger problem than I originally thought.   I've fixed the DIRECT issue that is causing the exception, but the resulting wsdl that the runtime produces for the "code first" case is missing all the soap stuff.   Looking at the tooling, it looks like the tools add that stuff in the tooling code instead of putting it in the soap binding where the runtime can then take advantage of it.   Anyway, fixing this completely is not a quick fix.    

The tooling folks should be back from holidays next week.  I'm hoping one of them can pick this up.

> Regression in simple front end WSDL auto-generation
> ---------------------------------------------------
>
>                 Key: CXF-631
>                 URL: https://issues.apache.org/jira/browse/CXF-631
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>         Environment: Windows XP
>            Reporter: Oisin Hurley
>         Assigned To: Daniel Kulp
>
> since rev 532926 it is not possible to generate the wsdl at runtime anymore.
> I start the server with 
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setServiceClass(JaxWsService.class);
> factory.setAddress("http://localhost:9001/jaxwstest");
> factory.setServiceBean(service);
> Server server = factory.create();
> The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the wsdl with
> http://localhost:9001/jaxwstest?wsdl
> Now, the error message is
> java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast to javax.wsdl.extensions.http.HTTPAddress
>         at com.ibm.wsdl.extensions.http.HTTPAddressSerializer.marshall(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printPorts(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printServices(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>         at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:139)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:152)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:690)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

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


[jira] Updated: (CXF-631) Regression in simple front end WSDL auto-generation

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

Bozhong Lin updated CXF-631:
----------------------------

    Fix Version/s: 2.0
         Assignee: maomaode  (was: Bozhong Lin)

> Regression in simple front end WSDL auto-generation
> ---------------------------------------------------
>
>                 Key: CXF-631
>                 URL: https://issues.apache.org/jira/browse/CXF-631
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>         Environment: Windows XP
>            Reporter: Oisin Hurley
>         Assigned To: maomaode
>             Fix For: 2.0
>
>
> since rev 532926 it is not possible to generate the wsdl at runtime anymore.
> I start the server with 
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setServiceClass(JaxWsService.class);
> factory.setAddress("http://localhost:9001/jaxwstest");
> factory.setServiceBean(service);
> Server server = factory.create();
> The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the wsdl with
> http://localhost:9001/jaxwstest?wsdl
> Now, the error message is
> java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast to javax.wsdl.extensions.http.HTTPAddress
>         at com.ibm.wsdl.extensions.http.HTTPAddressSerializer.marshall(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printPorts(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printServices(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>         at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:139)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:152)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:690)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

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


[jira] Commented: (CXF-631) Regression in simple front end WSDL auto-generation

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

Roman Roelofsen commented on CXF-631:
-------------------------------------

I've tested the simple and the jaxws frontend. The problem occurs in both.



> Regression in simple front end WSDL auto-generation
> ---------------------------------------------------
>
>                 Key: CXF-631
>                 URL: https://issues.apache.org/jira/browse/CXF-631
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>         Environment: Windows XP
>            Reporter: Oisin Hurley
>
> since rev 532926 it is not possible to generate the wsdl at runtime anymore.
> I start the server with 
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setServiceClass(JaxWsService.class);
> factory.setAddress("http://localhost:9001/jaxwstest");
> factory.setServiceBean(service);
> Server server = factory.create();
> The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the wsdl with
> http://localhost:9001/jaxwstest?wsdl
> Now, the error message is
> java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast to javax.wsdl.extensions.http.HTTPAddress
>         at com.ibm.wsdl.extensions.http.HTTPAddressSerializer.marshall(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printPorts(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printServices(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>         at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:139)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:152)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:690)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

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


[jira] Assigned: (CXF-631) Regression in simple front end WSDL auto-generation

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

Daniel Kulp reassigned CXF-631:
-------------------------------

    Assignee: Daniel Kulp

> Regression in simple front end WSDL auto-generation
> ---------------------------------------------------
>
>                 Key: CXF-631
>                 URL: https://issues.apache.org/jira/browse/CXF-631
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>         Environment: Windows XP
>            Reporter: Oisin Hurley
>         Assigned To: Daniel Kulp
>
> since rev 532926 it is not possible to generate the wsdl at runtime anymore.
> I start the server with 
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setServiceClass(JaxWsService.class);
> factory.setAddress("http://localhost:9001/jaxwstest");
> factory.setServiceBean(service);
> Server server = factory.create();
> The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the wsdl with
> http://localhost:9001/jaxwstest?wsdl
> Now, the error message is
> java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast to javax.wsdl.extensions.http.HTTPAddress
>         at com.ibm.wsdl.extensions.http.HTTPAddressSerializer.marshall(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printPorts(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printServices(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>         at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:139)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:152)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:690)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

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


[jira] Commented: (CXF-631) Regression in simple front end WSDL auto-generation

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

Daniel Kulp commented on CXF-631:
---------------------------------

Digging into the code some more, it's not QUITE as bad as I thought.   The tools are using the service model and stuff, but there is an issue in the SOAP code.

Basically, the SoapTransportFactory is whats going through and adding all the SOAP extensors.   However, that only works if the transport you are using is the SoapTransportFactory.   At runtime, the transport could be something else (like straight HTTP).   Thus, the extensors aren't added.  

This needs to be cleaned up.   The binding extensors need to be created in the SoapBindingFactory.   The only one the SoapTransportFactory should care about is the soap:address in the port.

That said, much of the code for creating the extensors is in tools/common.   i think most of that should be moved into the soap binding.   The tools shouldn't really have much "soap" code in them.



> Regression in simple front end WSDL auto-generation
> ---------------------------------------------------
>
>                 Key: CXF-631
>                 URL: https://issues.apache.org/jira/browse/CXF-631
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>         Environment: Windows XP
>            Reporter: Oisin Hurley
>         Assigned To: Bozhong Lin
>
> since rev 532926 it is not possible to generate the wsdl at runtime anymore.
> I start the server with 
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setServiceClass(JaxWsService.class);
> factory.setAddress("http://localhost:9001/jaxwstest");
> factory.setServiceBean(service);
> Server server = factory.create();
> The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the wsdl with
> http://localhost:9001/jaxwstest?wsdl
> Now, the error message is
> java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast to javax.wsdl.extensions.http.HTTPAddress
>         at com.ibm.wsdl.extensions.http.HTTPAddressSerializer.marshall(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printPorts(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printServices(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>         at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:139)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:152)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:690)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

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


[jira] Assigned: (CXF-631) Regression in simple front end WSDL auto-generation

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

Adi Sakala reassigned CXF-631:
------------------------------

    Assignee: Bozhong Lin  (was: Daniel Kulp)

> Regression in simple front end WSDL auto-generation
> ---------------------------------------------------
>
>                 Key: CXF-631
>                 URL: https://issues.apache.org/jira/browse/CXF-631
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>         Environment: Windows XP
>            Reporter: Oisin Hurley
>         Assigned To: Bozhong Lin
>
> since rev 532926 it is not possible to generate the wsdl at runtime anymore.
> I start the server with 
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setServiceClass(JaxWsService.class);
> factory.setAddress("http://localhost:9001/jaxwstest");
> factory.setServiceBean(service);
> Server server = factory.create();
> The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the wsdl with
> http://localhost:9001/jaxwstest?wsdl
> Now, the error message is
> java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast to javax.wsdl.extensions.http.HTTPAddress
>         at com.ibm.wsdl.extensions.http.HTTPAddressSerializer.marshall(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printPorts(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printServices(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>         at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:139)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:152)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:690)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

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


[jira] Resolved: (CXF-631) Regression in simple front end WSDL auto-generation

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

maomaode resolved CXF-631.
--------------------------

    Resolution: Fixed

A test has been added JaxWsServerFactoryBeanTest.java for both the jaxws and simple frontend.


> Regression in simple front end WSDL auto-generation
> ---------------------------------------------------
>
>                 Key: CXF-631
>                 URL: https://issues.apache.org/jira/browse/CXF-631
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>         Environment: Windows XP
>            Reporter: Oisin Hurley
>            Assignee: maomaode
>             Fix For: 2.0
>
>
> since rev 532926 it is not possible to generate the wsdl at runtime anymore.
> I start the server with 
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setServiceClass(JaxWsService.class);
> factory.setAddress("http://localhost:9001/jaxwstest");
> factory.setServiceBean(service);
> Server server = factory.create();
> The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the wsdl with
> http://localhost:9001/jaxwstest?wsdl
> Now, the error message is
> java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast to javax.wsdl.extensions.http.HTTPAddress
>         at com.ibm.wsdl.extensions.http.HTTPAddressSerializer.marshall(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printPorts(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printServices(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
>         at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
>         at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:139)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:152)
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:690)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

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