• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTTP 404 – The requested resource is not available

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I recently reinstalled my operating system (Windows XP Pro) and decided to use the latest Apache Tomcat downloads to run my projects in JSP, Java

I downloaded:

Apache-tomcat-7.0.39-windows-x86.zip Core
Apache-tomcat-7.0.39.exe Windows Installer

I unzipped the Core into my c drive and renamed it apache-tomcat7
I ran the Windows Installer

I created 2 Environment variables through my Control Panel under System.
In the advanced tab I added:
CATALINA_HOME c:\apache-tomcat7
JAVA_HOME c:\Program Files\Java\jdk1.7.0_21

When I go to Internet Explorer and enter:
http://localhost:8080

I get

If you're seeing this, you've successfully installed Tomcat. Congratulations!
However, I can’t bring up any code I’ve created.

I decided, for example, to write a simple helloworld.jsp and place it under webapps:

I get HTTP Status 404 The requested resource is not available
The logs folder is empty

What am I missing?

Thanks,

Robin




 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I decided, for example, to write a simple helloworld.jsp and place it under webapps:



Really? You placed it under webapps and not under ROOT? Why?

You should go through some of the examples supplied in the usual Tomcat install.

Bill
 
Robin Rembish
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bill,

The Tomcat examples provided by Apache Tomcat work. However, I'm just not following it. Too many folders. Please explain to me why the logs folder would be empty when there is an error message.

Thanks,

Robin
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the logs directory is empty you are looking in the wrong place. Tomcat out of the box will write log files if it runs at all.

Search for a file with a name starting with "localhost" and the "log" file type.

Your answer to my question about why you put the file under webapps:

The Tomcat examples provided by Apache Tomcat work. However, I'm just not following it. Too many folders.



Is amusing but not informative.

Bill
 
Robin Rembish
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I decided to reinstall apache-tomcat-6.0.18

I followed the instructions in:
http://kvuhome.blogspot.com/2009/01/how-to-install-and-set-up-apache-tomcat.html

and my projects work fine

In addition, Tomcat writes to the logs folder. Perhaps at some future time I'll install a more current server.

Robin
 
reply
    Bookmark Topic Watch Topic
  • New Topic