1 Reply Latest reply on Oct 12, 2011 4:55 AM by asoldano

    Why jboss create web service for my web service client?

    samwun9988

      Hi,

       

      This is with JBOSS AS7.

       

      I created a web service client in a EAR project. The web service client is written in the EJB module, while the presentation layer (JSP and controllers) are written in a WAR module, as illustrated below:

       

      EAR Project:

               EJB module

               WAR module

       

      When I deployed the EAR project, JBOSS AS7 trying to create web service, which I think it is not correct. Because this EAR project is the web service consumer (client).

       

      Here is the error exceptions:

       

       

      22:31:17,196 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "CategoryClient-ear.ear"

      22:31:17,322 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "CategoryClient-web.war"

      22:31:17,322 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "CategoryClient-ejb-1.0-SNAPSHOT.jar"

      22:31:19,807 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) added javax.persistence.api dependency to CategoryClient-ear.ear

      22:31:19,807 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api dependency to CategoryClient-web.war

      22:31:19,807 INFO  [org.jboss.as.jpa] (MSC service thread 1-6) added javax.persistence.api dependency to CategoryClient-ejb-1.0-SNAPSHOT.jar

      22:31:19,820 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-5) JNDI bindings for session bean named CategoryManagerImpl in deployment unit subdeployment "CategoryClient-ejb-1.0-SNAPSHOT.jar" of deployment "CategoryClient-ear.ear" are as follows:

       

       

              java:global/CategoryClient-ear/CategoryClient-ejb-1.0-SNAPSHOT/CategoryManagerImpl!ix.houseware.category.CategoryManager

              java:app/CategoryClient-ejb-1.0-SNAPSHOT/CategoryManagerImpl!ix.houseware.category.CategoryManager

              java:module/CategoryManagerImpl!ix.houseware.category.CategoryManager

              java:global/CategoryClient-ear/CategoryClient-ejb-1.0-SNAPSHOT/CategoryManagerImpl

              java:app/CategoryClient-ejb-1.0-SNAPSHOT/CategoryManagerImpl

              java:module/CategoryManagerImpl

       

       

      22:31:19,828 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named CategoryManagerImpl in deployment unit subdeployment "CategoryClient-web.war" of deployment "CategoryClient-ear.ear" are as follows:

       

       

              java:global/CategoryClient-ear/CategoryClient-web/CategoryManagerImpl!ix.houseware.category.CategoryManager

              java:app/CategoryClient-web/CategoryManagerImpl!ix.houseware.category.CategoryManager

              java:module/CategoryManagerImpl!ix.houseware.category.CategoryManager

              java:global/CategoryClient-ear/CategoryClient-web/CategoryManagerImpl

              java:app/CategoryClient-web/CategoryManagerImpl

              java:module/CategoryManagerImpl

       

       

      22:31:19,839 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."CategoryClient-ear.ear"."CategoryClient-ejb-1.0-SNAPSHOT.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."CategoryClient-ear.ear"."CategoryClient-ejb-1.0-SNAPSHOT.jar".INSTALL: Failed to process phase INSTALL of subdeployment "CategoryClient-ejb-1.0-SNAPSHOT.jar" of deployment "CategoryClient-ear.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]

              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:885) [:1.6.0_03-p4]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_03-p4]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_03-p4]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to install component org.jboss.as.ee.component.ComponentConfiguration[name=CategoryManagerImpl class="ix".houseware.category.CategoryManagerImpl]

              at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:95)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]

              ... 5 more

      Caused by: java.lang.IllegalArgumentException: Incompatible conflicting binding at java:comp/env/ix.houseware.category.CategoryManagerImpl/service source: org.jboss.as.webservices.deployers.WebServiceRefAnnotationParsingProcessor$WebServiceRefValueSource@5675d86b

              at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.processBindings(ComponentInstallProcessor.java:235)

              at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.access$000(ComponentInstallProcessor.java:71)

              at org.jboss.as.ee.component.deployers.ComponentInstallProcessor$1.handle(ComponentInstallProcessor.java:190)

              at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:52)

              at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.deployComponent(ComponentInstallProcessor.java:187)

              at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:93)

              ... 6 more

       

       

      22:31:19,977 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.subunit."CategoryClient-ear.ear"."CategoryClient-web.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."CategoryClient-ear.ear"."CategoryClient-web.war".INSTALL: Failed to process phase INSTALL of subdeployment "CategoryClient-web.war" of deployment "CategoryClient-ear.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]

              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:885) [:1.6.0_03-p4]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_03-p4]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_03-p4]

      Caused by: java.lang.IllegalArgumentException: Incompatible conflicting binding at java:module/env/ix.houseware.category.CategoryManagerImpl/service source: org.jboss.as.webservices.deployers.WebServiceRefAnnotationParsingProcessor$WebServiceRefValueSource@5675d86b

              at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:210)

              at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor$1.handle(ModuleJndiBindingProcessor.java:168)

              at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:52)

              at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.processClassConfigurations(ModuleJndiBindingProcessor.java:140)

              at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:133)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]

              ... 5 more

       

       

      22:31:20,184 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "CategoryClient-ear.ear" was rolled back with failure message {"Failed services" => {"jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-web.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-web.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"CategoryClient-web.war\" of deployment \"CategoryClient-ear.ear\"","jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-ejb-1.0-SNAPSHOT.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-ejb-1.0-SNAPSHOT.jar\".INSTALL: Failed to process phase INSTALL of subdeployment \"CategoryClient-ejb-1.0-SNAPSHOT.jar\" of deployment \"CategoryClient-ear.ear\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web.Validator missing [ jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web ]","jboss.naming.context.java.comp.CategoryClient-ear.\"CategoryClient-ejb-1.0-SNAPSHOT\".CategoryManagerImpl.Validator missing [ jboss.naming.context.java.comp.CategoryClient-ear.\"CategoryClient-ejb-1.0-SNAPSHOT\".CategoryManagerImpl ]","jboss.naming.context.java.comp.CategoryClient-ear.\"CategoryClient-ejb-1.0-SNAPSHOT\".CategoryManagerImpl.ValidatorFactory missing [ jboss.naming.context.java.comp.CategoryClient-ear.\"CategoryClient-ejb-1.0-SNAPSHOT\".CategoryManagerImpl ]","jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web.ValidatorFactory missing [ jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web ]"]}

      22:31:20,192 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment CategoryClient-ejb-1.0-SNAPSHOT.jar in 8ms

      22:31:20,199 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment CategoryClient-web.war in 16ms

      22:31:20,201 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Stopped deployment CategoryClient-ear.ear in 18ms

      22:31:20,203 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-web.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-web.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"CategoryClient-web.war\" of deployment \"CategoryClient-ear.ear\"","jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-ejb-1.0-SNAPSHOT.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"CategoryClient-ear.ear\".\"CategoryClient-ejb-1.0-SNAPSHOT.jar\".INSTALL: Failed to process phase INSTALL of subdeployment \"CategoryClient-ejb-1.0-SNAPSHOT.jar\" of deployment \"CategoryClient-ear.ear\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web.Validator missing [ jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web ]","jboss.naming.context.java.comp.CategoryClient-ear.\"CategoryClient-ejb-1.0-SNAPSHOT\".CategoryManagerImpl.Validator missing [ jboss.naming.context.java.comp.CategoryClient-ear.\"CategoryClient-ejb-1.0-SNAPSHOT\".CategoryManagerImpl ]","jboss.naming.context.java.comp.CategoryClient-ear.\"CategoryClient-ejb-1.0-SNAPSHOT\".CategoryManagerImpl.ValidatorFactory missing [ jboss.naming.context.java.comp.CategoryClient-ear.\"CategoryClient-ejb-1.0-SNAPSHOT\".CategoryManagerImpl ]","jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web.ValidatorFactory missing [ jboss.naming.context.java.module.CategoryClient-ear.CategoryClient-web ]"]}}}

       

       

       

      What may have gone wrong in my project configuration?

       

      Very appreciate for your suggestion.

      Thanks

      Sam