This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes error running servlets using tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "error running servlets using tomcat" Watch "error running servlets using tomcat" New topic
Author

error running servlets using tomcat

anubha goel
Greenhorn

Joined: Jul 06, 2007
Posts: 22
hi,
i am coming across a problem i am unable to run servlets n JSP using tomcat,eventhough i had successfully run both(servlets n jsp)before but now they are not running.i have not made any changes in anything...infact the homepage of tomcat server http://localhost:8080/
is not opening,its diaplaying error-404,whenever i try to fetch it.

please help me out....

Thanks in advance.
Regards,
Anubha.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41078
    
  43
Are there any error messages in the catalina.out file in the "logs" directory?


Ping & DNS - my free Android networking tools app
anubha goel
Greenhorn

Joined: Jul 06, 2007
Posts: 22
Hi,
no there are no errors....

Thanks and Regards,
Anubha.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Is Tomcat running?

Who's 404 page are you seeing; Tomcat's or the default 'Friendly Error' page that MSIE displays instead of the actual server error?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
My guess is that Tomcat is not actually running due to some startup error. What method are you using to start Tomcat?

Assuming windows - can you see a Java process in the Windows Task Manager?

Bill
anubha goel
Greenhorn

Joined: Jul 06, 2007
Posts: 22
Hi,
thanks a lot..
my problem got solved as there was some startup error.
i just restarted tomcat through console after shutting down all releated aplications and it worked...

Thanks & Regards,
Anubha
 
wood burning stoves
 
subject: error running servlets using tomcat
 
Similar Threads
how to invoke servlet
Apache -> Tomcat servlet problem
Tomcat web app configuration error
"Internal Servlet Error:" and "Root cause:" ?
Deploying Servlet in Tomcat 5.0