users@jersey.java.net

Re: [Jersey] jax-ws conflict with jersey

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 05 May 2008 19:39:10 +0200

Hi Stuart,

I think the problem is because axis2 is performing eager validation
of Java classes that implement the JAX-WS provider interface (even if
they are not used). Maybe it is possible to switch off such validation?

I have fixed the trunk and latest build [1] so that the Jersey JAX-WS
provider has a default constructor.


After J1 i think i am going to delete the Jersey JAX-WS container
support as it is really redundant as we already have the LW HTTP
server and Grizzly both of which provider much better integration to
HTTP.

Paul.

[1] https://jersey.dev.java.net/servlets/ProjectDocumentList?
folderID=7653&expandFolder=7653&folderID=0

On May 5, 2008, at 11:21 AM, Stuart Bedoll wrote:

> I installed JAX-WS on WebSphere and when I started the server my
> Jersey based application would not start due to tthe following
> error. Anyone know if this conflict can be worked around ?
>
> [5/5/08 2:18:35:406 MDT] 00000037 WSModuleDescr E WSWS7027E: JAX-WS
> Service Descriptions could not be correctly built because of the
> following error: javax.xml.ws.WebServiceException: Validation
> error: Provider must have a public default constructor.
> Implementation class:
> com.sun.ws.rest.impl.container.jaxws.ProviderContainer
> at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException
> (ExceptionFactory.java:178)
> at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException
> (ExceptionFactory.java:79)
> at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException
> (ExceptionFactory.java:125)
> at
> org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.validat
> eIntegrity(ServiceDescriptionImpl.java:774)
> at
> org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.validat
> eDBCLIntegrity(ServiceDescriptionImpl.java:707)
> at
> org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.setupSe
> rviceDescriptionImpl(ServiceDescriptionImpl.java:214)
> at
> org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(
> ServiceDescriptionImpl.java:183)
> at
> org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createS
> erviceDescriptionFromDBCMap(DescriptionFactoryImpl.java:179)
> at
> org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDes
> criptionFromDBCMap(DescriptionFactory.java:135)
> at com.ibm.ws.websvcs.desc.WSModuleDescriptorImpl.buildServices
> (WSModuleDescriptorImpl.java:320)
> at com.ibm.ws.websvcs.desc.WSModuleDescriptorImpl.getServices
> (WSModuleDescriptorImpl.java:260)
> at
> com.ibm.ws.webservices.admin.deploy.ServiceIndexDataBuilder.getWSData(
> ServiceIndexDataBuilder.java:50)
> at
> com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTaskImpl.listWeb
> Services(ServiceIndexServerTaskImpl.java:142)
> at
> com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTaskImpl.listWeb
> Services(ServiceIndexServerTaskImpl.java:107)
> at
> com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTask.performTask
> (ServiceIndexServerTask.java:186)
> at com.ibm.ws.management.application.SchedulerImpl.run
> (SchedulerImpl.java:262)
> at java.lang.Thread.run(Thread.java:810)
>
> [5/5/08 2:19:01:578 MDT] 00000037 WASAnnotation E WSWS7047E: The
> URL for the
> javax.xml.ws.Provider<javax.activation.DataSource>.class super
> class cannot load correctly because of the following error:
> java.lang.ClassCastException:
> org.eclipse.jst.j2ee.commonarchivecore.internal.impl.FileImpl
> incompatible with
> org.eclipse.jst.j2ee.commonarchivecore.internal.Archive
> [5/5/08 2:19:01:609 MDT] 00000037 WSCacheWriter I Cache not fully
> generated for FPACommonREST.war module
>