Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-3582

RESTEasy: Integration test basic-integration-test does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • EAP_EWP 5.1.0
    • EWP 5.0.0.CR1, EWP 5.0.0.CR2, EWP 5.0.0.CR3, EWP 5.0.1
    • RESTEasy
    • None

      Integration test (obtained from https://resteasy.svn.sourceforge.net/svnroot/resteasy/tags/RESTEASY_JAXRS_1_1_GA_CP01/jboss-integration-testing/basic-integration-test) does not work.

      Prepared war contains WEB-INF/lib/jaxb-api-2.1.jar.

      [INFO] [dependency:tree]
      [INFO] org.jboss.resteasy:basic-integration-test:war:1.1.GA_CP01
      [INFO] +- org.jboss.resteasy:resteasy-jaxrs:jar:1.1.GA_CP01:compile
      [INFO] | +- org.jboss.resteasy:jaxrs-api:jar:1.1.GA_CP01:compile
      [INFO] | +- org.slf4j:slf4j-api:jar:1.5.8:compile
      [INFO] | +- org.slf4j:slf4j-simple:jar:1.5.8:compile
      [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.8:compile
      [INFO] | +- org.scannotation:scannotation:jar:1.0.2:compile
      [INFO] | | - javassist:javassist:jar:3.6.0.GA:compile
      [INFO] | +- javax.annotation:jsr250-api:jar:1.0:compile
      [INFO] | +- javax.activation:activation:jar:1.1:compile
      [INFO] | - commons-codec:commons-codec:jar:1.3:compile
      [INFO] +- org.jboss.resteasy:resteasy-jaxb-provider:jar:1.1.GA_CP01:compile
      [INFO] | +- javax.xml.bind:jaxb-api:jar:2.1:compile
      [INFO] | | - javax.xml.stream:stax-api:jar:1.0-2:compile
      [INFO] | +- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.7:compile
      [INFO] | +- com.sun.xml.stream:sjsxp:jar:1.0.1:compile
      [INFO] | - org.codehaus.jettison:jettison:jar:1.1:compile
      [INFO] +- junit:junit:jar:4.1:compile
      [INFO] +- commons-httpclient:commons-httpclient:jar:3.1:test (scope not updated to compile)
      [INFO] - com.sun.xml.bind:jaxb-impl:jar:2.1.10:provided (scope not updated to compile)

      Server log:
      13:26:36,449 ERROR [STDERR] 2296 [http-0.0.0.0-8080-2] ERROR org.jboss.resteasy.core.SynchronousDispatcher - Failed executing GET /xml
      13:26:36,455 ERROR [STDERR] org.jboss.resteasy.plugins.providers.jaxb.JAXBMarshalException: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/home/brq/pslavice/ewp/jboss-ewp-5.0/jboss-as-web/lib/endorsed/jaxb-api.jar!/javax/xml/bind/JAXBContext.class to vfszip:/home/brq/pslavice/ewp/jboss-integration-testing/basic-integration-test/target/basic-integration-test.war/WEB-INF/lib/jaxb-api-2.1.jar/javax/xml/bind/JAXBContext.class. Please make sure that you are specifying the proper ClassLoader.
      13:26:36,455 ERROR [STDERR] at org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider.getMarshaller(AbstractJAXBProvider.java:145)
      13:26:36,455 ERROR [STDERR] at org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider.writeTo(AbstractJAXBProvider.java:106)
      13:26:36,455 ERROR [STDERR] at org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl.proceed(MessageBodyWriterContextImpl.java:117)
      13:26:36,455 ERROR [STDERR] at org.jboss.resteasy.plugins.interceptors.encoding.GZIPEncodingInterceptor.write(GZIPEncodingInterceptor.java:48)
      13:26:36,456 ERROR [STDERR] at org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl.proceed(MessageBodyWriterContextImpl.java:123)
      13:26:36,456 ERROR [STDERR] at org.jboss.resteasy.core.ServerResponse.writeTo(ServerResponse.java:184)

            weli@redhat.com Weinan Li
            pslavice@redhat.com Pavel Slavicek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: