Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Deploying webapp with Spring WebFlow(Application fails to deploy with ClassNotFoundException)
Deploying webapp with Spring WebFlow [message #738890] Sun, 16 October 2011 18:23 Go to next message
Anton Arhipov is currently offline Anton Arhipov
Messages: 15
Registered: July 2009
Junior Member
Trying to deploy a small app to Eclipse Virgo 3.0.1. Deployment fails with ClassNotFoundException.

The app itself is not OSGi-fied, Spring WebFlow demo, and can be deployed on Tomcat or Weblogic. Is there any tips on how could it be possible to deploy such application to Virgo?

Here's what I see in the logs:


SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.java:3»
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:415)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:397)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
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:619)
17.10.2011 0:53:23 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.java:3»
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:415)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:397)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
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:619)






[2011-10-17 00:53:23.861] ERROR start-signalling-2 org.eclipse.virgo.medic.eventlog.default WE0005E Failed to start web bundle 'pkg-springWebflow2-reloadFlow' version '0.0.0': consult serviceability/logs/log.log for further details.
[2011-10-17 00:53:23.862] INFO start-signalling-2 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]' popped and set to 'BundleDelegatingClassLoader for [spring-osgi-extender (org.springframework.osgi.extender)]'
[2011-10-17 00:53:23.862] INFO start-signalling-2 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'BundleDelegatingClassLoader for [spring-osgi-extender (org.springframework.osgi.extender)]' pushed and set to 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]'
[2011-10-17 00:53:23.863] INFO start-signalling-2 o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener No atomic parent of bundle 'pkg-springWebflow2-reloadFlow' version '0.0.0' in scope 'null' to propagate start failed (stop) event to
[2011-10-17 00:53:23.870] ERROR start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0006E Start failed for bundle 'pkg-springWebflow2-reloadFlow' version '0.0.0'. org.eclipse.virgo.kernel.deployer.core.DeploymentException: Web application failed to start
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:132)
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:619)
Caused by: org.eclipse.gemini.web.core.WebApplicationStartFailedException: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/pkg-springWebflow2-reloadFlow' failed to start. Check the logs for more details.
at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:108)
at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:122)
... 8 common frames omitted
Caused by: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/pkg-springWebflow2-reloadFlow' 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)
... 9 common frames omitted

[2011-10-17 00:53:23.871] INFO start-signalling-2 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]' popped and set to 'BundleDelegatingClassLoader for [spring-osgi-extender (org.springframework.osgi.extender)]'
[2011-10-17 00:53:23.871] INFO start-signalling-2 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'BundleDelegatingClassLoader for [spring-osgi-extender (org.springframework.osgi.extender)]' pushed and set to 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]'
[2011-10-17 00:53:23.871] INFO start-signalling-2 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]' pushed and set to 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]'
[2011-10-17 00:53:23.874] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0010I Stopping bundle 'pkg-springWebflow2-reloadFlow' version '0.0.0'.
[2011-10-17 00:53:23.879] INFO start-signalling-2 org.eclipse.virgo.kernel.core.internal.BundleStartTracker Bundle 'pkg-springWebflow2-reloadFlow_0.0.0 [116]' has stopped. Removing its related tracking state.
[2011-10-17 00:53:23.879] INFO start-signalling-2 o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener No atomic parent of bundle 'pkg-springWebflow2-reloadFlow' version '0.0.0' in scope 'null' to propagate stopped event to
[2011-10-17 00:53:23.880] INFO start-signalling-2 org.eclipse.virgo.medic.eventlog.default DE0011I Stopped bundle 'pkg-springWebflow2-reloadFlow' version '0.0.0'.
[2011-10-17 00:53:23.880] INFO start-signalling-2 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]' popped and set to 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]'
[2011-10-17 00:53:23.880] INFO GiLogServiceListener@13576a2 org.osgi.service.log.LogService Bundle pkg-springWebflow2-reloadFlow_0.0.0, BundleEvent STOPPED
[2011-10-17 00:53:23.881] INFO start-signalling-2 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager Thread context class loader 'KernelBundleClassLoader: [bundle=pkg-springWebflow2-reloadFlow_0.0.0]' popped and set to 'BundleDelegatingClassLoader for [spring-osgi-extender (org.springframework.osgi.extender)]'




Re: Deploying webapp with Spring WebFlow [message #771357 is a reply to message #738890] Mon, 26 December 2011 21:45 Go to previous message
Marcelo Daniel is currently offline Marcelo Daniel
Messages: 4
Registered: December 2011
Junior Member
adjust your ${VIRGO_HOME}/repository/ext/org.eclipse.virgo.web.properties file to WABHeaders=defaulted

works for me.
Previous Topic:Spring/Rest and OSGi HttpService
Next Topic:Can't start greenpages.web-solution:2.4.0 in virgo-tomcat.3.0.2
Goto Forum:
  


Current Time: Thu Jul 24 13:56:10 EDT 2014

Powered by FUDForum. Page generated in 0.02244 seconds