File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes adding web applications (webapps directory) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "adding web applications (webapps directory)" Watch "adding web applications (webapps directory)" New topic

adding web applications (webapps directory)

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a problem when starting up applications.
This is the application I'm trying to start:
- application: .../conf/apps-docencia.xml
- directory: .../webapps/docencia/
- war file: .../webapps/docencia.war
When I start Tomcat, Tomcat recognizes the context. But when I try to invoke the directory (http://URL:8080/docencia/) or servlets the "HTTP 404-File not found" error appears.
What do you thik is happening?
I only created the "apps-docencia.xml" file, the "docencia" directory and the "docencia.WAR" file.
Do I need to do something else to invoque at least the "docencia" directory ?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

what is apps-docencia.xml supposed to be?
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
the apps-docencia.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Setting special properties for /examples
( as an example of overriding the defaults )
<Context path="/docencia"
reloadable="true" >
<LogSetter name="example_tc.log" path="logs/examples.log" />
<LogSetter name="docencia_servlet_log"

It contents the Context declaration.
I know this is new in Tomcat 3.3 (version I am using) instead to do it in server.xml (Tomcat 3.2.*)
I agree. Here's the link:
subject: adding web applications (webapps directory)
It's not a secret anymore!