Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Tomcat and the fly likes Jsp not running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Jsp not running" Watch "Jsp not running" New topic

Jsp not running

talha niaz

Joined: Aug 26, 2005
Posts: 4
i extracted the tomcat using its bin file and placed into /usr/local folder.after successful setting of the java and Catalina home ..the tomcat is is successfully started.
i have also configured apache 2.something .its been placed in /usr/local/apache2.i have also configured mod connector.

when i run tomcat and point it to http://localhost:8080/ it shows HTTP 500 Status page and does not shows the default page of tomcat ...moreit does run any servletexamples and jsp examples.....
please help me ...urgent
Bhopal Singh

Joined: Jul 21, 2005
Posts: 11
I would suggest you to see the tomcat server log.
You will have more information about what went wrong.
rahul soni

Joined: Aug 22, 2005
Posts: 24
hi as far as u problem is concern some possibility of cause
1. u must set Java PATH
2............. Java home path for ex.where is u Java home directory("JAVA_HOME");
this r enviroment variable

I hope u will get solution of u problem
if not send me u message
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Talha,

Welcome to Javaranch.

If all the steps in installing Tomcat have been followed, Tomcat should come, when you call him. If he doesn't, then we have chances, the configuration being wrong.

Any ways, check all these steps and try starting again.

1. Set the environment variable CATALINA_HOME to your Tomcat folder

say c:\Tomcat(Better to delete all the avoid chaos
due to spaces)

2. Set JAVA_HOME variable to the JDK folder.

Say c:\jdk1.3 or something

3. Set CLASSPATH variable to %CATALINA_HOME%\common\lib\servlet.jar;

4. Set Path variable to ;%JAVA_HOME%\bin;%CATALINA_HOME%\bin;

Hope this helps you. Have a nice time.

[ September 01, 2005: Message edited by: Ramaswamy Srinivasan ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

3. Set CLASSPATH variable to %CATALINA_HOME%\common\lib\servlet.jar;

4. Set Path variable to ;%JAVA_HOME%\bin;%CATALINA_HOME%\bin;

The classpath variable doens't need to be set in order to run Tomcat.
Tomcat uses custom classloaders and will ignore your classpath setting.
(You will, however need to set that if you want to compile your own servlets from the command line.)

CATALINA_HOME\bin doesn't need to be on your PATH environment variable.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Jsp not running
It's not a secret anymore!