Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 29th, 2006, 07:37 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't start my app in tomcat

Hi,

I am really desparate and before coming here I tried to go through the manuals thorougly.

I have installed Tomcat 5.5 as a windows service. I have created system variable of CATALINA_HOME = "C:\Tomcat"

I have created a simple app with a simple JSP page (/webapps/mytest/)

I have created a web.xml file in /mytest/WEB-INF/ folder (using the default values)

I have even created a context.xml in the mytest/META-INF/ folder (again using default values)

But the problem remains. Although I can run the /jsp-examples and serlvets-examples/ given appilcations, I can't run mine.

I even tried to stop-start the tomcat service many times (using the Tomcat5w.exe file)

I also have the same problems with /admin and /manager apps (I have created user with manager role in tomcat-users.xml)

What am I doing wrong. Please help!


Reply With Quote
  #2 (permalink)  
Old November 29th, 2006, 08:16 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK, I have done one step further...

I have managed to start the manager...

When I press "start" to start my test application I get this message:

"FAIL - Application at context path /mytest could not be started"

Any ideas?


Reply With Quote
  #3 (permalink)  
Old January 5th, 2007, 05:29 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

just cross check whether the web.xml is valid according to the dtd. I suspect it might not be valid.
If your sample web application is having only jsp's than you need not include it. Just use anytool to create the web.xml file. Cross check it's well-formedness and valid ness. I think you need not include the context.xml file when you already placed the folder in web-apps. Still any problem just ping me any time on kadimijagan@hotmail.com.

Reply With Quote
  #4 (permalink)  
Old January 7th, 2007, 05:26 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you very much. This I hadn't thought. Instead, I installed tomcat 6 and it worked!

So, I guess the problem might have been on the installation itself, or the tomcat version :)



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto. Start App As User on Server? BrianWren Pro VB 6 12 April 29th, 2008 05:03 PM
can't start tomcat with pix deployed anjie BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 1 January 21st, 2008 05:18 PM
start a context automatically, while tomcat starts sureshrgsl Apache Tomcat 4 May 17th, 2007 06:46 AM
start a context automatically, while tomcat starts sureshrgsl BOOK: Professional Apache Tomcat 0 April 16th, 2007 02:14 AM
tomcat can't start Edward King Apache Tomcat 0 October 19th, 2005 09:38 AM



All times are GMT -4. The time now is 03:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.