3 Replies Latest reply on Oct 11, 2012 1:53 AM by Nicklas Karlsson

    JBoss 7.1.1 final Brontes- Getting error

    quick learner Newbie

      Hello,

       

      I am trying to create a simple example of Jersey using Google guice with JBoss 7.

       

      There is no error in the code. When I am trying to run the application on server I got the below error. I tried to search forums and try to do google from which I can figure out that this is a dependency issue but I am not sure for this.

       

      I am also getting so many warning but I am not caring for those now. I have added external JAR reference to a web project for Jersey, Google Guice and Log4j.

       

      If some one got any idea why this is happening Please help. I am also attaching a WAR file for reference.

       

      Thanks in Advance.

       

      ===Below is the error===.

      15:21:30,565 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General' for service type 'javax.ws.rs.ext.MessageBodyWriter'

      15:21:30,566 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter' for service type 'javax.ws.rs.ext.MessageBodyWriter'

      15:21:30,566 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromStringEnum' for service type 'com.sun.jersey.spi.StringReaderProvider'

      15:21:30,567 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeValueOf' for service type 'com.sun.jersey.spi.StringReaderProvider'

      15:21:30,567 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromString' for service type 'com.sun.jersey.spi.StringReaderProvider'

      15:21:30,567 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor' for service type 'com.sun.jersey.spi.StringReaderProvider'

      15:21:30,568 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$DateProvider' for service type 'com.sun.jersey.spi.StringReaderProvider'

      15:21:30,568 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.JAXBStringReaderProviders$RootElementProvider' for service type 'com.sun.jersey.spi.StringReaderProvider'

      15:21:30,640 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.unit."FirstGuiceJBoss.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."FirstGuiceJBoss.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "FirstGuiceJBoss.war"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed.  com.sun.jersey.api.core.ClasspathResourceConfig com.sun.jersey.api.core.ScanningResourceConfig com.sun.jersey.server.impl.application.DeferredResourceConfig com.sun.jersey.api.core.ApplicationAdapter com.sun.jersey.api.core.DefaultResourceConfig com.sun.jersey.api.core.ResourceConfig com.sun.jersey.api.core.ClassNamesResourceConfig com.sun.jersey.api.core.PackagesResourceConfig com.sun.jersey.api.core.servlet.WebAppResourceConfig

          at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:209)

          at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:105)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          ... 5 more

       

      15:21:30,644 INFO  [org.jboss.as] (MSC service thread 1-8) JBAS015951: Admin console listening on http://127.0.0.1:9990

      15:21:30,644 ERROR [org.jboss.as] (MSC service thread 1-8) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 2077ms - Started 140 of 220 services (3 services failed or missing dependencies, 76 services are passive or on-demand)

      15:21:30,647 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "FirstGuiceJBoss.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"FirstGuiceJBoss.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"FirstGuiceJBoss.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"FirstGuiceJBoss.war\""}}

      15:21:30,655 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment FirstGuiceJBoss.war in 8ms

      15:21:30,656 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.naming.context.java.module.FirstGuiceJBoss.FirstGuiceJBoss (missing) dependents: [service jboss.naming.context.java.module.FirstGuiceJBoss.FirstGuiceJBoss.ValidatorFactory, service jboss.naming.context.java.module.FirstGuiceJBoss.FirstGuiceJBoss.Validator]

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."FirstGuiceJBoss.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."FirstGuiceJBoss.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "FirstGuiceJBoss.war"

       

      15:21:30,657 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"FirstGuiceJBoss.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"FirstGuiceJBoss.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"FirstGuiceJBoss.war\""}}}}