1 Reply Latest reply on Feb 20, 2012 10:49 AM by Florian Kunz

    jersey app on jboss7

    ard Newbie

      Hi All,

      I am trying to deploy JERSEY1.11 web app on JBOSS AS 7.0.2. But getting bunch of WARN, please advise if anything elase needsto be done to deploy jersey app on jboss7.

      Thanks for your inputs.

       

      This is what i have done so far

      1. Added these jars to project lib

          1. asm-3.1jar
          2. Jackson-core-asl.1.9.2.jar
          3. Jackson-jaxrs-1.9.2.jar
          4. Jackson-mapper-asl.1.9.2.jar
          5. Jackson-xc-1.9.2.jar
          6. Jersey-bundle-1.11.jar
          7. Jersey-client-1.11.jar
          8. Jersey-core-1.11.jar
          9. Jersey-json-1.11.jar
          10. Jersey-server-1.11.jar
          11. Jersey-servlet-1.11.jar
          12. Jettison-1.1.jar
          13. Jsr311-api-1.1.1.jar

       

      2. standalone.xml :              Commented   below lines

                     < extension module="org.jboss.as.jaxrs">

      <subsystem xmlns="urn:jboss:domain:jaxrs:1.0">

      3. web.xml:  Commented init para

                <!-- <init-param>              

                     <param-name>com.sun.jersey.config.property.packages</param-name>

                      <param-value>com.myapp.test</param-value>

                     </init-param>

                 -->

       

       

       

      When deploying I am getting this bellow WARN message

      11:45:09,719 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,719 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,719 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,719 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$Text" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromStringEnum" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeValueOf" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromString" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$DateProvider" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.JAXBStringReaderProviders$RootElementProvider" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$Text" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,720 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,736 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,736 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,736 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,736 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General" for service type "javax.ws.rs.ext.MessageBodyReader"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General" for service type "javax.ws.rs.ext.MessageBodyWriter"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromStringEnum" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeValueOf" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromString" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$DateProvider" for service type "com.sun.jersey.spi.StringReaderProvider"

      11:45:09,752 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.jersey.server.impl.model.parameter.multivalued.JAXBStringReaderProviders$RootElementProvider" for service type "com.sun.jersey.spi.StringReaderProvider"

        • 1. Re: jersey app on jboss7
          Florian Kunz Newbie

          It's the same for me. Actually it's even worse, got a couple of exceptions flying at the end. The only jersey version that seemed to work was 1.4.

           

          I just tried out 7.1.0.Final, but I got this with Jersey 1.11:

          WARN: Class Path entry jaxb-api.jar in "myapp.war/WEB-INF/lib/jaxb-impl-2.2.3-1.jar"  does not point to a valid jar for a Class-Path reference.

          <Repeat for all other jaxb jars and a couple more>

          Also all warnings that were mentioned in the original post.

          It all end with an exception:

          Caused by: java.lang.ClassNotFoundException: com.sun.jersey.server.impl.container.servlet.Include

          and a couple more of those but probably related to the jar loading problems at the start.

           

          With Jersey 1.4 deployment goes wrong as well:

           

          16:43:50,679 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/myapp]] (http--127.0.0.1-8080-1) StandardWrapper.Throwable: java.lang.NullPointerException

              at com.sun.jersey.server.impl.cdi.CDIComponentProviderFactory.<init>(CDIComponentProviderFactory.java:94) [jersey-server-1.4.jar:1.4]

              at com.sun.jersey.server.impl.cdi.CDIComponentProviderFactoryInitializer.initialize(CDIComponentProviderFactoryInitializer.java:75) [jersey-server-1.4.jar:1.4]

              at com.sun.jersey.spi.container.servlet.WebComponent.configure(WebComponent.java:554) [jersey-server-1.4.jar:1.4]

              at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.configure(ServletContainer.java:280) [jersey-server-1.4.jar:1.4]

              at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:586) [jersey-server-1.4.jar:1.4]

              at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:213) [jersey-server-1.4.jar:1.4]

              at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:342) [jersey-server-1.4.jar:1.4]

              at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:516) [jersey-server-1.4.jar:1.4]

              at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.10.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.10.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.10.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.10.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.10.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.10.Final.jar:]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_01]

           

          Would be great if anyone could have a look or comment on that.

           

          Thanks,

          Florian