Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding web applications (webapps directory)

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is apps-docencia.xml supposed to be?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.*)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic