This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Mel Anisky

Greenhorn
+ Follow
since Jan 27, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mel Anisky

Okay, I've done that. The html file is now at

C:\Java\tomcat\webapps\SomeDirectory

and

http://localhost:8080/SomeDirectory/Hello.html

still yields "HTTP Status 404 - /SomeDirectory/hello.html

type Status report

message /SomeDirectory/hello.html"


9 years ago
Hi everyone,

So, I finally got it to the point where if I put http://localhost:8080/ into navigation on my web browsers, I go to the Tomcat site. The one that says


If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!


But!! When I try to do something else, like http://localhost:8080/SomeDirectory/hello.html it gives me the error message
"HTTP Status 404 - /SomeDirectory/hello.html

--------------------------------------------------------------------------------

type Status report

message /SomeDirectory/hello.html

description The requested resource (/SomeDirectory/hello.html) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.35"


Yet at the same time, if I enter into the navigation bar C:\Java\tomcat\webapps\ROOT\SomeDirectory\hello.html, THAT shows up correctly!

Plus, once I'm at the main Tomcat page, nothing that isn't already online works. For instance, if I go to the left menu and click anything there besides "Tomcat Online"-- for example, Administration->Status, I get an error message:

"HTTP Status 404 - /manager/status

type Status report

message /manager/status

description The requested resource (/manager/status) is not available.
Apache Tomcat/6.0.35"

What's going on? The directory for that CAN'T be wrong, can it?

Please help!
9 years ago
I can't get Tomcat to work. When I run

C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\bin\startup.bat

I get the following error:

The CATALINA_HOME environment variable is not defined correctly.

I have CATALINA_HOME defined as %TOMCAT_HOME%
I have TOMCAT_HOME defined as C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\

CLASSPATH is C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\lib\servlet.jar

The directory for C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\ definitely contains bin, and C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\bin\ contains startup.bat

What am I doing wrong?

10 years ago