You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "jerryscott2012 (Created) (JIRA)" <ji...@apache.org> on 2012/03/12 05:16:44 UTC

[jira] [Created] (CXF-4175) CXF2.5.3 not compatible with jetty7.6.x

CXF2.5.3 not compatible with jetty7.6.x 
----------------------------------------

                 Key: CXF-4175
                 URL: https://issues.apache.org/jira/browse/CXF-4175
             Project: CXF
          Issue Type: Improvement
          Components: Core
    Affects Versions: 2.5.2
            Reporter: jerryscott2012
             Fix For: 2.5.3


When I update the jetty jar from 7.5.4 to 7.6.2(the latest stable) and publish the web service interface under ssl enviroment,my application throw the exception :

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.getSslContextFactory()Lorg/eclipse/jetty/http/ssl/SslContextFactory;
	at org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.setClientAuthentication(CXFJettySslSocketConnector.java:90)
	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.decorateCXFJettySslSocketConnector(JettySslConnectorFactory.java:84)
	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.createConnector(JettySslConnectorFactory.java:70)
	at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:291)
	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:168)
	at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
	at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
	at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:837)
	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:204)
	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CXF-4175) CXF2.5.3 not compatible with jetty7.6.x

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

Daniel Kulp resolved CXF-4175.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.7
         Assignee: Daniel Kulp


I'd appreciate it if you can test with tomorrows snapshots to make sure it completely works for you.  I kind of hate having to resort to reflection, but  not much else could be done.
                
> CXF2.5.3 not compatible with jetty7.6.x 
> ----------------------------------------
>
>                 Key: CXF-4175
>                 URL: https://issues.apache.org/jira/browse/CXF-4175
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.5.2
>            Reporter: jerryscott2012
>            Assignee: Daniel Kulp
>              Labels: patch
>             Fix For: 2.4.7, 2.5.3
>
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> When I update the jetty jar from 7.5.4 to 7.6.2(the latest stable) and publish the web service interface under ssl enviroment,my application throw the exception :
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.getSslContextFactory()Lorg/eclipse/jetty/http/ssl/SslContextFactory;
> 	at org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.setClientAuthentication(CXFJettySslSocketConnector.java:90)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.decorateCXFJettySslSocketConnector(JettySslConnectorFactory.java:84)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.createConnector(JettySslConnectorFactory.java:70)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:291)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:168)
> 	at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
> 	at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
> 	at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:837)
> 	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:204)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4175) CXF2.5.3 not compatible with jetty7.6.x

Posted by "jerryscott2012 (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232145#comment-13232145 ] 

jerryscott2012 commented on CXF-4175:
-------------------------------------

The reason why testing with jetty7.6.x is the jetty in such edition provide the websocket module.
                
> CXF2.5.3 not compatible with jetty7.6.x 
> ----------------------------------------
>
>                 Key: CXF-4175
>                 URL: https://issues.apache.org/jira/browse/CXF-4175
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.5.2
>            Reporter: jerryscott2012
>            Assignee: Daniel Kulp
>              Labels: patch
>             Fix For: 2.4.7, 2.5.3
>
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> When I update the jetty jar from 7.5.4 to 7.6.2(the latest stable) and publish the web service interface under ssl enviroment,my application throw the exception :
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.getSslContextFactory()Lorg/eclipse/jetty/http/ssl/SslContextFactory;
> 	at org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.setClientAuthentication(CXFJettySslSocketConnector.java:90)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.decorateCXFJettySslSocketConnector(JettySslConnectorFactory.java:84)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.createConnector(JettySslConnectorFactory.java:70)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:291)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:168)
> 	at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
> 	at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
> 	at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:837)
> 	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:204)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4175) CXF2.5.3 not compatible with jetty7.6.x

Posted by "jerryscott2012 (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232144#comment-13232144 ] 

jerryscott2012 commented on CXF-4175:
-------------------------------------

