This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Jsp not running Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Jsp not running" Watch "Jsp not running" New topic
Author

Jsp not running

talha niaz
Greenhorn

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
Greenhorn

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
Greenhorn

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
by
K&T
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 4.1.stuff....to 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.

Cheers,
Ram.
[ September 01, 2005: Message edited by: Ramaswamy Srinivasan ]
Ben Souther
Sheriff

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Jsp not running
 
Similar Threads
Tomcat web app configuration error
The connection was refused when attempting to contact localhost:8080
how to confgure Tomcat4.0?
Stuck on MVC BeeServlet Example
jsp not running in linux