954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Why the example code not running?

Hello, i'm new in JSP, and i already install Apache Tomcat for the server, but after install it and then try it to browser and choose example there was some text like below.

HTTP Status 404 - /examples/jsp/

type Status report

message /examples/jsp/

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

Apache Tomcat/7.0.25

How to fix this?

nore
Light Poster
38 posts since Sep 2010
Reputation Points: 10
Solved Threads: 5
 

either your application was not deployed to the tomcat server, or it was not started.
go to:
http://localhost:8080/

and check the list with deployed/started webapps.

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 

As stultuske already mentioned you should check if server running.
If Tomcat installed as service it will start every time you start your pc (if not modified). If you extracted zip, you need to execute startup.bat from your "bin" directory inside of tomcat directory (can be speed up if you create CATALINA_HOME system variable)

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

oh i got that , thanks

nore
Light Poster
38 posts since Sep 2010
Reputation Points: 10
Solved Threads: 5
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You