wood burning stoves 2.0*
The moose likes Tomcat and the fly likes First site not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "First site not available" Watch "First site not available" New topic
Author

First site not available

Dan Parsons
Ranch Hand

Joined: May 30, 2007
Posts: 70
I just installed Tomcat 6.0.18 on Windows XP workstation.

I can see the Tomcat home (http://localhost:8080/) and can get to the example sites (http://localhost:8080/examples/jsp/) and see all the example apps working.

I tried to create a new folder called first under webapps and create a simple hello world jsp and it doesnt work.
Here is my web.xml which is located in first\WEB-INF:


My attempt to see the hello world message in /first/index.jsp gives me back this response:
description The requested resource (/first/index.jsp) is not available.

Please advise.
priya thomas
Greenhorn

Joined: Mar 17, 2009
Posts: 15
Hi Dan,

Did you get a solution to this problem. I have the same problem. I see the welcome page after starting tomcat, and i can also see the examples apache provides. but if i create my own jsp and put it in webapps folder and go to http://localhost:8080/date.jsp it gives me:

requested resource is not available error.
my web.xml looks the same as yours.

Please help,

thanks

Priya
Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

Hi,

Are you able to open the index.jsp page which is inside your folder

try this

http://localhost:8080/first/index.jsp

If it is not opening, then there is some problem with directory structure you have created.


Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
priya thomas
Greenhorn

Joined: Mar 17, 2009
Posts: 15
Hi Sumit,

thanks for responding.

I don't have a first - just a date.jsp in my c:\tomcat\webapps folder.
(sorry for the confusion i shudve probably started a new thread, but i was trying to find out from the original poster if he got a solution to this same problem i have)

http://localhost:8080/date.jsp is giving me resource not available error.

I have updated my path folder to include c:\tomcat\bin. is there some other configuration i am missing?

i am starting and stopping tomcat (version 6.0.20) through eclipse 3.5.0






Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

priya thomas wrote:



I don't have a first - just a date.jsp in my c:\tomcat\webapps folder.



That won't do. You need to create a new folder (project) in webapps directory.
copy the WEB-INF folder and index.jsp from ROOT directory and paste it into your project directory.

Now restart the Tomcat and try to hit the jsp inside your project.
priya thomas
Greenhorn

Joined: Mar 17, 2009
Posts: 15
thanks its working now..
Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

priya thomas wrote:thanks its working now..


Welcome
 
Consider Paul's rocket mass heater.
 
subject: First site not available
 
Similar Threads
Servlet filter not getting invoked
What could be an explanation of HTTP 404 error in my web-app?
Running a servlet on Tomcat using Eclipse
basic url question
JSF runtime error