[jboss-jira] [JBoss JIRA] (AS7-3756) RESTEasy: Deployment fails if there is more than one EJB-JAR in the EAR

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Thu Feb 16 04:56:36 EST 2012


     [ https://issues.jboss.org/browse/AS7-3756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas resolved AS7-3756.
---------------------------------

    Fix Version/s: 7.1.1.Final
       Resolution: Done

    
> RESTEasy: Deployment fails if there is more than one EJB-JAR in the EAR
> -----------------------------------------------------------------------
>
>                 Key: AS7-3756
>                 URL: https://issues.jboss.org/browse/AS7-3756
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Frank Schwarz
>            Assignee: Stuart Douglas
>              Labels: Deployment, Resteasy
>             Fix For: 7.1.1.Final
>
>
> If there is more than one EJB-JAR in the EAR, deployment of Restful webservice fails:
> {code}
> 22:01:53,351 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.subunit."profiles.ear"."profiles.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."profiles.ear"."profiles.war".INSTALL: Failed to process phase INSTALL of subdeployment "profiles.war" of deployment "profiles.ear"
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_30]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_30]
>         at java.lang.Thread.run(Thread.java:662) [:1.6.0_30]
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011231: More than one Application class found in deployment class com.buschmais.hr.profiles.rest.service.RestService and class com.buschmais.hr.profiles.rest.service.RestService
>         at org.jboss.as.jaxrs.deployment.ResteasyDeploymentData.merge(ResteasyDeploymentData.java:38)
>         at org.jboss.as.jaxrs.deployment.JaxrsIntegrationProcessor.deploy(JaxrsIntegrationProcessor.java:93)
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
>         ... 5 more
> {code}
> Please note, that there is only one class "com.buschmais.hr.profiles.rest.service.RestService" in the deployment unit. Please don't bother me to check if the class is both in the EAR and the WAR. Be assured that it is not! 
> This is also not RESTEASY-650.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list