EAR Deployment
cvasilak Jan 11, 2012 5:27 AMHi,
I am trying to install an application using ear deployment. The ear consists of
svc-rrd-model (shared model classes)
svc-rrd-service (switchyard app)
You can have a look of the source code here
https://github.com/cvasilak/svc-rrd-parent
When deploying as standalone the svc-rrd-service it deploys correctly. Trying to package the jar inside an ear I get the following exception:
12:15:59,021 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "svc-rrd-ear-1.0-SNAPSHOT.ear"
12:15:59,372 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "svc-rrd-service.jar"
12:15:59,465 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."svc-rrd-ear-1.0-SNAPSHOT.ear".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."svc-rrd-ear-1.0-SNAPSHOT.ear".POST_MODULE: Failed to process phase POST_MODULE of deployment "svc-rrd-ear-1.0-SNAPSHOT.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_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]
Caused by: java.lang.NullPointerException
at org.switchyard.as7.extension.deployment.SwitchYardConfigProcessor.deploy(SwitchYardConfigProcessor.java:60)
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
12:15:59,697 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015856: Undeploy of deployment "svc-rrd-ear-1.0-SNAPSHOT.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"svc-rrd-ear-1.0-SNAPSHOT.ear\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"svc-rrd-ear-1.0-SNAPSHOT.ear\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"svc-rrd-ear-1.0-SNAPSHOT.ear\""}}
12:15:59,761 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment svc-rrd-service.jar in 63ms
12:15:59,767 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment svc-rrd-ear-1.0-SNAPSHOT.ear in 70ms
12:15:59,768 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."svc-rrd-ear-1.0-SNAPSHOT.ear".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."svc-rrd-ear-1.0-SNAPSHOT.ear".POST_MODULE: Failed to process phase POST_MODULE of deployment "svc-rrd-ear-1.0-SNAPSHOT.ear"
12:15:59,769 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.\"svc-rrd-ear-1.0-SNAPSHOT.ear\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"svc-rrd-ear-1.0-SNAPSHOT.ear\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"svc-rrd-ear-1.0-SNAPSHOT.ear\""}}}}
The svc-service class contains an EJB (Routing class) and the svc-model contains some model classes shared by the ejb and the webapp(that will be bult later). Basically I am doing the ear because I want the model classes to be packaged as an external jar shared both by the ejb and the webapp.
I am using jboss-as-7.1.0.CR1b/ (latest release) with the switchyard runtime installed by the switchyard-installer
Any tips?
Regards,
Christos