SCM Manager on JBoss

Showing 1-3 of 3 messages
SCM Manager on JBoss savril 9/19/12 1:05 AM

Hi,

 

I'm trying to deploy SCM Manager on JBoss AS 7 with no luck.

 

I first run into conflicts with Jboss internal JAX RS implementation.

 

I’ve added a jboss-deployment-structure.xml in the webapp METAINF folder to prevent use of JBoss libraries:

<jboss-deployment-structure  xmlns="urn:jboss:deployment-structure:1.0">

    <deployment>

        <exclusions>

            <module name="org.jboss.as.jaxrs"/>

            <module name="org.jboss.resteasy"/>

             <module name="org.jboss.resteasy.resteasy-atom-provider"/>

            <module name="org.jboss.resteasy.resteasy-cdi"/>

            <module name="org.jboss.resteasy.resteasy-jaxb-provider"/>

            <module name="org.jboss.resteasy.resteasy-jaxrs"/>

            <module name="org.codehaus.jackson.jackson-jaxrs"/>

            <module name="org.codehaus.jackson.jackson-core-asl"/>

            <module name="org.codehaus.jackson.jackson-mapper-asl"/>

            <module name="org.jboss.resteasy.resteasy-jackson-provider"/>

            <module name="org.jboss.resteasy.resteasy-jsapi"/>

            <module name="org.jboss.resteasy.resteasy-multipart-provider"/>

            <module name="org.jboss.resteasy.async-http-servlet-30"/>

            <module name="org.jboss.ws.api"/>

            <module name="org.jboss.ws.spi"/>

            <module name="org.jboss.as.webservices"/>

        </exclusions>

    </deployment>

</jboss-deployment-structure>

 

But that wasn’t enough, so I changed JBoss config (domain.xml in my case) to remove all modules related to JAX RS.

 

I’ve get rid of all errors related to JAX-RS but I run into other errors, probably related to the way Jboss 7 deploy WARs. In JBoss 7, it no longer unzip WAR content the way Tomcat does it but it keep zipped and expose it via a VFS layer.

 

Here’s the log (jboss part of it is in French) :

 

19:37:46,618 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Lancement du déploiement de "scm-webapp.war"

19:37:47,788 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jaxb-api.jar in /content/scm-webapp.war/WEB-INF/lib/jaxb-impl-2.2.3.jar  does not point to a valid jar for a Class-Path reference.

19:37:47,789 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry activation.jar in /content/scm-webapp.war/WEB-INF/lib/jaxb-impl-2.2.3.jar  does not point to a valid jar for a Class-Path reference.

19:37:47,789 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jsr173_1.0_api.jar in /content/scm-webapp.war/WEB-INF/lib/jaxb-impl-2.2.3.jar  does not point to a valid jar for a Class-Path reference.

19:37:47,789 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jaxb1-impl.jar in /content/scm-webapp.war/WEB-INF/lib/jaxb-impl-2.2.3.jar  does not point to a valid jar for a Class-Path reference.

19:37:47,801 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,802 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,802 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,802 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,803 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,803 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,803 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,803 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,804 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,804 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,804 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,804 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,805 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,805 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,805 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,805 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,806 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,806 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,806 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,807 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'

19:37:47,807 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,807 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,807 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,808 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,808 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,808 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,808 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,809 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,809 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,809 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,810 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,810 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,810 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$App' invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'

19:37:47,810 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Nom de classe rencontré 'com.sun.jersey.core.impl.provider.entity.XMLRootObje

...
Re: SCM Manager on JBoss Sebastian Sdorra 9/20/12 1:22 AM
Hi,
I've done some tests by my self with JBoss 7.1.1. First i had to
disable the jaxrs modules of JBoss in the standalone.xml, after that i
saw the same errors which you have posted. This errors come from the
plugin loading system of SCM-Manager, which was not ready for the vfs
system of JBoss. I was able to fix those errors:
https://bitbucket.org/sdorra/scm-manager/changeset/4a4e3fa8f568. But
Jersey (jax-rs implementation used by SCM-Manager) does only find the
root resources of the custom plugins and not the ones in
WEB-INF/classes or WEB-INF/lib.

Here the output from JBoss:

09:23:45,379 INFO  [com.sun.jersey.api.core.PackagesResourceConfig]
(MSC service thread 1-8) Scanning for root resource and provider
classes in the packages:
  sonia.scm
09:23:45,416 INFO  [com.sun.jersey.api.core.ScanningResourceConfig]
(MSC service thread 1-8) Root resource classes found:
  class sonia.scm.notify.NotifyConfigurationResource
09:23:45,417 INFO  [com.sun.jersey.api.core.ScanningResourceConfig]
(MSC service thread 1-8) No provider classes found.

