aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "adding web applications (webapps directory)" Watch "adding web applications (webapps directory)" New topic
Author

adding web applications (webapps directory)

Anonymous
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?
Anonymous
Ranch Hand

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


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: http://aspose.com/file-tools
 
subject: adding web applications (webapps directory)