Home » Eclipse Projects » Virgo » Web Application Failed to start
Web Application Failed to start [message #551623] |
Sun, 08 August 2010 08:35  |
Eclipse User |
|
|
|
Hi,
I'm getting the following error, whenever I add any type of listener to my web.xml file. I was under the impression from all the documentation that I've read that listeners were just meant to work. Can anyone shed some light on this for me?
Start failed for bundle 'SimpleJSFBundle2' version '1.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: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:272)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:269)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:222)
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:619)
Caused by: org.eclipse.gemini.web.core.WebApplicationStartFailedException: org.eclipse.gemini.web.core.spi.ServletContainerException: Web application at '/simpleJSF' 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 '/simpleJSF' 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
Also it says check logs for more details. I've cheked all the logs in the servicability logs and I they all have the same error message. Am I supposed to be looking somewhere else or to have configured logging somewhere?
|
|
| | | | | | | | | |
Re: Web Application Failed to start [message #657293 is a reply to message #606832] |
Wed, 02 March 2011 05:58   |
Eclipse User |
|
|
|
Just an FYI, to get the JSF sample working as mentioned in https://issuetracker.springsource.com/browse/DMS-2874 I also needed to download the latest juli, embed that into the sample JAR and update the Manifest.
EDIT: I've attached the working sample.war
Steps:
1. Install a clean Virgo server (virgo-web-server-2.1.0.RELEASE)
2. Follow the steps Glyn outlines in DMS-2874
3. Download the juli JAR file, I used the following Maven dependency to download it locally, and then copied that into the WAR.
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>juli</artifactId>
<version>6.0.26</version>
</dependency>
4. Add the JAR file
cd ~
mkdir sample
cd sample
cp ~/Downloads/org.eclipse.virgo.sample.jsf.web.war
unzip org.eclipse.virgo.sample.jsf.web.war
mkdir WEB-INF/lib
cp ~/.m2/repository/org/apache/tomcat/juli/6.0.26/juli-6.0.26.jar WEB-INF/lib
vim META-INF/MANIFEST.MF
5. Update the Manifest as per below, I simply removed the import-package statement for the juli JAR, and added
Manifest-Version: 1.0
Import-Bundle: com.springsource.org.apache.taglibs.standard;version="[
1.1.2,1.3)",org.springframework.js;version="[2.0.8.RELEASE,3.0.0)",co
m.springsource.javax.faces;version="[2.0.0.PR2,2.0.0.PR2]",com.spring
source.com.sun.faces;version="[2.0.0.PR2,2.0.0.PR2]"
Bundle-ClassPath: .,/WEB-INF/lib/juli-6.0.26.jar
Bundle-Version: 1.0.0
Tool: Bundlor 1.0.0.RELEASE
Bundle-Name: Dynamism Sample Web Bundle
Bundle-ManifestVersion: 2
Created-By: 1.6.0_20 (Apple Inc.)
Bundle-SymbolicName: org.eclipse.virgo.sample.jsf.web
Web-ContextPath: jsf-demo
Import-Package: javax.faces.webapp;version="1.2.0.09",javax.servlet.js
p.jstl.core;version="[1.2.0,1.3.0)",org.eclipse.virgo.sample.dynamic.
core;version="[1.0,2.0)",org.eclipse.virgo.web.dm;version="[2.0.0,3.0
.0)",org.springframework.beans.factory.annotation;version="[3.0,4.0)"
,org.springframework.beans.factory.xml;version="[3.0,3.1)",org.spring
framework.context.config;version="[3.0, 3.1)",org.springframework.con
text.support;version="[3.0,3.1)",org.springframework.js.resource;vers
ion="[2.0.7.RELEASE,3.0.0)",org.springframework.stereotype;version="[
3.0,4.0)",org.springframework.web.bind.annotation;version="[3.0,4.0)"
,org.springframework.web.context;version="[3.0,3.1)",org.springframew
ork.web.context.support;version="[3.0,3.1)",org.springframework.web.s
ervlet;version="[3.0,4.0)",org.springframework.web.servlet.handler;ve
rsion="[3.0,3.1)",org.springframework.web.servlet.mvc;version="[3.0,3
.1)",org.springframework.web.servlet.mvc.annotation;version="[3.0,3.1
)",org.springframework.web.servlet.support;version="[3.0,3.1)",org.sp
ringframework.web.servlet.view;version="[3.0,3.1)"
Note the Bundle-ClassPath header now has the new .jar added, and the juli import has been removed.
6. Re-package the WAR, and add the new Manifest:
rm org.eclipse.virgo.sample.jsf.web.war
jar cvfm sample.war META-INF/MANIFEST.MF .
7. Deploy the WAR to the pickup dir
8. Start Virgo clean (./startup.sh -clean)
8. Navigate to http://localhost:8080/jsf-demo/web/properties/overview to view the working application!
Hope that helps anybody having the same issue.
Cheers,
Matt
Attachment: sample.war
(Size: 154.24KB, Downloaded 437 times)
[Updated on: Fri, 04 March 2011 05:32] by Moderator
|
|
| | | | | |
Goto Forum:
Current Time: Mon Jul 14 21:10:01 EDT 2025
Powered by FUDForum. Page generated in 0.07281 seconds
|