[
https://issues.jboss.org/browse/AS7-5453?page=com.atlassian.jira.plugin.s...
]
David Bosschaert commented on AS7-5453:
---------------------------------------
I'm getting past the NPEs but now the persistent wab fails to resolve at startup. All
the requirements it has (javax.annotation, javax.servlet.*) are satisfied by preconfigured
capabilities, so they should be available straight away.
Could this be causing the problem:
{code}10:51:32,853 DEBUG [org.jboss.as.jpa] (MSC service thread 1-3) added
javax.persistence.api:main dependency to bundle-c.wab{code}
Why is this dependency added? The WAB doesn't use JPA at all...
Here's some more context from the log:
{code}10:51:32,849 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-15) Install
resource: HostBundleRevision[bundle-c.wab:0.0.0]
10:51:32,849 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-15)
XIdentityCapability[atts={osgi.identity=bundle-c.wab, type=osgi.bundle,
version=0.0.0},[anonymous]]
10:51:32,849 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-15)
XResourceCapability[atts={osgi.wiring.bundle=bundle-c.wab,
bundle-version=0.0.0},[bundle-c.wab:0.0.0]]
10:51:32,850 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-15)
XHostCapability[atts={osgi.wiring.host=bundle-c.wab,
bundle-version=0.0.0},[bundle-c.wab:0.0.0]]
10:51:32,850 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-15)
XPackageRequirement[atts={osgi.wiring.package=javax.annotation},[bundle-c.wab:0.0.0]]
10:51:32,850 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-15)
XPackageRequirement[atts={osgi.wiring.package=javax.servlet.annotation},[bundle-c.wab:0.0.0]]
10:51:32,850 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-15)
XPackageRequirement[atts={osgi.wiring.package=javax.servlet},[bundle-c.wab:0.0.0]]
10:51:32,850 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-15)
XPackageRequirement[atts={osgi.wiring.package=javax.servlet.http},[bundle-c.wab:0.0.0]]
10:51:32,850 INFO [org.jboss.osgi.framework] (MSC service thread 1-15) JBOSGI011001:
Bundle installed: bundle-c.wab:0.0.0
10:51:32,853 DEBUG [org.jboss.as.jpa] (MSC service thread 1-3) added
javax.persistence.api:main dependency to bundle-c.wab
10:51:32,858 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015967:
Cannot install reflection index for unresolved bundle: bundle-c.wab
10:51:32,866 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-9) MSC00001: Failed
to start service jboss.deployment.unit."bundle-c.wab".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."bundle-c.wab".INSTALL: JBAS018733: Failed to process
phase INSTALL of deployment "bundle-c.wab"
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$Worker.runTask(ThreadPoolExecutor.java:886)
[classes.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[classes.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018026:
Failed to resolve module for deployment deployment "bundle-c.wab"
at
org.jboss.as.web.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:85)
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{code}
Server restart fails with persistent WAB deployment
---------------------------------------------------
Key: AS7-5453
URL:
https://issues.jboss.org/browse/AS7-5453
Project: Application Server 7
Issue Type: Bug
Components: OSGi, Web
Reporter: Thomas Diesler
Assignee: David Bosschaert
Fix For: 7.2.0.Alpha1
{code}
04:55:16,854 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011006: OSGi
Framework - 2.0.0.CR21
04:55:17,211 INFO [org.jboss.osgi.framework] (MSC service thread 1-1) JBOSGI011001:
Bundle installed: jboss-osgi-logging:1.0.0
04:55:17,219 INFO [org.jboss.osgi.framework] (MSC service thread 1-1) JBOSGI011001:
Bundle installed: jboss-as-osgi-configadmin:7.2.0.Alpha1-SNAPSHOT
04:55:17,228 INFO [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011001:
Bundle installed: org.apache.felix.log:1.0.0
04:55:17,228 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001:
Bundle installed: org.apache.felix.configadmin:1.2.8
04:55:17,479 INFO [org.jboss.osgi.framework] (MSC service thread 1-4) JBOSGI011001:
Bundle installed: updated-bundle.wab:1.0.1
04:55:17,922 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed
to start service jboss.deployment.unit."updated-bundle.wab".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."updated-bundle.wab".INSTALL: JBAS018733: Failed to
process phase INSTALL of deployment "updated-bundle.wab"
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$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_33]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_33]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]
Caused by: java.lang.NullPointerException
at
org.jboss.as.osgi.web.WabServletContextServiceProcessor.registerServletContext(WabServletContextServiceProcessor.java:58)
at
org.jboss.as.osgi.web.WabServletContextServiceProcessor.deploy(WabServletContextServiceProcessor.java:52)
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
04:55:17,938 INFO [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011011:
Starting bundles for start level: 1
04:55:17,987 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed
"updated-bundle.wab"
04:55:18,009 INFO [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011002:
Bundle started: org.apache.felix.configadmin:1.2.8
04:55:18,049 INFO [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011002:
Bundle started: org.apache.felix.log:1.0.0
04:55:18,068 INFO [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011002:
Bundle started: jboss-osgi-logging:1.0.0
04:55:18,100 INFO [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011002:
Bundle started: jboss-as-osgi-configadmin:7.2.0.Alpha1-SNAPSHOT
04:55:18,102 INFO [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011002:
Bundle started: updated-bundle.wab:1.0.1
04:55:18,115 INFO [org.jboss.osgi.framework] (MSC service thread 1-3) JBOSGI011000: OSGi
Framework started
{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