tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EP...@upstate.com
Subject RE: War files don't work
Date Fri, 25 Jul 2003 11:58:09 GMT
 What the Automatic Applcation Deployment doc says is that if you have a WAR
file, it won't be expanded if you have a <context> element in the server.xml
document.  It will only be run from that war file in an unexpanded format.

correct?
Eric

-----Original Message-----
From: John Turner
To: Tomcat Users List
Sent: 7/23/03 3:18 PM
Subject: Re: War files don't work


Check out the rules for Auto deployment:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat
ic%20Application%20Deployment

John

Rick Roberts wrote:

> This sounds reasonable to me.
> But, if I don't have a <Context/> element in server.xml then how do I 
> provide <Context/> type information to Tomcat?
> 
> 
>   <!-- NSFS Context -->
>   <Context path="/nsfs" docBase="nsfs" debug="0" reloadable="true"
>       crossContext="true">
>       <Logger className="org.apache.catalina.logger.FileLogger"
>           prefix="nsfs_log." suffix=".txt" timestamp="true"/>
>   </Context>
> 
> 
> BTW,
> manually creating the nsfs/ directory did not help.
> however; if i manually create the nsfs/ dir and manually unpack the
.war 
> file everything works fine.
> 
> another question:
> did I correctly create the nsfs.war file and test it by doing the 
> following?:
> 
> 1. cd to the webapps/nsfs/ directory
> 2. jar -cvf nsfs.war *
> 3. cp nsfs.war ../.  (the webapps dir)
> 4. rm -rf nsfs/
> 5. restart tomcat
> 6. use browser and navigate to http://localhost/nsfs
> 
> 
> Thanks,
> 
> Rick
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message