You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Stover <bx...@yahoo.co.uk> on 2008/04/28 21:56:57 UTC

Into which dir do I have to deploy web service *.war files ? "Hot" deployment or restart required?

Sorry for these newbie questions: I know the answers only for JBoss.
So I need assistance to do the same with Tomcat:

Into which dir in Tomcat installation do I have to deploy/copy web service *.war files ?

Is there a "hot" deployment in Tomcat? Read: Do I have to restart Tomcat in order
to let Tomcat recognize the new web services ?

Ben










---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Into which dir do I have to deploy web service *.war files ? "Hot" deployment or restart required?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ben Stover [mailto:bxstover@yahoo.co.uk] 
> Subject: Into which dir do I have to deploy web service *.war 
> files ? "Hot" deployment or restart required?
> 
> Into which dir in Tomcat installation do I have to 
> deploy/copy web service *.war files ?

For a default Tomcat configuration, the normal deployment directory is
named webapps, under Tomcat's home directory.  The value is specified by
the appBase attribute of each <Host> element in conf/server.xml.
However, if needed, a webapp can actually be deployed anywhere, by
creating a <Context> element for it in
conf/Catalina/[host]/[appName].xml, with a docBase attribute pointing to
the location of the .war file.  (The preceding doesn't apply to older
versions of Tomcat, but you didn't bother to tell us which one you're
working with.)  Using webapps is certainly easier, especially if you're
just getting started with Tomcat.

> Is there a "hot" deployment in Tomcat?

Normally yes, but it's under control of the <Host> autoDeploy attribute
in conf/server.xml.  Many production sites disable autoDeploy to reduce
overhead, but you likely want it on (the default) for development.

The doc is here:
http://tomcat.apache.org/tomcat-6.0-doc/config/host.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Into which dir do I have to deploy web service *.war files ? "Hot" deployment or restart required?

Posted by Mark Thomas <ma...@apache.org>.
Ben Stover wrote:
> Into which dir in Tomcat installation do I have to deploy/copy web service *.war files ?

For a default installation, any war files (web service or not) placed in 
$CATALINA_HOME/webapps will be auto-deployed. There should be no need for a 
restart.

Are you expecting Tomcat to provide something (over and above what you'd 
expect from a standard Servlet container) to support your web service? If 
so, it might not work.

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org