Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

WAR files help

Giorgio Ponza

2003-09-22


Hi all
i have my application running at www.demo.local
in Tomcat 4.1.24 Linux RH 9
the dir is /webapps/demo and the files are unpacked

Now i'd like to clear it and create a WAR file.
So i've done this
1. jar cf demo.war *
2. copied the file in /webapps
3. deleted the directory /webapps/demo
4. modified the server.xml with this

<Host name="www.demo.local" debug="0" appBase="webapps/demo"
unpackWARs="false">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="demo." suffix=".txt" timestamp="false" />
<Context path="" docBase="/demo" debug="0" reloadable="true">
</Context>
</Host>

Now if i use http://www.demo.local/demo it works, but i want it to work
with http://www.demo.local  without the app name as suffix
I have many applications on that tomcat, so using the app name is not good.
Any suggestions on how to proceed?
Tx in advance

Giorgio Ponza



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.