This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "WAR file" Watch "WAR file" New topic
Author

WAR file

Tom Xavier
Greenhorn

Joined: Sep 21, 2001
Posts: 4
I have a tomcat4.0 running. I jar all the files in /webapps/ROOT/ as a "abc.war" file and then put it in /webapps/ROOT/demo directory, then I unzip the "abc.war" so all its unziped files are in /webapps/ROOT/demo/.
However, I can only view the html files (for example, hello.html) that are in /webapps/ROOT/demo directory by using "http://localhost:8080/demo/hello.html", but can NOT view any servlet that are in /webapps/ROOT/demo/web-inf/classes/ directory (for example, I can't see "http://localhost:8080/demo/servlet/Hello" although I am sure this servlet class file is correct.
What should I do to view servlets in the WAR file ?
Thanks,
Tom
Tom Xavier
Greenhorn

Joined: Sep 21, 2001
Posts: 4
I have figured out myself. Please ignore it.
Tahnks anyway.
 
 
subject: WAR file
 
Similar Threads
Basic Question????
Perl/Cgi in Tomcat 5.5
Http 404 Not found error
Make Tomcat go
how to expose defined directory under webapps