Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP is not working @ Tomcat 5.0

 
Ram Kumar Rengarajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First check whether http://localhost:8080/ is working at your PC or not?
 
chsanthosh kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ram Kumar Rengarajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you just send the error message that you are getting in catalina.
 
chsanthosh kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Santhosh,

Shall I reinstall my tomcat? or Is anyother solution available?
 
Suman Das
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ram Kumar Rengarajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic