| Summary: | Problem redeploying an existing WAR application | ||
|---|---|---|---|
| Product: | [RT] Virgo | Reporter: | Marco Plebani <marco.plebani> |
| Component: | unknown | Assignee: | Chris Frost <eclipse> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse, glyn.normington, marco.plebani |
| Version: | 2.1.0.M06-incubation | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Hi, I've been trying to recreate this problem and I'm having some issues, could you please expand on your test case please. I have tried install a plan using the admin console. The plan references a single web application bundle (I used the splash app) and I could redeploy it as many times as I liked. I also tried it with a regular war file but this won't work anyway as legacy war files don't have any bundle-symbolic-names etc... Even better would be if you could provide a cut down version of your war file (I'm assuming it's a web application bundle as it's versioned). Thanks for raising the issue, Chris. Closing as non-reproducible. Please re-open if you can provide a testcase. |
Build Identifier: SpringSource Tool Suite Version: 2.3.2.RELEASE Build Id: 201003230009 My application is a simple WAR. I analyzed all dependencies and I created the MANIFEST.MF. Now I'm able to deploy the WAR in Virgo server without errors. The WAR is on the repository/usr folder and I install the application using the following PLAN: <plan name="next-device-client.plan" version="5.0.0.SNAPSHOT" scoped="true" atomic="true" xmlns="http://www.springsource.org/schema/dm-server/plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springsource.org/schema/dm-server/plan http://www.springsource.org/schema/dm-server/plan/springsource-dm-server-plan.xsd"> <artifact type="bundle" name="next-device-client" version="[5.0.0.SNAPSHOT,5.0.0.SNAPSHOT]"/> </plan> Once the application is deployed, this is the list of all bundles in Virgo (in the correct order) that I can retrieve using the OSGi console: next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT com.springsource.org.apache.commons.lang_2.4.0 com.springsource.org.apache.ws.commons.schema_1.3.2 org.springframework.aspects_3.0.0.RELEASE org.springframework.jms_3.0.0.RELEASE org.springframework.oxm_1.5.9.A org.springframework.oxm.java5_1.5.9.A org.springframwork.web.portlet_3.0.0.RELEASE org.springframework.ws_1.5.9.A org.springframework.xml_1.5.9.A org.springframework.integration_1.0.3.RELEASE org.springframework.integration.adapter_1.0.3.RELEASE org.springframework.integration.http_1.0.3.RELEASE org.springframework.integration.stream_1.0.3.RELEASE org.springframework.integration.ws_1.0.3.RELEASE Now. I uninstall the application and the bundle linked to the application disappears in the list of the installed bundle. Without any other action I try to reinstall the WAR but Virgo is not able to install it again. It show me the following log information (in the serviceability folder). [2010-10-15 14:50:10.967] http-8080-1 o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator Calculating missing dependencies of bundle(s) 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT' [2010-10-15 14:50:11.101] http-8080-1 o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator The dependencies of '[next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT, next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' are '[next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.589] http-8080-1 o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener Processing installed event for 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client:5.0.0.SNAPSHOT' [2010-10-15 14:50:11.622] http-8080-1 o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener Processing installed event for 'next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context:5.0.0.SNAPSHOT' [2010-10-15 14:50:11.648] http-8080-1 org.eclipse.virgo.medic.eventlog.default DE0001I Installed bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client' version '5.0.0.SNAPSHOT'. [2010-10-15 14:50:11.654] http-8080-1 org.eclipse.virgo.medic.eventlog.default DE0001I Installed bundle 'next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context' version '5.0.0.SNAPSHOT'. [2010-10-15 14:50:11.660] http-8080-1 org.eclipse.virgo.medic.eventlog.default DE0001I Installed plan 'next-device-client.plan' version '5.0.0.SNAPSHOT'. [2010-10-15 14:50:11.662] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' popped and set to 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' [2010-10-15 14:50:11.664] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' popped and set to 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' [2010-10-15 14:50:11.716] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.716] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' popped and set to 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' [2010-10-15 14:50:11.717] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.718] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' popped and set to 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' [2010-10-15 14:50:11.719] http-8080-1 o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener No atomic parent of plan 'next-device-client.plan' version '5.0.0.SNAPSHOT' in scope 'null' to propagate starting event to [2010-10-15 14:50:11.726] http-8080-1 org.eclipse.virgo.medic.eventlog.default DE0004I Starting plan 'next-device-client.plan' version '5.0.0.SNAPSHOT'. [2010-10-15 14:50:11.726] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.727] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.727] http-8080-1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Adding signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@6f7579cf' for bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT [79]' [2010-10-15 14:50:11.728] http-8080-1 o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener Propagating atomic starting event from bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client' version '5.0.0.SNAPSHOT' in scope 'next-device-client.plan-5.0.0.SNAPSHOT' to plan 'next-device-client.plan' version '5.0.0.SNAPSHOT' in scope 'null' [2010-10-15 14:50:11.735] http-8080-1 org.eclipse.virgo.medic.eventlog.default DE0004I Starting bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client' version '5.0.0.SNAPSHOT'. [2010-10-15 14:50:11.736] http-8080-1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Non-Spring DM powered bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT [79]' has started. Driving signals '[org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@6f7579cf]'. [2010-10-15 14:50:11.736] start-signalling-1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Driving signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@6f7579cf' [2010-10-15 14:50:11.736] start-signalling-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'sun.misc.Launcher$AppClassLoader@35a16869' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.737] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' popped and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.737] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' popped and set to 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' [2010-10-15 14:50:11.737] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.737] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.738] http-8080-1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Adding signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@5ce3ccd3' for bundle 'next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT [80]' [2010-10-15 14:50:11.738] http-8080-1 o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener Propagating atomic starting event from bundle 'next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context' version '5.0.0.SNAPSHOT' in scope 'next-device-client.plan-5.0.0.SNAPSHOT' to plan 'next-device-client.plan' version '5.0.0.SNAPSHOT' in scope 'null' [2010-10-15 14:50:11.742] Thread-4 org.eclipse.virgo.medic.eventlog.default WE0000I Starting web bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client' version '5.0.0.SNAPSHOT' with context path '/next-device-client'. [2010-10-15 14:50:11.756] http-8080-1 org.eclipse.virgo.medic.eventlog.default DE0004I Starting bundle 'next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context' version '5.0.0.SNAPSHOT'. [2010-10-15 14:50:11.757] http-8080-1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Non-Spring DM powered bundle 'next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT [80]' has started. Driving signals '[org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@5ce3ccd3]'. [2010-10-15 14:50:11.760] start-signalling-3 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Driving signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@5ce3ccd3' [2010-10-15 14:50:11.760] start-signalling-3 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-synthetic.context_2.1.0.M06-incubation]' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.765] start-signalling-3 org.eclipse.virgo.medic.eventlog.default DE0005I Started bundle 'next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context' version '5.0.0.SNAPSHOT'. [2010-10-15 14:50:11.765] start-signalling-3 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' popped and set to 'KernelBundleClassLoader: [bundle=org.eclipse.virgo.apps.repository-2.1.0.M06-incubation-synthetic.context_2.1.0.M06-incubation]' [2010-10-15 14:50:11.767] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' popped and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' [2010-10-15 14:50:11.767] http-8080-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-synthetic.context_5.0.0.SNAPSHOT]' popped and set to 'org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@1bce7242' [2010-10-15 14:50:12.670] start-signalling-1 org.eclipse.gemini.web.internal.StandardWebApplication Failed to start web application at bundleContext path '/next-device-client' org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/next-device-client' failed to start. Check the logs for more details. at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:123) at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:90) at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:120) at org.eclipse.virgo.kernel.install.artifact.internal.ArtifactStateMonitor.onStarted(ArtifactStateMonitor.java:205) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:273) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:270) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:223) at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:140) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) [2010-10-15 14:50:12.676] Thread-4 org.eclipse.virgo.medic.eventlog.default WE0005E Failed to start web bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client' version '5.0.0.SNAPSHOT': consult the serviceability log for further details. [2010-10-15 14:50:12.677] start-signalling-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' popped and set to 'sun.misc.Launcher$AppClassLoader@35a16869' [2010-10-15 14:50:12.678] start-signalling-1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'sun.misc.Launcher$AppClassLoader@35a16869' pushed and set to 'KernelBundleClassLoader: [bundle=next-device-client.plan-5.0.0.SNAPSHOT-next-device-client_5.0.0.SNAPSHOT]' [2010-10-15 14:50:12.679] start-signalling-1 o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener Propagating atomic start failed (stop) event from bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client' version '5.0.0.SNAPSHOT' in scope 'next-device-client.plan-5.0.0.SNAPSHOT' to plan 'next-device-client.plan' version '5.0.0.SNAPSHOT' in scope 'null' [2010-10-15 14:50:12.686] start-signalling-1 org.eclipse.virgo.medic.eventlog.default DE0006E Start failed for bundle 'next-device-client.plan-5.0.0.SNAPSHOT-next-device-client' version '5.0.0.SNAPSHOT'. org.eclipse.virgo.kernel.deployer.core.DeploymentException: Web application failed to start at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:129) at org.eclipse.virgo.kernel.install.artifact.internal.ArtifactStateMonitor.onStarted(ArtifactStateMonitor.java:205) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:273) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:270) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:223) at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:140) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) Caused by: org.eclipse.gemini.web.core.WebApplicationStartFailedException: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/next-device-client' failed to start. Check the logs for more details. at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:107) at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:120) ... 8 common frames omitted Caused by: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/next-device-client' failed to start. Check the logs for more details. at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:123) at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:90) ... 9 common frames omitted Reproducible: Always Steps to Reproduce: 1.Deploy the PLAN (successfully deployed) 2.Undeploy the PLAN (successfully undeployed) 3.Deploy the PLAN