cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Finch (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3021) Try to remove a wsdl4J dependency from the JAXRS frontend
Date Wed, 04 May 2011 00:02:03 GMT

    [ https://issues.apache.org/jira/browse/CXF-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028514#comment-13028514
] 

Travis Finch commented on CXF-3021:
-----------------------------------

Recently upgraded from CXF 2.2.12 to 2.4 for our JAX-RS server. We are using embedded Jetty
7.3.1.

I tried to remove wsdl4j from our server-side dependency list, but server fails when launching.
Here is the stack trace:

!ENTRY org.eclipse.osgi 4 0 2011-05-04 00:10:34.897
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: javax/wsdl/extensions/ElementExtensible
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
	at java.lang.Class.getField0(Class.java:2618)
	at java.lang.Class.getField(Class.java:1518)
	at org.apache.cxf.transport.TransportFinder$3.loadBean(TransportFinder.java:200)
	at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadBeansOfType(ExtensionManagerImpl.java:267)
	at org.apache.cxf.transport.TransportFinder.loadDefaultURIs(TransportFinder.java:212)
	at org.apache.cxf.transport.TransportFinder.findTransportForURI(TransportFinder.java:81)
	at org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactoryForUri(DestinationFactoryManagerImpl.java:132)
	at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpointInfo(AbstractJAXRSFactoryBean.java:125)
	at org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpoint(AbstractJAXRSFactoryBean.java:207)
	at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:147)
	at com.vmware.vide.ws.WsServer.start(WsServer.java:167)

>From WsServer:

164:        JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean();
165:        factory.setResourceProviders(providers);
166:        factory.setAddress("http://0.0.0.0:8080/");
167:        Server server = factory.create();

If I add wsdl4j back, everything works find with 2.4. I compared the patch attached to this
issue with the 2.4 source, and it does not look like the entire patch was applied.

Any ideas?

> Try to remove a wsdl4J dependency from the JAXRS frontend
> ---------------------------------------------------------
>
>                 Key: CXF-3021
>                 URL: https://issues.apache.org/jira/browse/CXF-3021
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 2.3
>            Reporter: Sergey Beryozkin
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4
>
>         Attachments: cxf3021-2.patch, cxf3021.patch
>
>
> HTTP Transport and API modules depend strongly at runtime on javax.wsdl.* (wsdl4j)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message