0 Replies Latest reply on Feb 19, 2014 11:10 PM by Scindia Shankar

    Problem redeploy war file - jboss-eap-6.2

    Scindia Shankar Newbie

      Hello All,

       

      Problem 1:

      We added a war file and then enabled it. Enabling is success. Later, we disabled the same war file and enabled it, but this time we got a message "Failed to enable". There is no change in the war file. We are able to enable it only after restarting the jboss server.

       

      Problem 2:

      We have 2 different war files. When we add and enable these war files separately(one at a time), there is no problem and got enabled successfully. But when we try enabling together, only the first war file is success and the second one fails (any order).

       

      Both the cases, below pasted is the error we are getting

      "

      11:52:30,277 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-6) Creating Service {http://emasext.stee.com.sg/awvms}AWWebService from class com.stee.emas.awdb.ws.impl.AWWebServiceImpl
      11:52:30,310 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."emas-AW_DB-0.0.1-SNAPSHOT.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."emas-AW_DB-0.0.1-SNAPSHOT.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "emas-AW_DB-0.0.1-SNAPSHOT.war"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
      at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
      Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:368)
      at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:67)
      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:250)
      at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:536)
      at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:116)
      at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:128)
      at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:67)
      at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
      ... 5 more
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at com.sun.proxy.$Proxy27.visitLabel(Unknown Source)
      at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:223)
      at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:137)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:669)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:638)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:472)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:690)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:540)
      at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:252)
      at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
      at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
      at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
      at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
      at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:453)
      at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:333)
      ... 13 more
      Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
      at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_45]
      at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:52)
      ... 28 more

      11:52:30,333 ERROR [org.jboss.as.server] (HttpManagementService-threads - 4) JBAS015870: Deploy of deployment "emas-AW_DB-0.0.1-SNAPSHOT.war" was rolled back with the following failure message:
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"emas-AW_DB-0.0.1-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"emas-AW_DB-0.0.1-SNAPSHOT.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"emas-AW_DB-0.0.1-SNAPSHOT.war\"
          Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
          Caused by: java.lang.reflect.UndeclaredThrowableException
          Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"}}
      11:52:30,416 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment emas-AW_DB-0.0.1-SNAPSHOT.war (runtime-name: emas-AW_DB-0.0.1-SNAPSHOT.war) in 82ms"

       

      Please help to solve this issue, not sure we have to do some configuration side, as the war file not failing every time.