1 Reply Latest reply on Jan 14, 2015 7:31 AM by Sam W

    failed to deploy ear to jboss 7.2.Final.

    Sam W Expert

      I created a ear project was able to deploy to jboss 7.1.1.Final.

      However after changed to jboss 7.2.Final, the deployment failed with the following errors:

       

      22:35:43,426 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-6) Creating Service {http://address.service.deliveries.iextent/}AddressServiceImplService from class iextent.deliveries.service.address.AddressService

      22:35:43,430 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 72) JBAS011402: Starting Persistence Unit Service 'Deliveries-ear-1.0.ear/Deliveries-ejb-1.0.jar#DeliveriesPU'

      22:35:43,430 INFO  [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 72) HHH000204: Processing PersistenceUnitInfo [

              name: DeliveriesPU

              ...]

      22:35:43,445 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.subunit."Deliveries-ear-1.0.ear"."Deliveries-web-1.0.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Deliveries-ear-1.0.ear"."Deliveries-web-1.0.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "Deliveries-web-1.0.war" of deployment "Deliveries-ear-1.0.ear"

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

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

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

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

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

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_07]

      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.jar:7.2.0.Final]

              ... 5 more

      Caused by: java.lang.reflect.UndeclaredThrowableException

              at $Proxy45.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:1605) [rt.jar:1.6.0_07]

              at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:52)

              ... 28 more

       

      22:35:43,486 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (ServerService Thread Pool -- 72) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

      22:35:43,503 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 72) HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect

      22:35:43,507 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (ServerService Thread Pool -- 72) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

      22:35:43,513 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 72) HHH000397: Using ASTQueryTranslatorFactory

      22:35:43,541 INFO  [org.hibernate.cache.spi.UpdateTimestampsCache] (ServerService Thread Pool -- 72) HHH000250: Starting update timestamps cache at region: Deliveries-ear-1.0.ear/Deliveries-ejb-1.0.jar#DeliveriesPU.org.hibernate.cache.spi.UpdateTimestampsCache

      22:35:43,592 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 72) ISPN000031: MBeans were successfully registered to the platform MBean server.

      22:35:43,592 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 72) JBAS010281: Started Deliveries-ear-1.0.ear/Deliveries-ejb-1.0.jar#DeliveriesPU.org.hibernate.cache.spi.UpdateTimestampsCache cache from hibernate container

      22:35:43,592 INFO  [org.hibernate.cache.internal.StandardQueryCache] (ServerService Thread Pool -- 72) HHH000248: Starting query cache at region: Deliveries-ear-1.0.ear/Deliveries-ejb-1.0.jar#DeliveriesPU.org.hibernate.cache.internal.StandardQueryCache

      22:35:43,598 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 72) ISPN000031: MBeans were successfully registered to the platform MBean server.

      22:35:43,598 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 72) JBAS010281: Started Deliveries-ear-1.0.ear/Deliveries-ejb-1.0.jar#DeliveriesPU.org.hibernate.cache.internal.StandardQueryCache cache from hibernate container

      22:35:43,717 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 72) HHH000228: Running hbm2ddl schema update

      22:35:43,720 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 72) HHH000102: Fetching database metadata

      22:35:43,720 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 72) HHH000396: Updating schema

      22:35:43,728 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000261: Table found: houseware.cust_address

      22:35:43,728 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000037: Columns: [phone, fax, suburb, address_id, state, address1, address2, type, postcode, contact, email_address, country]

      22:35:43,728 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000108: Foreign keys: []

      22:35:43,728 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000126: Indexes: [phone, fax, suburb, primary, state, address1, address2, postcode, country]

      22:35:43,731 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000261: Table found: houseware.admin

      22:35:43,731 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000037: Columns: [image_data, image_title, first_name, image_type, address_id, login_name, last_name, gender, user_id, password, email_address]

      22:35:43,731 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000108: Foreign keys: [admin_ibfk_1]

      22:35:43,732 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000126: Indexes: [address_id, primary]

      22:35:43,735 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000261: Table found: houseware.admin_address

      22:35:43,735 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000037: Columns: [phone, fax, suburb, address_id, state, address1, address2, postcode, contact, email_address, country]

      22:35:43,735 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000108: Foreign keys: []

      22:35:43,735 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000126: Indexes: [phone, fax, suburb, primary, state, address1, address2, postcode, country]

      22:35:43,741 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000261: Table found: houseware.deliveries

      22:35:43,741 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000037: Columns: [ebay_id, third_party_driver, item_price, driver_name, delivery_instruction, delivery_between_time1, delivery_datetime, delivery_between_time2, customer_name, item_desc, ads_source, qty, driver_license_number, payment_status, delivery_id, driver_phone_number, item_name, address_id, product_code, tracking_number, delivery_date, delivery_fee, notes, third_party_driver_charge]

      22:35:43,741 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000108: Foreign keys: [deliveries_ibfk_1]

      22:35:43,741 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000126: Indexes: [address_id, primary]

      22:35:43,743 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000261: Table found: houseware.invoice

      22:35:43,743 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000037: Columns: [delivery_id, warranty_desc, invoice_id, notes, year_warranty]

      22:35:43,743 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000108: Foreign keys: [invoice_ibfk_1]

      22:35:43,743 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (ServerService Thread Pool -- 72) HHH000126: Indexes: [delivery_id, primary]

      22:35:43,743 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 72) HHH000232: Schema update complete

      22:35:44,108 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "Deliveries-ear-1.0.ear" was rolled back with the following failure message:

      {

          "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"Deliveries-ear-1.0.ear\".\"Deliveries-web-1.0.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"Deliveries-ear-1.0.ear\".\"Deliveries-web-1.0.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"Deliveries-web-1.0.war\" of deployment \"Deliveries-ear-1.0.ear\"

          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)"},

          "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"Deliveries-ear-1.0.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"Deliveries-ear-1.0.ear\".\"Deliveries-web-1.0.war\".deploymentCompleteService]"]

      }

      22:35:44,127 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 76) JBAS011403: Stopping Persistence Unit Service 'Deliveries-ear-1.0.ear/Deliveries-ejb-1.0.jar#DeliveriesPU'

      22:35:44,142 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 76) JBAS010282: Stopped Deliveries-ear-1.0.ear/Deliveries-ejb-1.0.jar#DeliveriesPU.org.hibernate.cache.internal.StandardQueryCache cache from hibernate container

      22:35:44,155 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 76) JBAS010282: Stopped Deliveries-ear-1.0.ear/Deliveries-ejb-1.0.jar#DeliveriesPU.org.hibernate.cache.spi.UpdateTimestampsCache cache from hibernate container

      22:35:44,193 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 76) ISPN000031: MBeans were successfully registered to the platform MBean server.

      22:35:44,193 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 76) JBAS010281: Started local-query cache from hibernate container

      22:35:44,247 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment null (runtime-name: Deliveries-ejb-1.0.jar) in 138ms

      22:35:44,255 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment null (runtime-name: Deliveries-web-1.0.war) in 146ms

      22:35:44,264 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment Deliveries-ear-1.0.ear (runtime-name: Deliveries-ear-1.0.ear) in 157ms

        • 1. Re: failed to deploy ear to jboss 7.2.Final.
          Sam W Expert

          Not sure if jboss 7.2.final has changed its deployment policy.

          When I used jboss 7.1.1.Final, I can deploy multiple EAR projects.

          But in jboss 7.2.final, if there is an EAR project already deployed, the second EAR project will failed with the error as shown above.

          Therefore in Jboss 7.2.Final, which EAR project deploy first, it will be successfully deployed, otherwise it will failed.

           

          What is the changed about deployment in 7.2.Final?

           

          Very appreciate for any suggestion and help

          Best regards

          Sam