And here the output of the scm-server bundle:

INFO: Scanning for root resource and provider classes in the packages:
  sonia.scm
Sep 20, 2012 10:17:22 AM
com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class sonia.scm.api.rest.resources.ChangePasswordResource
  class sonia.scm.api.rest.resources.ConfigurationResource
  class sonia.scm.api.rest.resources.SvnConfigResource
  class sonia.scm.api.rest.resources.RepositoryImportResource
  class sonia.scm.api.rest.resources.AuthenticationResource
  class sonia.scm.api.rest.resources.HgConfigResource
  class sonia.scm.api.rest.resources.SupportResource
  class sonia.scm.api.rest.resources.GroupResource
  class sonia.scm.api.rest.resources.UserResource
  class sonia.scm.api.rest.resources.RepositoryRootResource
  class sonia.scm.api.rest.resources.GitConfigResource
  class sonia.scm.api.rest.resources.RepositoryResource
  class sonia.scm.api.rest.resources.PluginResource
  class sonia.scm.api.rest.resources.SearchResource
  class sonia.scm.notify.NotifyConfigurationResource
Sep 20, 2012 10:17:22 AM
com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Provider classes found:
  class sonia.scm.api.rest.ScmSecurityExceptionMapper
  class sonia.scm.api.rest.TemplateEngineViewable

As you can see all classes of sonia.scm.api.rest are missing. I'm not
sure howto fix it, but i think the problem lies in the
ScanningResourceConfig of Jersey.

I've created a SCM-Manager ticket for this problem at
https://bitbucket.org/sdorra/scm-manager/issue/250/scm-manager-does-not-work-with-jboss-7.

Sebastian