Daniel the snapshot of the latest cxf2.5.3 also reproduced the same error. (just test with apache-cxf-2.5.3-20120310.074533-29.zip),would you mind providing me the latest uri to download for testing.
                
> CXF2.5.3 not compatible with jetty7.6.x 
> ----------------------------------------
>
>                 Key: CXF-4175
>                 URL: https://issues.apache.org/jira/browse/CXF-4175
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.5.2
>            Reporter: jerryscott2012
>            Assignee: Daniel Kulp
>              Labels: patch
>             Fix For: 2.4.7, 2.5.3
>
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> When I update the jetty jar from 7.5.4 to 7.6.2(the latest stable) and publish the web service interface under ssl enviroment,my application throw the exception :
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.getSslContextFactory()Lorg/eclipse/jetty/http/ssl/SslContextFactory;
> 	at org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.setClientAuthentication(CXFJettySslSocketConnector.java:90)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.decorateCXFJettySslSocketConnector(JettySslConnectorFactory.java:84)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.createConnector(JettySslConnectorFactory.java:70)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:291)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:168)
> 	at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
> 	at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
> 	at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:837)
> 	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:204)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4175) CXF2.5.3 not compatible with jetty7.6.x

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

Daniel Kulp commented on CXF-4175:
----------------------------------


Jetty renamed some classes (HttpConnection->AbstractHttpConnection) and moved some classes around (org.eclipse.jetty.http.ssl.SslContext -> org.eclipse.jetty.utl.ssl.SslContext) both of which affect CXF.   It's going to require quite a bit of reflection code to be able to support both 7.5.x and 7.6.x.  :-(


                
> CXF2.5.3 not compatible with jetty7.6.x 
> ----------------------------------------
>
>                 Key: CXF-4175
>                 URL: https://issues.apache.org/jira/browse/CXF-4175
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.5.2
>            Reporter: jerryscott2012
>              Labels: patch
>             Fix For: 2.5.3
>
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> When I update the jetty jar from 7.5.4 to 7.6.2(the latest stable) and publish the web service interface under ssl enviroment,my application throw the exception :
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.getSslContextFactory()Lorg/eclipse/jetty/http/ssl/SslContextFactory;
> 	at org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.setClientAuthentication(CXFJettySslSocketConnector.java:90)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.decorateCXFJettySslSocketConnector(JettySslConnectorFactory.java:84)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.createConnector(JettySslConnectorFactory.java:70)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:291)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:168)
> 	at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
> 	at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
> 	at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:837)
> 	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:204)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4175) CXF2.5.3 not compatible with jetty7.6.x

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

Daniel Kulp commented on CXF-4175:
----------------------------------

I couldn't get it ported back to 2.3.x.  2.3 is based on Jetty 7.4 (not Jetty 7.5) and getting it to support all 3 versions is a big undertaking.   Your best bet is to move to a newer version of CXF.
                
> CXF2.5.3 not compatible with jetty7.6.x 
> ----------------------------------------
>
>                 Key: CXF-4175
>                 URL: https://issues.apache.org/jira/browse/CXF-4175
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.5.2
>            Reporter: jerryscott2012
>            Assignee: Daniel Kulp
>              Labels: patch
>             Fix For: 2.4.7, 2.5.3
>
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> When I update the jetty jar from 7.5.4 to 7.6.2(the latest stable) and publish the web service interface under ssl enviroment,my application throw the exception :
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.getSslContextFactory()Lorg/eclipse/jetty/http/ssl/SslContextFactory;
> 	at org.apache.cxf.transport.https_jetty.CXFJettySslSocketConnector.setClientAuthentication(CXFJettySslSocketConnector.java:90)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.decorateCXFJettySslSocketConnector(JettySslConnectorFactory.java:84)
> 	at org.apache.cxf.transport.https_jetty.JettySslConnectorFactory.createConnector(JettySslConnectorFactory.java:70)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:291)
> 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:168)
> 	at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
> 	at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
> 	at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:837)
> 	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:204)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira