• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

First site not available

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 296
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
priya thomas
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 296
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks its working now..
 
Sumit Patil
Ranch Hand
Posts: 296
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

priya thomas wrote:thanks its working now..



Welcome
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic