tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dwayne Ghant <>
Subject Re: WAR files and Eclipse
Date Tue, 14 Dec 2004 20:52:31 GMT
Intresting question associated with this subject.
If I have "public_html " enabled for developers on
local machine ex:
            <Listener className="org.apache.catalina.startup.UserConfig"

Can I have  a setting for tomcat to unwar there personal test 
applications in
there public_html directories????

I'm assuming it would look something like this (listed below):

      <Host name="localhost" debug="0" appBase="/home/*/public_html"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

I'm probably incorrect, but I do need to know, to finish setting up JSP 
enviornment for
java developers like myself.
Rhino wrote:

>It's actually very easy to do what you want to do.
>Assuming you have correctly installed and configured Sysdeo, you will need
>to tell Eclipse where the War file for your Tomcat project should be
>generated. This is done on a *project* basis, i.e. you have to repeat this
>step once for each Tomcat project you create but you will never have to do
>this again for a given project unless you change the location where you want
>the War file.
>1. Select the Tomcat project in the Package Explorer perspective.
>2. Right click for a context menu. Choose 'Properties'.
>3. Within Properties, choose 'Tomcat' from the tree on the left.
>4. Click on the 'Export to WAR settings' tab within the Tomcat properties.
>5. Enter the path that tells Tomcat where to generate your War file. The
>path name should include the file name of the War file. I normally put my
>War files in a folder called 'war' directly beneath the project so my "WAR
>file for export" looks like this:
>D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to
>organize your files differently.
>6. Click on OK to close the Properties dialog.
>Then, every time you want to regenerate your War file, all you need to do is
>1. Select the Tomcat project in the Package Explorer perspective.
>2. Right-click for a context menu. Choose 'Tomcat project'.
>3. Choose 'Export to the war file sets in project properties'.
>4. You should get a brief message that tells you the operation worked.
>Now, if you don't find Tomcat in the Properties tree or if you don't see the
>'Tomcat project' option in the context menu, it means you probably didn't
>configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let
>us know and we'll try to help.
>----- Original Message ----- 
>From: "Daniel Watrous" <>
>To: <>
>Sent: Monday, December 13, 2004 3:43 PM
>Subject: WAR files and Eclipse
>Hello All,
>I am new to WAR files and eclipse.  Many searches on google bring me to the
>sysdeo tomcat plugin, which I have installed.  I want to know if there is
>some standard way to generate a WAR file for deployment.  I have found that
>I can export a JAR file and change its name, but in the process the
>directory structure is altered.  Maybe you even know about a better IDE than
>eclipse for working with web-based projects.  THANKS in advance.
>To unsubscribe, e-mail:
>For additional commands, e-mail:


Dwayne A. Ghant
Application Developer
Temple University


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message