Marek Schmidt created AS7-5304:
----------------------------------
Summary: NPE in
org.jboss.as.weld.deployment.processors.BeanArchiveProcessor.createBeanDeploymentArchive
deploying war with WEB-INF/beans.xml but no WEB-INF/classes
Key: AS7-5304
URL:
https://issues.jboss.org/browse/AS7-5304
Project: Application Server 7
Issue Type: Bug
Components: CDI / Weld
Environment: AS 7.2.0.Alpha1-SNAPSHOT 2012-08-03
a97a04dbc9b57a18e4baf6bcc32ba1c4f589c974
Reporter: Marek Schmidt
Assignee: Stuart Douglas
Fix For: 7.2.0.Alpha1
Attempting to deploy a WAR with only WEB-INF/beans.xml fails, if WEB-INF/classes directory
not present in the WAR.
{noformat}
13:38:34,534 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS
7.2.0.Alpha1-SNAPSHOT "Steropes" started in 3686ms - Started 135 of 211 services
(75 services are passive or on-demand)
13:42:03,156 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876:
Starting deployment of "test.war"
13:42:03,339 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002:
Processing weld deployment test.war
13:42:03,341 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed
to start service jboss.deployment.unit."test.war".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."test.war".POST_MODULE: JBAS018733: Failed to process
phase POST_MODULE of deployment "test.war"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123)
[jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_24]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
Caused by: java.lang.NullPointerException
at
org.jboss.as.weld.deployment.processors.BeanArchiveProcessor.createBeanDeploymentArchive(BeanArchiveProcessor.java:168)
at
org.jboss.as.weld.deployment.processors.BeanArchiveProcessor.deploy(BeanArchiveProcessor.java:97)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)
[jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
... 5 more
13:42:03,356 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS015870:
Deploy of deployment "test.war" was rolled back with failure message
{"JBAS014671: Failed services" =>
{"jboss.deployment.unit.\"test.war\".POST_MODULE" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"test.war\".POST_MODULE: JBAS018733: Failed to process
phase POST_MODULE of deployment \"test.war\"
Caused by: java.lang.NullPointerException"}}
13:42:03,371 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877:
Stopped deployment test.war in 14ms
{noformat}
--
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