wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP is not working @ Tomcat 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP is not working @ Tomcat 5.0" Watch "JSP is not working @ Tomcat 5.0" New topic
Author

JSP is not working @ Tomcat 5.0

Ram Kumar Rengarajan
Greenhorn

Joined: Apr 28, 2005
Posts: 22
Hi,

I have installed Tomcat 5.0. I created one simple jsp file name as sample.jsp. I put in C:\Tomcat 5.0\webapps\jsp-examples\sample.jsp. But I could not able to run this program.
Pls anyone help me. But Servlet program is working fine in my system.

I used this url: http://localhost:8080/jsp-examples/sample.jsp

This program is working fine in my colligue system. I have more confused. Why this is happend? I could not able to access default examples @ tomcat. Even i typed http://localhost:8080/jsp-examples/ i got this error "The requested resource (/jsp-examples/) is not available".
Pls help me...

Thanks in advance..

Ram..
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
First check whether http://localhost:8080/ is working at your PC or not?


My blood is tested +ve for Java.
chsanthosh kumar
Ranch Hand

Joined: Jun 28, 2005
Posts: 56
Please reinstall u r tomcat5.0..
and Check it Once..

It will wrok but their is no problem with placing u r jsp files there..
I'm sure it will work.

Thanks


---------------------<br />SCJP(1.4)With 95%<br /> <br />Do it Right and Forget it!
Ram Kumar Rengarajan
Greenhorn

Joined: Apr 28, 2005
Posts: 22
hi Chetan Parekh,

http://localhost:8080/ this url is working fine. I clicked on the jsp examples link in this page. But i got error message. Servlet program works fine. I got a problem in jsp only.


Thank you Mr.chsanthosh kumar. Is it neccessary to uninstall the tomcat? Because Servlet program works fine. how is it possible once the problem is in tomcat?

Thanks..
Ram..
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Can you just send the error message that you are getting in catalina.
chsanthosh kumar
Ranch Hand

Joined: Jun 28, 2005
Posts: 56
Ok.
Let me know the in the browser u typed for http://localhost:8080/

if u clicked on a link of (jsp-examples) wat it is showing can u please tell me..
Ram Kumar Rengarajan
Greenhorn

Joined: Apr 28, 2005
Posts: 22
Hi Santosh and Chetan,

I got this error message.

HTTP Status 404 - /jsp-examples/

--------------------------------------------------------------------------------

type Status report

message /jsp-examples/

description The requested resource (/jsp-examples/) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.28

Thanks and regards,

Ram..
Ram Kumar Rengarajan
Greenhorn

Joined: Apr 28, 2005
Posts: 22
Hi Santhosh,

Shall I reinstall my tomcat? or Is anyother solution available?
Suman Das
Greenhorn

Joined: Jul 05, 2005
Posts: 2
Hi,
First clear your cache , through the IE browser - Tools - Internet Options - Delete files (Temporary Internet Files) . Check "Delete all offline content". Then restart Tomcat . Check again.
Otherwise, Uninstalling it is the only option. Please check also the file name you are entering.
I hope this helps.
Kalyana Sundaram
Ranch Hand

Joined: Mar 18, 2005
Posts: 94
I think the problem might be someother thing.
JAVA_HOME variable must be set to jdk installation directory for the JSP COMPILER to work properly.

1) stop your TOMCAT if it is running
2) Ensure that JAVA_HOME & CATALINA_HOME is set
3) Restart your TOMCAT

With this everything should work properly.

please let us know, if the problem exists.

~Kalyan


Only those who will risk going too far can possibly find out how far one can go !!!
Ram Kumar Rengarajan
Greenhorn

Joined: Apr 28, 2005
Posts: 22
hi,

I think the problem was in my web-inf folder. I did deleted web-inf folder which is in jsp-examples. After I pasted new one from my friend system. Now Jsp program is working fine. May be i deleted some files in my old web-inf folder. so i could not able to run it.

Now it is working fine. Thank you very much to all.

Ram..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP is not working @ Tomcat 5.0
 
Similar Threads
Tomcat: http://IPaddress:8080/ not working
Problem in placing JSPs in webapps folder
Apache -> Tomcat servlet problem
404 - Page not found ??
trouble loading servlet class on Tomcat4.1.24