You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alexey Kakunin <ak...@gmail.com> on 2007/02/21 07:25:21 UTC
tomcat:redeploy is not really deploy new version
Hello!
I'm using Maven 2.0.4 (seems this error repeats with 2.0.5 as well) under
both - Windows and Linux.
I'm trying to redeploy application from maven, for doing it I added tomcat
plugin (http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html) into
project:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<url>http://myserver.org/manager</url>
<server>serverId</server>
<path>/App_Test</path>
</configuration>
</plugin>
And configured server in settings.xml.
If I'm doing tomcat:deploy - everything is ok - war deployed to the server
and I can see in the manager logs lines like:
INFO: Manager: Uploading WAR.....
INFO: Manager: Reloading Web-Application....
But if I'm doing tomcat:redeploy - seems no uploading performed :(
I only can see
INFO: Manager: Reloading Web-Application....
and as result I have old version on my server.
Does anybody has any suggestion?
--
With Best Regards,
Alexey Kakunin, EmDev Limited
Professional Software Development:
http://www.emdev.ru
Re: tomcat:redeploy is not really deploy new version
Posted by Mark Hobson <ma...@gmail.com>.
Sounds similar to http://jira.codehaus.org/browse/MOJO-566. Tomcat
does have some strange behaviour regarding reloading, which I've been
meaning to look into properly sometime.
Mark
On 21/02/07, Alexey Kakunin <ak...@gmail.com> wrote:
> So, I tried cargo:redeploy and it works quite fine for me.
>
> 2007/2/21, Alexey Kakunin <ak...@gmail.com>:
> >
> > Yes, Tomcat has problems with undeploying under Windows - but under Linux
> > it always was ok.
> > Seems tomcat plugin has same problem as described for Cargo here: http://jira.codehaus.org/browse/CARGO-419
> >
> >
> > Thank you for advice to look into JIRA - as result I found Cargo and,
> > since such problem already fixed in Cargo I will try to use it instead of
> > tomcat-plugin
> >
> >
> > 2007/2/21, Wayne Fay < waynefay@gmail.com>:
> > >
> > > I don't use this plugin myself, but I googled and found this. Perhaps
> > > you're running into the same problem -- Tomcat still has a lock on
> > > some Jar, so undeploy fails, so redeploy fails, but Tomcat doesn't
> > > really report the error properly?
> > >
> > > http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg159846.html
> > >
> > >
> > > Also make sure you check JIRA to see if this issue has already been
> > > posted -- if you're lucky, a fix or workaround already exists.
> > >
> > > Wayne
> > >
> > > On 2/21/07, Alexey Kakunin < akakunin@gmail.com> wrote:
> > > > Hello!
> > > > I'm using Maven 2.0.4 (seems this error repeats with 2.0.5 as well)
> > > under
> > > > both - Windows and Linux.
> > > >
> > > > I'm trying to redeploy application from maven, for doing it I added
> > > tomcat
> > > > plugin ( http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html)
> > > into
> > > > project:
> > > >
> > > > <plugin>
> > > > <groupId>org.codehaus.mojo</groupId>
> > > > <artifactId>tomcat-maven-plugin</artifactId>
> > > > <version>1.0-SNAPSHOT</version>
> > > > <configuration>
> > > > <url> http://myserver.org/manager </url>
> > > > <server>serverId</server>
> > > > <path>/App_Test</path>
> > > > </configuration>
> > > > </plugin>
> > > >
> > > > And configured server in settings.xml.
> > > >
> > > > If I'm doing tomcat:deploy - everything is ok - war deployed to the
> > > server
> > > > and I can see in the manager logs lines like:
> > > > INFO: Manager: Uploading WAR.....
> > > > INFO: Manager: Reloading Web-Application....
> > > >
> > > >
> > > > But if I'm doing tomcat:redeploy - seems no uploading performed :(
> > > > I only can see
> > > > INFO: Manager: Reloading Web-Application....
> > > > and as result I have old version on my server.
> > > >
> > > > Does anybody has any suggestion?
> > > >
> > > > --
> > > > With Best Regards,
> > > > Alexey Kakunin, EmDev Limited
> > > >
> > > > Professional Software Development:
> > > > http://www.emdev.ru
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > With Best Regards,
> > Alexey Kakunin, EmDev Limited
> >
> > Professional Software Development:
> > http://www.emdev.ru
> >
>
>
>
> --
> With Best Regards,
> Alexey Kakunin, EmDev Limited
>
> Professional Software Development:
> http://www.emdev.ru
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: tomcat:redeploy is not really deploy new version
Posted by Alexey Kakunin <ak...@gmail.com>.
So, I tried cargo:redeploy and it works quite fine for me.
2007/2/21, Alexey Kakunin <ak...@gmail.com>:
>
> Yes, Tomcat has problems with undeploying under Windows - but under Linux
> it always was ok.
> Seems tomcat plugin has same problem as described for Cargo here: http://jira.codehaus.org/browse/CARGO-419
>
>
> Thank you for advice to look into JIRA - as result I found Cargo and,
> since such problem already fixed in Cargo I will try to use it instead of
> tomcat-plugin
>
>
> 2007/2/21, Wayne Fay < waynefay@gmail.com>:
> >
> > I don't use this plugin myself, but I googled and found this. Perhaps
> > you're running into the same problem -- Tomcat still has a lock on
> > some Jar, so undeploy fails, so redeploy fails, but Tomcat doesn't
> > really report the error properly?
> >
> > http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg159846.html
> >
> >
> > Also make sure you check JIRA to see if this issue has already been
> > posted -- if you're lucky, a fix or workaround already exists.
> >
> > Wayne
> >
> > On 2/21/07, Alexey Kakunin < akakunin@gmail.com> wrote:
> > > Hello!
> > > I'm using Maven 2.0.4 (seems this error repeats with 2.0.5 as well)
> > under
> > > both - Windows and Linux.
> > >
> > > I'm trying to redeploy application from maven, for doing it I added
> > tomcat
> > > plugin ( http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html)
> > into
> > > project:
> > >
> > > <plugin>
> > > <groupId>org.codehaus.mojo</groupId>
> > > <artifactId>tomcat-maven-plugin</artifactId>
> > > <version>1.0-SNAPSHOT</version>
> > > <configuration>
> > > <url> http://myserver.org/manager </url>
> > > <server>serverId</server>
> > > <path>/App_Test</path>
> > > </configuration>
> > > </plugin>
> > >
> > > And configured server in settings.xml.
> > >
> > > If I'm doing tomcat:deploy - everything is ok - war deployed to the
> > server
> > > and I can see in the manager logs lines like:
> > > INFO: Manager: Uploading WAR.....
> > > INFO: Manager: Reloading Web-Application....
> > >
> > >
> > > But if I'm doing tomcat:redeploy - seems no uploading performed :(
> > > I only can see
> > > INFO: Manager: Reloading Web-Application....
> > > and as result I have old version on my server.
> > >
> > > Does anybody has any suggestion?
> > >
> > > --
> > > With Best Regards,
> > > Alexey Kakunin, EmDev Limited
> > >
> > > Professional Software Development:
> > > http://www.emdev.ru
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> With Best Regards,
> Alexey Kakunin, EmDev Limited
>
> Professional Software Development:
> http://www.emdev.ru
>
--
With Best Regards,
Alexey Kakunin, EmDev Limited
Professional Software Development:
http://www.emdev.ru
Re: tomcat:redeploy is not really deploy new version
Posted by Alexey Kakunin <ak...@gmail.com>.
Yes, Tomcat has problems with undeploying under Windows - but under Linux it
always was ok.
Seems tomcat plugin has same problem as described for Cargo here:
http://jira.codehaus.org/browse/CARGO-419
Thank you for advice to look into JIRA - as result I found Cargo and, since
such problem already fixed in Cargo I will try to use it instead of
tomcat-plugin
2007/2/21, Wayne Fay <wa...@gmail.com>:
>
> I don't use this plugin myself, but I googled and found this. Perhaps
> you're running into the same problem -- Tomcat still has a lock on
> some Jar, so undeploy fails, so redeploy fails, but Tomcat doesn't
> really report the error properly?
>
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg159846.html
>
> Also make sure you check JIRA to see if this issue has already been
> posted -- if you're lucky, a fix or workaround already exists.
>
> Wayne
>
> On 2/21/07, Alexey Kakunin <ak...@gmail.com> wrote:
> > Hello!
> > I'm using Maven 2.0.4 (seems this error repeats with 2.0.5 as well)
> under
> > both - Windows and Linux.
> >
> > I'm trying to redeploy application from maven, for doing it I added
> tomcat
> > plugin ( http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html)
> into
> > project:
> >
> > <plugin>
> > <groupId>org.codehaus.mojo</groupId>
> > <artifactId>tomcat-maven-plugin</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > <configuration>
> > <url>http://myserver.org/manager </url>
> > <server>serverId</server>
> > <path>/App_Test</path>
> > </configuration>
> > </plugin>
> >
> > And configured server in settings.xml.
> >
> > If I'm doing tomcat:deploy - everything is ok - war deployed to the
> server
> > and I can see in the manager logs lines like:
> > INFO: Manager: Uploading WAR.....
> > INFO: Manager: Reloading Web-Application....
> >
> >
> > But if I'm doing tomcat:redeploy - seems no uploading performed :(
> > I only can see
> > INFO: Manager: Reloading Web-Application....
> > and as result I have old version on my server.
> >
> > Does anybody has any suggestion?
> >
> > --
> > With Best Regards,
> > Alexey Kakunin, EmDev Limited
> >
> > Professional Software Development:
> > http://www.emdev.ru
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
With Best Regards,
Alexey Kakunin, EmDev Limited
Professional Software Development:
http://www.emdev.ru
Re: tomcat:redeploy is not really deploy new version
Posted by Wayne Fay <wa...@gmail.com>.
I don't use this plugin myself, but I googled and found this. Perhaps
you're running into the same problem -- Tomcat still has a lock on
some Jar, so undeploy fails, so redeploy fails, but Tomcat doesn't
really report the error properly?
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg159846.html
Also make sure you check JIRA to see if this issue has already been
posted -- if you're lucky, a fix or workaround already exists.
Wayne
On 2/21/07, Alexey Kakunin <ak...@gmail.com> wrote:
> Hello!
> I'm using Maven 2.0.4 (seems this error repeats with 2.0.5 as well) under
> both - Windows and Linux.
>
> I'm trying to redeploy application from maven, for doing it I added tomcat
> plugin (http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html) into
> project:
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>tomcat-maven-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
> <configuration>
> <url>http://myserver.org/manager</url>
> <server>serverId</server>
> <path>/App_Test</path>
> </configuration>
> </plugin>
>
> And configured server in settings.xml.
>
> If I'm doing tomcat:deploy - everything is ok - war deployed to the server
> and I can see in the manager logs lines like:
> INFO: Manager: Uploading WAR.....
> INFO: Manager: Reloading Web-Application....
>
>
> But if I'm doing tomcat:redeploy - seems no uploading performed :(
> I only can see
> INFO: Manager: Reloading Web-Application....
> and as result I have old version on my server.
>
> Does anybody has any suggestion?
>
> --
> With Best Regards,
> Alexey Kakunin, EmDev Limited
>
> Professional Software Development:
> http://www.emdev.ru
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org