You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tokajac <im...@hotmail.com> on 2009/06/17 22:53:50 UTC
Redeploy application
Hello,
Whenever i want to deploy new version of application (that's VERY often),
have to:
stop tomcat;
execute build.xml -ant script;
start tomcat;
Is there any way, target in ant, that can make this easier?
Regards
P.S.
http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409
--
View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24081872.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Redeploy application
Posted by Jonathan Mast <jh...@gmail.com>.
dude, step-by-step instructions are on that page, its actually one of the
more clear and concise how-tos provided by tomcat.
On Wed, Jun 17, 2009 at 5:21 PM, Tokajac <im...@hotmail.com> wrote:
>
> http://localhost:8080/manager/deploy?path=/appname
>
> but i get:
> Access to the requested resource has been denied
> with user: tomcat; pass: tomcat
>
> Can you explain step-by-step the redeployment configuration, please?
>
>
> Regards
>
>
>
> Jonathan Mast-2 wrote:
> >
> > try:
> >
> > http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html
> >
> >
> >
> > On Wed, Jun 17, 2009 at 4:53 PM, Tokajac <im...@hotmail.com> wrote:
> >
> >>
> >> Hello,
> >>
> >>
> >> Whenever i want to deploy new version of application (that's VERY
> often),
> >> have to:
> >> stop tomcat;
> >> execute build.xml -ant script;
> >> start tomcat;
> >>
> >> Is there any way, target in ant, that can make this easier?
> >>
> >>
> >> Regards
> >>
> >> P.S.
> >> http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Redeploy-application-tp24081872p24081872.html
> >> Sent from the Tomcat - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Redeploy-application-tp24081872p24082327.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Redeploy application
Posted by Tokajac <im...@hotmail.com>.
http://localhost:8080/manager/deploy?path=/appname
but i get:
Access to the requested resource has been denied
with user: tomcat; pass: tomcat
Can you explain step-by-step the redeployment configuration, please?
Regards
Jonathan Mast-2 wrote:
>
> try:
>
> http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html
>
>
>
> On Wed, Jun 17, 2009 at 4:53 PM, Tokajac <im...@hotmail.com> wrote:
>
>>
>> Hello,
>>
>>
>> Whenever i want to deploy new version of application (that's VERY often),
>> have to:
>> stop tomcat;
>> execute build.xml -ant script;
>> start tomcat;
>>
>> Is there any way, target in ant, that can make this easier?
>>
>>
>> Regards
>>
>> P.S.
>> http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409
>> --
>> View this message in context:
>> http://www.nabble.com/Redeploy-application-tp24081872p24081872.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24082327.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Redeploy application
Posted by Jonathan Mast <jh...@gmail.com>.
try:
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html
On Wed, Jun 17, 2009 at 4:53 PM, Tokajac <im...@hotmail.com> wrote:
>
> Hello,
>
>
> Whenever i want to deploy new version of application (that's VERY often),
> have to:
> stop tomcat;
> execute build.xml -ant script;
> start tomcat;
>
> Is there any way, target in ant, that can make this easier?
>
>
> Regards
>
> P.S.
> http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409
> --
> View this message in context:
> http://www.nabble.com/Redeploy-application-tp24081872p24081872.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Redeploy application
Posted by Timo Meinen | mindmatters <Ti...@mindmatters.de>.
Have a look at 'autodeploy': http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server
Timo
Am 18.06.2009 um 11:16 schrieb Tokajac:
>
> I added this to META-INF/context.xml:
>
> <Context reloadable="true" antiResourceLocking="true">
> ( former: <Context> )
>
> just overwrite webapps/appname.war and it seems to work!
>
>
> Any experiences with this approach?
>
>
> Regards
>
>
>
>
> Tokajac wrote:
>>
>> Hello,
>>
>>
>> Whenever i want to deploy new version of application (that's VERY
>> often),
>> have to:
>> stop tomcat;
>> execute build.xml -ant script;
>> start tomcat;
>>
>> Is there any way, target in ant, that can make this easier?
>>
>>
>> Regards
>>
>> P.S.
>> http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409
>>
>
> --
> View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24089275.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Viele Grüße
Timo Meinen
--
---------------------------------------------------------------------------
mindmatters GmbH &
Co. KG
Neuer Kamp 30
20357 Hamburg - St. Pauli
Fon: +49 40 4840593 0
Fax: +49 40 4840593 9
Website: www.mindmatters.de
Handelsregister: Amtsgericht Hamburg | HRA 97304 | UID DE225251880
Persönl. haftende Gesellschafterin: mindmatters
Verwaltungsgesellschaft mbH
Amtsgericht Hamburg | HRB 84595 | Geschäftsführer: Frank Schmitz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Redeploy application
Posted by Tokajac <im...@hotmail.com>.
I added this to META-INF/context.xml:
<Context reloadable="true" antiResourceLocking="true">
( former: <Context> )
just overwrite webapps/appname.war and it seems to work!
Any experiences with this approach?
Regards
Tokajac wrote:
>
> Hello,
>
>
> Whenever i want to deploy new version of application (that's VERY often),
> have to:
> stop tomcat;
> execute build.xml -ant script;
> start tomcat;
>
> Is there any way, target in ant, that can make this easier?
>
>
> Regards
>
> P.S.
> http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409
>
--
View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24089275.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Redeploy application
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Timo,
On 6/18/2009 4:44 AM, Timo Meinen | mindmatters wrote:
> <!-- Starts Tomcat -->
> <!-- Variable 'server.missing' has to be set via 'tomcat-alive'-->
> <target name="tomcat-start" depends="tomcat-alive" if="server.missing">
I like mine better:
<exec os="Linux" executable="${app.tomcat-home}/bin/catalina.sh">
<env key="JAVA_HOME" value="${app.java-home}" />
<env key="CATALINA_BASE" value="${app.home.dir}" />
<arg value="start" />
</exec>
<!-- Separate script for win32 -->
<exec os="Windows 2000, Windows XP"
executable="${app.tomcat-home}/bin/catalina.bat">
<env key="JAVA_HOME" value="${app.java-home}" />
<env key="CATALINA_BASE" value="${app.home.dir}" />
<arg value="start" />
</exec>
Why bother setting all those jvmargs that catalina.sh/bat already knows
how to do?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAko7/KEACgkQ9CaO5/Lv0PDYngCeO/xJAt/9MmTWCGVlIeGyd3EL
pm8An1d/maqeKm1BYMheP9K1AS4yXT6E
=zBVS
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Redeploy application
Posted by Timo Meinen | mindmatters <Ti...@mindmatters.de>.
Hi Tokajac,
you can create an ANT script like the following:
<!-- Checks if Tomcat is alive and starts it on demand -->
<target name="tomcat-alive">
<waitfor maxwait="3" maxwaitunit="second"
timeoutproperty="server.missing">
<socket port="${tomcat.port}" server="localhost" />
</waitfor>
</target>
<!-- Starts Tomcat -->
<!-- Variable 'server.missing' has to be set via 'tomcat-alive'-->
<target name="tomcat-start" depends="tomcat-alive" if="server.missing">
<echo message="Starting Tomcat Home: ${tomcat.home} Base: $
{tomcat.base}" />
<java jar="${tomcat.home}/bin/bootstrap.jar" spawn="true" fork="true">
<jvmarg value="-Dcatalina.base=${tomcat.base}" />
<jvmarg value="-Dcatalina.home=${tomcat.home}" />
<jvmarg value="-Dfile.encoding=UTF-8" />
<jvmarg value="-Xms128m" />
<jvmarg value="-Xmx768m" />
<jvmarg value="-XX:PermSize=64m" />
<jvmarg value="-XX:MaxPermSize=256m" />
<jvmarg value="-
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" />
<jvmarg value="-Djava.util.logging.config.file=${tomcat.base}/conf/
logging.properties" />
<!-- JMX Remote for JConsole
<jvmarg value="-DhttpsGuardDisabled=true"/>
<jvmarg value="-Dcom.sun.management.jmxremote"/>
<jvmarg value="-Dcom.sun.management.jmxremote.port=8086"/>
<jvmarg value="-Dcom.sun.management.jmxremote.ssl=false"/>
<jvmarg value="-Dcom.sun.management.jmxremote.authenticate=false"/>
-->
<!-- Debug
<jvmarg value="-Xdebug -
Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" />
-->
</java>
</target>
<!-- Stops Tomcat -->
<target name="tomcat-stop" depends="tomcat-alive"
unless="server.missing">
<echo message="Stopping Tomcat" />
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
<jvmarg value="-Dcatalina.home=${tomcat.home}" />
<arg line="stop" />
</java>
<echo message="Waiting for Tomcat shutdown" />
<sleep seconds="3" />
</target>
Best regards
Timo Meinen
Am 17.06.2009 um 22:53 schrieb Tokajac:
>
> Hello,
>
>
> Whenever i want to deploy new version of application (that's VERY
> often),
> have to:
> stop tomcat;
> execute build.xml -ant script;
> start tomcat;
>
> Is there any way, target in ant, that can make this easier?
>
>
> Regards
>
> P.S.
> http://www.coderanch.com/t/449958/Tomcat/Redeploy-application#2003409
> --
> View this message in context: http://www.nabble.com/Redeploy-application-tp24081872p24081872.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org