org.eclipse.gemini.web.core.spi.ServletContainerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When our webbundle is redeployed to virgo, it is cleanly shut down, but fails to start again: {noformat} [2011-06-24 11:36:55.615] INFO TCP Connection(23)-127.0.0.1 org.eclipse.virgo.medic.eventlog.default DE0004I Starting bundle 'net.junisphere.eranger.ui.web' version '0.0.1.BUILD-SNAPSHOT'. [2011-06-24 11:36:55.616] INFO TCP Connection(23)-127.0.0.1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Non-Spring DM powered bundle 'net.junisphere.eranger.ui.web_0.0.1.BUILD-SNAPSHOT [172]' has started. Driving signals '[org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@5e436fcd]'. [2011-06-24 11:36:55.616] DEBUG TCP Connection(23)-127.0.0.1 org.apache.camel.impl.osgi.Activator Bundle started: net.junisphere.eranger.ui.web {noformat} It seems as if it is not recognized as a spring dm powered bundle anymore. What follows is a very long list of exceptions like this one (with different classes that could not be loaded); {noformat} [2011-06-24 11:36:55.617] ERROR TCP Connection(23)-127.0.0.1 System.err 24.06.2011 11:36:55 org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader loadClass [2011-06-24 11:36:55.617] ERROR TCP Connection(23)-127.0.0.1 System.err INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.camel .spi.Language. 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. [2011-06-24 11:36:55.617] ERROR TCP Connection(23)-127.0.0.1 System.err java.lang.IllegalStateException [2011-06-24 11:36:55.617] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.j ava:269) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.web.core.internal.WebAppClassLoaderDelegateHook.postFindClass(WebAppClassLoaderDelegateH ook.java:64) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.osgi.extensions.equinox.hooks.PluggableDelegatingClassLoaderDelegateHook.postFindClass(P luggableDelegatingClassLoaderDelegateHook.java:58) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.searchHooks(BundleLoader.java:528) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:493) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) [2011-06-24 11:36:55.618] INFO start-signalling-5 org.eclipse.virgo.medic.eventlog.default WE0000I Starting web bundle 'net.junisphere.eranger.ui.web' version '0.0.1.BUILD-SNAPSHOT' with context path '/ er'. [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLo ader.java:134) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345) ... [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err 24.06.2011 11:36:55 org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader loadClass [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.camel .spi.DataFormat. 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. [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err java.lang.IllegalStateException [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.j ava:269) [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.web.core.internal.WebAppClassLoaderDelegateHook.postFindClass(WebAppClassLoaderDelegateH ook.java:64) [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.osgi.extensions.equinox.hooks.PluggableDelegatingClassLoaderDelegateHook.postFindClass(P luggableDelegatingClassLoaderDelegateHook.java:58) ... [2011-06-24 11:36:56.168] ERROR start-signalling-5 System.err SCHWERWIEGEND: Error listenerStart [2011-06-24 11:36:56.169] ERROR start-signalling-5 System.err 24.06.2011 11:36:56 org.apache.catalina.core.StandardContext startInternal [2011-06-24 11:36:56.169] ERROR start-signalling-5 System.err SCHWERWIEGEND: Context [/er] startup failed due to previous errors [2011-06-24 11:36:56.169] ERROR start-signalling-5 System.err 24.06.2011 11:36:56 org.apache.catalina.core.ApplicationContext log [2011-06-24 11:36:56.169] ERROR start-signalling-5 System.err INFO: Closing Spring root WebApplicationContext [2011-06-24 11:36:56.173] ERROR start-signalling-5 org.eclipse.gemini.web.internal.StandardWebApplication Failed to start web application at bundleContext path '/er' org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/er' failed to start. Check the logs for more details. at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125) at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:91) at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:122) at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:294) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:291) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:229) at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143) 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:662) {noformat} Then when I try to redeploy the webapp again, I get the same errors, but the web bundle gets uninstalled in the end. And finally the next attempt to redeploy the webapp works again! So after every code change I have to redeploy the web bundle three times to start it again. Please tell me if you need the full log files for further analysis.
    via by Jean-Pierre Bergamin,
  • When our webbundle is redeployed to virgo, it is cleanly shut down, but fails to start again: {noformat} [2011-06-24 11:36:55.615] INFO TCP Connection(23)-127.0.0.1 org.eclipse.virgo.medic.eventlog.default DE0004I Starting bundle 'net.junisphere.eranger.ui.web' version '0.0.1.BUILD-SNAPSHOT'. [2011-06-24 11:36:55.616] INFO TCP Connection(23)-127.0.0.1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Non-Spring DM powered bundle 'net.junisphere.eranger.ui.web_0.0.1.BUILD-SNAPSHOT [172]' has started. Driving signals '[org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@5e436fcd]'. [2011-06-24 11:36:55.616] DEBUG TCP Connection(23)-127.0.0.1 org.apache.camel.impl.osgi.Activator Bundle started: net.junisphere.eranger.ui.web {noformat} It seems as if it is not recognized as a spring dm powered bundle anymore. What follows is a very long list of exceptions like this one (with different classes that could not be loaded); {noformat} [2011-06-24 11:36:55.617] ERROR TCP Connection(23)-127.0.0.1 System.err 24.06.2011 11:36:55 org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader loadClass [2011-06-24 11:36:55.617] ERROR TCP Connection(23)-127.0.0.1 System.err INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.camel .spi.Language. 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. [2011-06-24 11:36:55.617] ERROR TCP Connection(23)-127.0.0.1 System.err java.lang.IllegalStateException [2011-06-24 11:36:55.617] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.j ava:269) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.web.core.internal.WebAppClassLoaderDelegateHook.postFindClass(WebAppClassLoaderDelegateH ook.java:64) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.osgi.extensions.equinox.hooks.PluggableDelegatingClassLoaderDelegateHook.postFindClass(P luggableDelegatingClassLoaderDelegateHook.java:58) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.searchHooks(BundleLoader.java:528) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:493) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) [2011-06-24 11:36:55.618] INFO start-signalling-5 org.eclipse.virgo.medic.eventlog.default WE0000I Starting web bundle 'net.junisphere.eranger.ui.web' version '0.0.1.BUILD-SNAPSHOT' with context path '/ er'. [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLo ader.java:134) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [2011-06-24 11:36:55.618] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345) ... [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err 24.06.2011 11:36:55 org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader loadClass [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err INFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.camel .spi.DataFormat. 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. [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err java.lang.IllegalStateException [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.j ava:269) [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.web.core.internal.WebAppClassLoaderDelegateHook.postFindClass(WebAppClassLoaderDelegateH ook.java:64) [2011-06-24 11:36:55.625] ERROR TCP Connection(23)-127.0.0.1 System.err at org.eclipse.virgo.osgi.extensions.equinox.hooks.PluggableDelegatingClassLoaderDelegateHook.postFindClass(P luggableDelegatingClassLoaderDelegateHook.java:58) ... [2011-06-24 11:36:56.168] ERROR start-signalling-5 System.err SCHWERWIEGEND: Error listenerStart [2011-06-24 11:36:56.169] ERROR start-signalling-5 System.err 24.06.2011 11:36:56 org.apache.catalina.core.StandardContext startInternal [2011-06-24 11:36:56.169] ERROR start-signalling-5 System.err SCHWERWIEGEND: Context [/er] startup failed due to previous errors [2011-06-24 11:36:56.169] ERROR start-signalling-5 System.err 24.06.2011 11:36:56 org.apache.catalina.core.ApplicationContext log [2011-06-24 11:36:56.169] ERROR start-signalling-5 System.err INFO: Closing Spring root WebApplicationContext [2011-06-24 11:36:56.173] ERROR start-signalling-5 org.eclipse.gemini.web.internal.StandardWebApplication Failed to start web application at bundleContext path '/er' org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/er' failed to start. Check the logs for more details. at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125) at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:91) at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:122) at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:294) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:291) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:229) at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143) 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:662) {noformat} Then when I try to redeploy the webapp again, I get the same errors, but the web bundle gets uninstalled in the end. And finally the next attempt to redeploy the webapp works again! So after every code change I have to redeploy the web bundle three times to start it again. Please tell me if you need the full log files for further analysis.
    via by Jean-Pierre Bergamin,
  • Deploying a WAR to virgo-tomcat server
    via Stack Overflow by dasbouse
    ,
  • GitHub comment 2#95911603
    via GitHub by maheshbasis5
    ,
    • org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/er' failed to start. Check the logs for more details. at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125) at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:91) at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:122) at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:294) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:291) at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:229) at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143) 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:662)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,