Home » Eclipse Projects » Virgo » Web Application Failed to start
|
Re: Web Application Failed to start [message #551811 is a reply to message #551623] |
Mon, 09 August 2010 16:01 |
Steve Powell Messages: 23 Registered: January 2010 Location: Southampton |
Junior Member |
|
|
Hi Anthony,
The logs it is referring to are probably Catalina (Tomcat) logs. Have you looked for these?
The connection to 'listeners' is not clear from what you say. Can you be more specific?
Steve Powell :-/
|
|
| |
Re: Web Application Failed to start [message #552252 is a reply to message #551840] |
Wed, 11 August 2010 12:57 |
|
Hi,
Where do you define this configure listener, is it in the servlet context or the bundles context file under META-INF. I'm assuming it is in the servlet context?
The Stack trace you have below is a symptom of something else having gone wrong, there should be a stack trace or at lease an error previously in the trace.
The logging output from Tomcat will be mixed in with all the other logging. My normal approach is to shut the server down, set the master logging level up to INFO or DEBUG in the serviceability file and then do a clean start to make sure all the old output is wiped. Then recreate the problem and shut down.
Once I've found the first sign of error I try to understand what is going on. I normally stick to the master log file so it's got everything in it. If your not sure or the cause looks like it's coming from the server then send me a copy and I'll have a look.
Chris.
------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
|
|
| | | | |
Re: Web Application Failed to start [message #606829 is a reply to message #551840] |
Wed, 11 August 2010 12:57 |
|
Hi,
Where do you define this configure listener, is it in the servlet context or the bundles context file under META-INF. I'm assuming it is in the servlet context?
The Stack trace you have below is a symptom of something else having gone wrong, there should be a stack trace or at lease an error previously in the trace.
The logging output from Tomcat will be mixed in with all the other logging. My normal approach is to shut the server down, set the master logging level up to INFO or DEBUG in the serviceability file and then do a clean start to make sure all the old output is wiped. Then recreate the problem and shut down.
Once I've found the first sign of error I try to understand what is going on. I normally stick to the master log file so it's got everything in it. If your not sure or the cause looks like it's coming from the server then send me a copy and I'll have a look.
Chris.
--
------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
|
|
| |
Re: Web Application Failed to start [message #657293 is a reply to message #606832] |
Wed, 02 March 2011 10:58 |
Matt Fellows Messages: 28 Registered: February 2011 |
Junior Member |
|
|
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 409 times)
[Updated on: Fri, 04 March 2011 10:32] Report message to a moderator
|
|
| | |
Re: Web Application Failed to start [message #689691 is a reply to message #689629] |
Tue, 28 June 2011 07:44 |
Steve Powell Messages: 23 Registered: January 2010 Location: Southampton |
Junior Member |
|
|
Hi,
If you read the rest of this thread you will see a message from Chris Frost indicating how you can further diagnose your problem.
It is extremely unlikely that you face the same problem as Anthony did, so you should look for Catalina/Tomcat error messages (when adjusting the reporting level as Chris outlines) to see what the Web Application is doing that Tomcat doesn't like.
When you have some more information, please come back to us.
Steve Powell :-/
|
|
| | |
Goto Forum:
Current Time: Thu Sep 26 00:41:44 GMT 2024
Powered by FUDForum. Page generated in 0.07319 seconds
|