Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Failed to redeploy/refresh web bundle in virgo server (Failed to redeploy/refresh web bundle in virgo server )
Failed to redeploy/refresh web bundle in virgo server [message #629366] Mon, 27 September 2010 20:24 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: September 2010
Junior Member
I am trying to redeploy a web bundle that was already deployed successfully. I am seeing this error :
Hot re-deploy failed for file 'helloWorld.war'. org.eclipse.virgo.kernel.deployer.core.DeploymentE xception: Web application failed to start
at org.eclipse.virgo.web.core.internal.WebBundleLifec ycleListener.onStarted(WebBundleLifecycleListener. java:129)
at org.eclipse.virgo.kernel.install.artifact.internal .ArtifactStateMonitor.onStarted(ArtifactStateMonit or.java:205)
at org.eclipse.virgo.kernel.install.artifact.internal .AbstractInstallArtifact.asyncStartSucceeded(Abstr actInstallArtifact.java:273)
at org.eclipse.virgo.kernel.install.artifact.internal .AbstractInstallArtifact.access$0(AbstractInstallA rtifact.java:270)
at org.eclipse.virgo.kernel.install.artifact.internal .AbstractInstallArtifact$StateMonitorSignal.signal SuccessfulCompletion(AbstractInstallArtifact.java: 223)
at org.eclipse.virgo.kernel.core.internal.BundleStart Tracker$1.run(BundleStartTracker.java:140)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.eclipse.gemini.web.core.WebApplicationStartFai ledException: org.eclipse.gemini.web.core.spi.ServletContainerEx ception: Web application at '/helloWorld' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.internal.StandardWebApplica tion.start(StandardWebApplication.java:107)
at org.eclipse.virgo.web.core.internal.WebBundleLifec ycleListener.onStarted(WebBundleLifecycleListener. java:120)
... 8 common frames omitted
Caused by: org.eclipse.gemini.web.core.spi.ServletContainerEx ception: Web application at '/helloWorld' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.tomcat.internal.TomcatServl etContainer.startWebApplication(TomcatServletConta iner.java:123)
at org.eclipse.gemini.web.internal.StandardWebApplica tion.start(StandardWebApplication.java:90)
... 9 common frames omitted

The log file doesnt have much information other than this. The redeploy of the new war works fine if I delete the previous war from the pickup folder before redeploying.

Any help on this is much appreciated.
Re: Failed to redeploy/refresh web bundle in virgo server [message #629417 is a reply to message #629366] Tue, 28 September 2010 04:27 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Sounds like a bug. Please would you raise a bugzilla and attach the a simple WAR file to reproduce plus precise instructions on what you did to trigger this behaviour. Thanks.
Re: Failed to redeploy/refresh web bundle in virgo server [message #630355 is a reply to message #629366] Fri, 01 October 2010 13:34 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 2
Registered: September 2010
Junior Member
The log file shows this error :

Illegal access: this web application instance has been stopped already. Could not load org.apache.juli.logging.impl.Log4JLogger. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException: null
at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappC lassLoader.loadClass(BundleWebappClassLoader.java:249)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.virgo.web.core.internal.WebAppClassLoaderDelegat eHook.postFindClass(WebAppClassLoaderDelegateHook.java:64)
at org.eclipse.virgo.osgi.extensions.equinox.hooks.PluggableDel egatingClassLoaderDelegateHook.postFindClass(PluggableDelega tingClassLoaderDelegateHook.java:59)
at org.eclipse.osgi.internal.loader.BundleLoader.searchHooks(Bu ndleLoader.java:508)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:474)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelB undleClassLoader.loadClass(KernelBundleClassLoader.java:135)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.java:326)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1193)
at org.springframework.osgi.util.BundleDelegatingClassLoader.fi ndClass(BundleDelegatingClassLoader.java:99)
at org.springframework.osgi.util.BundleDelegatingClassLoader.lo adClass(BundleDelegatingClassLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.gemini.web.tomcat.internal.loading.ChainedClassL oader.doLoadClass(ChainedClassLoader.java:167)
at org.eclipse.gemini.web.tomcat.internal.loading.ChainedClassL oader.loadClass(ChainedClassLoader.java:157)
at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappC lassLoader.loadClass(BundleWebappClassLoader.java:272)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.juli.logging.impl.LogFactoryImpl.createLogFromCla ss(LogFactoryImpl.java:1081)
at org.apache.juli.logging.impl.LogFactoryImpl.discoverLogImple mentation(LogFactoryImpl.java:914)
at org.apache.juli.logging.impl.LogFactoryImpl.newInstance(LogF actoryImpl.java:604)
at org.apache.juli.logging.impl.LogFactoryImpl.getInstance(LogF actoryImpl.java:336)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:70 4)
at org.apache.catalina.core.ContainerBase.getLogger(ContainerBa se.java:387)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4363)
at org.apache.catalina.core.ContainerBase.addChildInternal(Cont ainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBas e.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost. java:526)
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContaine r.startWebApplication(TomcatServletContainer.java:120)
at org.eclipse.gemini.web.internal.StandardWebApplication.start (StandardWebApplication.java:90)
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListen er.onStarted(WebBundleLifecycleListener.java:120)
at org.eclipse.virgo.kernel.install.artifact.internal.ArtifactS tateMonitor.onStarted(ArtifactStateMonitor.java:205)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.j ava:273)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact.access$0(AbstractInstallArtifact.java:270)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact$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(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

[2010-10-01 10:42:48.016] start-signalling-3 o.e.gemini.web.tomcat.internal.loading.BundleWebappClassLoad er Illegal access: this web application instance has been stopped already. Could not load org.apache.jasper.servlet.JspServlet. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException: null
at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappC lassLoader.loadClass(BundleWebappClassLoader.java:249)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.virgo.web.core.internal.WebAppClassLoaderDelegat eHook.postFindClass(WebAppClassLoaderDelegateHook.java:64)
at org.eclipse.virgo.osgi.extensions.equinox.hooks.PluggableDel egatingClassLoaderDelegateHook.postFindClass(PluggableDelega tingClassLoaderDelegateHook.java:59)
at org.eclipse.osgi.internal.loader.BundleLoader.searchHooks(Bu ndleLoader.java:508)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:474)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelB undleClassLoader.loadClass(KernelBundleClassLoader.java:135)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.java:326)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1193)
at org.springframework.osgi.util.BundleDelegatingClassLoader.fi ndClass(BundleDelegatingClassLoader.java:99)
at org.springframework.osgi.util.BundleDelegatingClassLoader.lo adClass(BundleDelegatingClassLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.gemini.web.tomcat.internal.loading.ChainedClassL oader.doLoadClass(ChainedClassLoader.java:167)
at org.eclipse.gemini.web.tomcat.internal.loading.ChainedClassL oader.loadClass(ChainedClassLoader.java:157)
at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappC lassLoader.loadClass(BundleWebappClassLoader.java:272)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.catalina.startup.WebAnnotationSet.loadApplication ServletAnnotations(WebAnnotationSet.java:108)
at org.apache.catalina.startup.WebAnnotationSet.loadApplication Annotations(WebAnnotationSet.java:58)
at org.apache.catalina.startup.ContextConfig.applicationAnnotat ionsConfig(ContextConfig.java:291)
at org.apache.catalina.startup.ContextConfig.start(ContextConfi g.java:1077)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Con textConfig.java:255)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4388)
at org.apache.catalina.core.ContainerBase.addChildInternal(Cont ainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBas e.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost. java:526)
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContaine r.startWebApplication(TomcatServletContainer.java:120)
at org.eclipse.gemini.web.internal.StandardWebApplication.start (StandardWebApplication.java:90)
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListen er.onStarted(WebBundleLifecycleListener.java:120)
at org.eclipse.virgo.kernel.install.artifact.internal.ArtifactS tateMonitor.onStarted(ArtifactStateMonitor.java:205)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.j ava:273)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact.access$0(AbstractInstallArtifact.java:270)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractI nstallArtifact$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(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Looks liek it has soem thing to do with Tomcat. I am not using log4j any where and I am not sure why it complains about log4j.
Re: Failed to redeploy/refresh web bundle in virgo server [message #630577 is a reply to message #630355] Mon, 04 October 2010 04:50 Go to previous message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
If you raise a bug with a small example application and precise steps to reproduce, we can take a look at it. On the face of it. the last stack trace looks like the web bundle had been stopped, but it's hard to tell with so little contextual information.
Previous Topic:Where do non-Virgo logs end up?
Next Topic:Wildcards on watched directory?
Goto Forum:
  


Current Time: Thu Jul 24 00:40:03 EDT 2014

Powered by FUDForum. Page generated in 0.08905 seconds