Tomcat + Eclipse setup

From: Horst Walter (unkwb_at_web.de)
Date: 08/31/04


Date: 31 Aug 2004 01:08:51 -0700

I have a brief question about my Tomcat config. I try to place the
webapps folder structure inside my Eclipse project strutcure, but
outside the Tomcat home directory. Example:

c:\Eclipse\MyProject
c:\Java\Tomcat\webapps

In order to do so I set in the server XML:

<Host name="localhost" debug="0"
appBase="c:\Eclipse\MyProject" unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

mywebapp.xml:
<Context path="/mywebapp" docBase="c:\Eclipse\MyProject\mywebapp">

Question: I would expect mywebapp.war to be automatically unpacked
when I place it in c:\Eclipse\MyProject (it's the appbase). That's the
way it works when I leave the webapp dir unchanged (inside tomcat
home). However, it does not work when I set the dir outside the tomcat
home dir.

Any hints would be appreciated.
Regards HW

PS: Tomcat 5.0.25 on Win2k



Relevant Pages

  • Re: Tomcat + Eclipse setup
    ... >outside the Tomcat home directory. ... your Eclipse project structure? ... point the docBase of my context to the root of my webapp. ...
    (comp.lang.java.programmer)
  • Re: Tomcat + Eclipse setup
    ... application under Tomcat using Eclipse, I suggest you give the Sysdeo tomcat ...
    (comp.lang.java.programmer)