This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WAR file
 
Similar Threads
Perl/Cgi in Tomcat 5.5
Basic Question????
Http 404 Not found error
Make Tomcat go
how to expose defined directory under webapps