2012/9/19 savril <avr...@gmail.com>:
> 'com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,811 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,811 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,811 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,811 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,812 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,812 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,812 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,813 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,813 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,813 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,813 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,814 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromStringEnum'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,814 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeValueOf'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,814 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromString'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,815 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,815 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$DateProvider'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,815 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.JAXBStringReaderProviders$RootElementProvider'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,816 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,817 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,817 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,817 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,817 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,818 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,818 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,818 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,818 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,819 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,819 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,819 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,819 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,820 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,820 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,820 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,820 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App' invalide
> pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,821 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,821 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App' invalide
> pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,821 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyWriter'
>
> 19:37:47,822 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,822 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,822 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,822 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,823 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,823 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,823 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,823 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,824 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,824 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,824 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,824 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,825 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,825 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$Text'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,825 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,825 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,826 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,826 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,826 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,826 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$App'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,827 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,827 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$App' invalide
> pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,827 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,827 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$App' invalide
> pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,828 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General'
> invalide pour le type de service 'javax.ws.rs.ext.MessageBodyReader'
>
> 19:37:47,828 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromStringEnum'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,828 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeValueOf'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,829 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromString'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,829 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,829 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$DateProvider'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,829 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3)
> JBAS015893: Nom de classe rencontré
> 'com.sun.jersey.server.impl.model.parameter.multivalued.JAXBStringReaderProviders$RootElementProvider'
> invalide pour le type de service 'com.sun.jersey.spi.StringReaderProvider'
>
> 19:37:47,831 INFO  [org.jboss.as.pojo] (MSC service thread 1-3) JBAS017000:
> Espace-nom bean/pojo hérité trouvé : urn:jboss:bean-deployer:2.0 - avec
> certaines fonctionnalités xml sans doute manquantes (exceptions possibles).
>
> 19:37:47,952 INFO  [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011907:
> Register module: Module "deployment.scm-webapp.war:main" from Service Module
> Loader
>
> 19:37:47,966 INFO  [sonia.scm.boot.BootstrapListener] (MSC service thread
> 1-3) start scm-manager 1.21-SNAPSHOT in stage: PRODUCTION
>
> 19:37:47,966 WARN  [sonia.scm.boot.BootstrapListener] (MSC service thread
> 1-3) fallback to default classloader
>
> 19:37:47,972 ERROR [sonia.scm.plugin.DefaultPluginLoader] (MSC service
> thread 1-3) could not load plugin
> vfs:/content/scm-webapp.war/WEB-INF/lib/scm-git-plugin-1.21-SNAPSHOT.jar/META-INF/scm/plugin.xml:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -10
>
>         at java.lang.String.substring(String.java:1949) [rt.jar:1.6.0_24]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.loadPlugin(DefaultPluginLoader.java:306)
> [classes:]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.load(DefaultPluginLoader.java:265)
> [classes:]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.<init>(DefaultPluginLoader.java:97)
> [classes:]
>
>         at
> sonia.scm.ScmContextListener.getDefaultInjector(ScmContextListener.java:172)
> [classes:]
>
>         at
> sonia.scm.ScmContextListener.getInjector(ScmContextListener.java:158)
> [classes:]
>
>         at
> com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
> [guice-servlet-3.0.jar:]
>
>         at
> sonia.scm.ScmContextListener.contextInitialized(ScmContextListener.java:130)
> [classes:]
>
>         at
> sonia.scm.boot.BootstrapListener.contextInitialized(BootstrapListener.java:172)
> [classes:]
>
>         at
> org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
> [jbossweb-7.0.16.Final-redhat-1.jar:]
>
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
> [jbossweb-7.0.16.Final-redhat-1.jar:]
>
>         at
> org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
> [jboss-as-web-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
>
>         at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
>
>         at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
>
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> [rt.jar:1.6.0_24]
>
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> [rt.jar:1.6.0_24]
>
>         at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
>
>
>
> 19:37:47,974 ERROR [sonia.scm.plugin.DefaultPluginLoader] (MSC service
> thread 1-3) could not load plugin
> vfs:/content/scm-webapp.war/WEB-INF/lib/scm-svn-plugin-1.21-SNAPSHOT.jar/META-INF/scm/plugin.xml:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -10
>
>         at java.lang.String.substring(String.java:1949) [rt.jar:1.6.0_24]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.loadPlugin(DefaultPluginLoader.java:306)
> [classes:]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.load(DefaultPluginLoader.java:265)
> [classes:]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.<init>(DefaultPluginLoader.java:97)
> [classes:]
>
>         at
> sonia.scm.ScmContextListener.getDefaultInjector(ScmContextListener.java:172)
> [classes:]
>
>         at
> sonia.scm.ScmContextListener.getInjector(ScmContextListener.java:158)
> [classes:]
>
>         at
> com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45)
> [guice-servlet-3.0.jar:]
>
>         at
> sonia.scm.ScmContextListener.contextInitialized(ScmContextListener.java:130)
> [classes:]
>
>         at
> sonia.scm.boot.BootstrapListener.contextInitialized(BootstrapListener.java:172)
> [classes:]
>
>         at
> org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
> [jbossweb-7.0.16.Final-redhat-1.jar:]
>
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
> [jbossweb-7.0.16.Final-redhat-1.jar:]
>
>         at
> org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
> [jboss-as-web-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
>
>         at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
>
>         at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
>
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> [rt.jar:1.6.0_24]
>
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> [rt.jar:1.6.0_24]
>
>         at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
>
>
>
> 19:37:47,975 ERROR [sonia.scm.plugin.DefaultPluginLoader] (MSC service
> thread 1-3) could not load plugin
> vfs:/content/scm-webapp.war/WEB-INF/lib/scm-hg-plugin-1.21-SNAPSHOT.jar/META-INF/scm/plugin.xml:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -10
>
>         at java.lang.String.substring(String.java:1949) [rt.jar:1.6.0_24]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.loadPlugin(DefaultPluginLoader.java:306)
> [classes:]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.load(DefaultPluginLoader.java:265)
> [classes:]
>
>         at
> sonia.scm.plugin.DefaultPluginLoader.<init>(DefaultPluginLoader.java:97)
> [classes:]
>
>         at
> sonia.scm.ScmContextListener.getDefaultInjector(ScmContextListener.java:172)
> [classes:]
>
>         at
> sonia.scm.ScmContextListener.getInjector(ScmContextListener.java:158)
> [classes:]
>
>         at
> com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceS...
Re: SCM Manager on JBoss savril 9/20/12 10:10 AM
I've tested your fix and it worked (load the plugin).

But I've run into a jersey config loading error like you :
18:53:09,256 INFO  [com.sun.jersey.server.impl.application.WebApplicationImpl] (MSC service thread 1-4) Initiating Jersey application, version 'Jersey: 1.14 09/09/2012 07:21 PM'
18:53:09,444 SEVERE [com.sun.jersey.server.impl.application.RootResourceUriRules] (MSC service thread 1-4) The ResourceConfig instance does not contain any root resource classes.
18:53:09,444 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/scm-webapp]] (MSC service thread 1-4) Exception au démarrage du filtre guiceFilter: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
        at com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:99) [jersey-bundle-1.14.jar:1.14]
        at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1300) [jersey-bundle-1.14.jar:1.14]
        at com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:163) [jersey-bundle-1.14.jar:1.14]
        at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:769) [jersey-bundle-1.14.jar:1.14]

It may be related to this Jersey bug : http://java.net/jira/browse/JERSEY-763


Well, for the moment I think I'll install SCM Manager on another server.

Thanks for your help.