• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat manager problems

 
Jenn Person
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Tomcat 5.0.28 and I started a webapp that was working without problems. I added a few servlets and JSP pages. Then after restarting Tomcat to allow for a new servlet to work, I got this error:



I went into Tomcat Manager and found my application was stopped. I clicked on Start, but keep getting this message:

FAIL - Application at context path /myapp could not be started

What happened? I can start, stop and restart all the examples that came with Tomcat, but not my own. I'm at a loss for what I can do to make things work again.

Any advice would be great!
Jenn
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The manager isn't the problem.

Check the Tomcat logs to see what is going wrong with your app at startup.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I was going to bet, I would say the most likely cause is your web.xml is no longer valid and readable. Messages during startup should say something.

Bill
 
Jenn Person
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Tomcat 5, there are no messages to be seen at any point... so I guess that means I'll look into the logs and see what they tell me.

I'll post them later this evening if I can't make sense of them, along with my web.xml file.

Thanks guys!
Jenn
 
Jenn Person
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I've checked the log and I can't see what the problem is.

Here is my current web.xml file



Here is the simple test servlet I wanted to run, which compiles:



If posting a log will help, please let me know.

Jenn
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jenn Person:
...
If posting a log will help, please let me know.


Yes, do that.

Stop Tomcat,
Delete all the logs in the tomcat/logs directory,
Start tomcat,
If your app doesn't come up, post any logs that aren't empty.

This way, you're not posting tons of irrelevant stuff.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here it is:
 
Jenn Person
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh wow, you're right Ben. I checked the log and it reported an xml error. I kept looking over the web.xml and couldn't see it.

Nice catch, thank you so much! It works now.

Jenn
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I never regretted buying a copy of XML Spy years ago - a quick load of web.xml or server.xml after editing gives me confidence that I have not created a hard to find tyop.

Im sure that these days XML validation is built into lots of IDEs...
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic