We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,140 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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?

3
Contributors
3
Replies
20 Hours
Discussion Span
1 Year Ago
Last Updated
4
Views
Question
Answered
nore
Light Poster
38 posts since Sep 2010
Reputation Points: 10
Solved Threads: 5
Skill Endorsements: 0

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
Industrious Poster
4,374 posts since Jan 2007
Reputation Points: 1,318
Solved Threads: 610
Skill Endorsements: 24

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,789 posts since Dec 2004
Reputation Points: 2,867
Solved Threads: 944
Skill Endorsements: 50

oh i got that , thanks

nore
Light Poster
38 posts since Sep 2010
Reputation Points: 10
Solved Threads: 5
Skill Endorsements: 0
Question Answered as of 1 Year Ago by peter_budo and stultuske

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0604 seconds using 2.66MB