[
https://issues.jboss.org/browse/AS7-6044?page=com.atlassian.jira.plugin.s...
]
Corey Puffalt updated AS7-6044:
-------------------------------
Description:
I have an .ear containing an ejb-jar with a dependency on a jar file external to the .ear
but also deployed to JBoss (both files below are deployed to
$JBOSS_HOME/standalone/deployments).
The overall structure looks like this:
{code}
kdmmailservice-ear.ear
|-- META-INF
| |-- application.xml
| `-- MANIFEST.MF
`-- kdmmailservice-service.jar
|-- com
| `-- kdm
| `-- mailservice
| |-- JmsMailService.class
| |-- MailModule.class
| `-- MailProcessor.class
`-- META-INF
|-- beans.xml
|-- ejb-jar.xml
`-- MANIFEST.MF
kdmmailservice-templates.jar
|-- META-INF
| |-- MANIFEST.MF
`-- templates
`-- ...
{code}
The MANIFEST.MF in the ejb-jar above (kdmmailservice-service.jar) indicates its dependency
on the kdmmailservice-templates.jar via a Dependencies entry:
{code}
Dependencies: deployment.kdmmailservice-templates.jar
{code}
As long as care is taken to deploy the jar file first, followed by the ear file everything
is fine. But I need to be able to re-deploy the dependent jar
(kdmmailservice-templates.jar) and when I do so, the ear file is undeployed and remains so
due to a NullPointerException:
{code}
08:50:50,640 INFO [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011908: Unregister
module: Module "deployment.kdmmailservice-templates.jar:main" from Service
Module Loader
08:50:50,642 INFO [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011908: Unregister
module: Module "deployment.kdmmailservice-ear.ear:main" from Service Module
Loader
08:50:50,643 INFO [org.jboss.as.osgi] (MSC service thread 1-8) JBAS011908: Unregister
module: Module
"deployment.kdmmailservice-ear.ear.kdmmailservice-service.jar:main" from Service
Module Loader
08:50:50,699 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016009: Stopping
weld service for deployment kdmmailservice-ear.ear
08:50:50,713 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877:
Stopped deployment kdmmailservice-templates.jar in 73ms
08:50:50,715 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876:
Starting deployment of "kdmmailservice-templates.jar"
08:50:50,718 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed
to start service jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE: JBAS018733: Failed
to process phase POST_MODULE of deployment "kdmmailservice-ear.ear"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123)
[jboss-as-server-7.1.2.Final.jar:7.1.2.Final]
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.7.0_04]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_04]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]
Caused by: java.lang.NullPointerException
at
org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:43)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)
[jboss-as-server-7.1.2.Final.jar:7.1.2.Final]
... 5 more
08:50:50,726 INFO [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011907: Register
module: Module "deployment.kdmmailservice-templates.jar:main" from Service
Module Loader
08:50:50,911 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565:
Replaced deployment "kdmmailservice-templates.jar" with deployment
"kdmmailservice-templates.jar"
08:50:50,911 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774:
Service status report
JBAS014777: Services which failed to start: service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE: JBAS018733: Failed
to process phase POST_MODULE of deployment "kdmmailservice-ear.ear"
{code}
was:
I have an .ear containing an ejb-jar with a dependency on a jar file external to the .ear
but also deployed to JBoss (both files below are deployed to
$JBOSS_HOME/standalone/deployments).
The overall structure looks like this:
{code}
kdmmailservice-ear.ear
|-- META-INF
| |-- application.xml
| `-- MANIFEST.MF
`-- kdmmailservice-service.jar
|-- com
| `-- kdm
| `-- mailservice
| |-- JmsMailService.class
| |-- MailModule.class
| `-- MailProcessor.class
`-- META-INF
|-- beans.xml
|-- ejb-jar.xml
`-- MANIFEST.MF
kdmmailservice-templates.jar
|-- META-INF
| |-- MANIFEST.MF
`-- templates
`-- ...
{code}
The MANIFEST.MF in the ejb-jar above (kdmmailservice-service.jar) indicates its dependency
on the kdmmailservice-templates.jar via a Dependencies entry:
{code}
Dependencies: deployment.kdmmailservice-templates.jar
{code}
As long as care is taken to deploy the jar file first, followed by the ear file everything
is fine. But I need to be able to re-deploy the dependent jar
(kdmmailservice-templates.jar) and when I do so, the ear file is undeployed and remains so
due to a NullPointerException:
{code}
08:50:50,640 INFO [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011908: Unregister
module: Module "deployment.kdmmailservice-templates.jar:main" from Service
Module Loader
08:50:50,641 INFO [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011908: Unregister
module: Module
"deployment.kdmmailservice-ear.ear.kdmmailservice-rest-1.0.1.war:main" from
Service Module Loader
08:50:50,642 INFO [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011908: Unregister
module: Module "deployment.kdmmailservice-ear.ear:main" from Service Module
Loader
08:50:50,643 INFO [org.jboss.as.osgi] (MSC service thread 1-8) JBAS011908: Unregister
module: Module
"deployment.kdmmailservice-ear.ear.kdmmailservice-service-1.0.1.jar:main" from
Service Module Loader
08:50:50,699 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016009: Stopping
weld service for deployment kdmmailservice-ear.ear
08:50:50,713 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877:
Stopped deployment kdmmailservice-templates.jar in 73ms
08:50:50,715 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876:
Starting deployment of "kdmmailservice-templates.jar"
08:50:50,718 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed
to start service jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE: JBAS018733: Failed
to process phase POST_MODULE of deployment "kdmmailservice-ear.ear"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123)
[jboss-as-server-7.1.2.Final.jar:7.1.2.Final]
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.7.0_04]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_04]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]
Caused by: java.lang.NullPointerException
at
org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:43)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)
[jboss-as-server-7.1.2.Final.jar:7.1.2.Final]
... 5 more
08:50:50,726 INFO [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011907: Register
module: Module "deployment.kdmmailservice-templates.jar:main" from Service
Module Loader
08:50:50,911 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565:
Replaced deployment "kdmmailservice-templates.jar" with deployment
"kdmmailservice-templates.jar"
08:50:50,911 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774:
Service status report
JBAS014777: Services which failed to start: service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE: JBAS018733: Failed
to process phase POST_MODULE of deployment "kdmmailservice-ear.ear"
{code}
NullPointerException when dependent module is (re)deployed.
-----------------------------------------------------------
Key: AS7-6044
URL:
https://issues.jboss.org/browse/AS7-6044
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.1.2.Final (EAP)
Environment: OS:
CentOS 6.2 (64 bit)
Java:
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Reporter: Corey Puffalt
I have an .ear containing an ejb-jar with a dependency on a jar file external to the .ear
but also deployed to JBoss (both files below are deployed to
$JBOSS_HOME/standalone/deployments).
The overall structure looks like this:
{code}
kdmmailservice-ear.ear
|-- META-INF
| |-- application.xml
| `-- MANIFEST.MF
`-- kdmmailservice-service.jar
|-- com
| `-- kdm
| `-- mailservice
| |-- JmsMailService.class
| |-- MailModule.class
| `-- MailProcessor.class
`-- META-INF
|-- beans.xml
|-- ejb-jar.xml
`-- MANIFEST.MF
kdmmailservice-templates.jar
|-- META-INF
| |-- MANIFEST.MF
`-- templates
`-- ...
{code}
The MANIFEST.MF in the ejb-jar above (kdmmailservice-service.jar) indicates its
dependency on the kdmmailservice-templates.jar via a Dependencies entry:
{code}
Dependencies: deployment.kdmmailservice-templates.jar
{code}
As long as care is taken to deploy the jar file first, followed by the ear file
everything is fine. But I need to be able to re-deploy the dependent jar
(kdmmailservice-templates.jar) and when I do so, the ear file is undeployed and remains so
due to a NullPointerException:
{code}
08:50:50,640 INFO [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011908: Unregister
module: Module "deployment.kdmmailservice-templates.jar:main" from Service
Module Loader
08:50:50,642 INFO [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011908: Unregister
module: Module "deployment.kdmmailservice-ear.ear:main" from Service Module
Loader
08:50:50,643 INFO [org.jboss.as.osgi] (MSC service thread 1-8) JBAS011908: Unregister
module: Module
"deployment.kdmmailservice-ear.ear.kdmmailservice-service.jar:main" from Service
Module Loader
08:50:50,699 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016009:
Stopping weld service for deployment kdmmailservice-ear.ear
08:50:50,713 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877:
Stopped deployment kdmmailservice-templates.jar in 73ms
08:50:50,715 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876:
Starting deployment of "kdmmailservice-templates.jar"
08:50:50,718 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed
to start service jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE: JBAS018733: Failed
to process phase POST_MODULE of deployment "kdmmailservice-ear.ear"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123)
[jboss-as-server-7.1.2.Final.jar:7.1.2.Final]
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.7.0_04]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_04]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]
Caused by: java.lang.NullPointerException
at
org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:43)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)
[jboss-as-server-7.1.2.Final.jar:7.1.2.Final]
... 5 more
08:50:50,726 INFO [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011907: Register
module: Module "deployment.kdmmailservice-templates.jar:main" from Service
Module Loader
08:50:50,911 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565:
Replaced deployment "kdmmailservice-templates.jar" with deployment
"kdmmailservice-templates.jar"
08:50:50,911 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774:
Service status report
JBAS014777: Services which failed to start: service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."kdmmailservice-ear.ear".POST_MODULE: JBAS018733: Failed
to process phase POST_MODULE of deployment "kdmmailservice-ear.ear"
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira