You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ni...@arsoe-trelaze.com on 2003/08/08 16:21:05 UTC

Réf. : Re: Controlling Tomcat to realodapplication

Maybe that is what you are looking for :
http://maven.apache.org/reference/plugins/webserver/index.html

Nicolas


ddubois@dotbase.com
08/08/2003 02:58 PM
Please respond to "Maven Users List"

 
        To:     "Maven Users List" <us...@maven.apache.org>
        cc: 
        Subject:        Controlling Tomcat to realod application


Hi all,

I would like to know how can I control Tomcat in order to reload a newly 
generated WAR application?

I guess this one has already been posted... But don't find any clues with 
google....

Regards,
D.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Réf. : Re: Controlling Tomcat to realod application

Posted by di...@multitask.com.au.
For the first error, run maven -e tomcat install and post the stack trace.
For the second, fix your xml file, you're missing a xmlns:tomcat="tomcat" 
at the top.
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


ddubois@dotbase.com wrote on 09/08/2003 01:20:49 AM:

> Brian,
> 
> This seems what I need. Actually the webserver plugin do not support 
> Tomcat.. :-(
> 
> However I got the following 2 errors.
> 
> - The first one is when i try to install the application
> - The 2nd is when I setup the maven.xml file as specified in the README 
> file. (Fixed if removed)
> 
> HTH,
> D.
> 
> ========================================================================
> C:\xdubd\dev\eclipse\dotStrutsDemo>maven tomcat:install
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10
> 
> tomcat:init:
> 
> war:init:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to 
C:\xdubd\dev\eclipse\dotStrutsDemo/target/classes
> 
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to 
C:\xdubd\dev\eclipse\dotStrutsDemo/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
> 
> test:test:
> 
> 
> war:webapp:
>     [echo] Assembling webapp dotStrutsDemo
> 
'C:\xdubd\dev\eclipse\dotStrutsDemo/src/webapp/WEB-INF/tomcat-context.xml' 

> does
> not exist
> Installing from 
> 'file://C:\xdubd\dev\eclipse\dotStrutsDemo/target/dotStrutsDemo
> , 'null'
> FAIL - Encountered exception java.net.MalformedURLException: 
> \xdubd\dev\eclipse
> dotStrutsDemo
> [tomcat] FAIL - Encountered exception java.net.MalformedURLException: 
> \xdubd\de
> \eclipse\dotStrutsDemo
> 
> BUILD FAILED
> File...... file:/C:/xdubd/appl/java/maven/plugins/maven-tomcat-plugin/
> Element... catalina:install
> Line...... 84
> Column.... 22
> java.lang.reflect.InvocationTargetException
> Total time:  9 seconds
> ========================================================================
> 
> 
> C:\xdubd\dev\eclipse\dotStrutsDemo>maven tomcat:stop
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10
> 
> Fatal Error [line 5, row 21]: The prefix "tomcat" for element 
> "tomcat:deploy" is
>  not bound.
> An XML error occurred parsing the file 
> 'C:\xdubd\dev\eclipse\dotStrutsDemo\maven
> .xml' plugin
> org.xml.sax.SAXParseException: The prefix "tomcat" for element 
> "tomcat:deploy" i
> s not bound.
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at 
> org.apache.maven.plugin.PluginCacheManager.parse(PluginCacheManager.j
> ava:361)
>         at 
> org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
> ava:467)
>         at 
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 384)
>         at 
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
>         at org.apache.maven.cli.App.doMain(App.java:525)
>         at org.apache.maven.cli.App.main(App.java:1088)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:543)
>         at com.werken.forehead.Forehead.main(Forehead.java:573)
> org.xml.sax.SAXParseException: The prefix "tomcat" for element 
> "tomcat:deploy" i
> s not bound.
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source)
>         at 
> org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:320)
>         at 
> org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:207)
>         at 
> org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:174)
>         at 
> org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:111)
>         at 
> org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
>         at 
> org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
> ava:477)
>         at 
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 384)
>         at 
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
>         at org.apache.maven.cli.App.doMain(App.java:525)
>         at org.apache.maven.cli.App.main(App.java:1088)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:543)
>         at com.werken.forehead.Forehead.main(Forehead.java:573)
> Total time:  4 seconds
> 
> 
> 
> 
> Brian Ewins <Br...@btinternet.com> 
> 08-08-2003 04:32 PM
> Please respond to
> "Maven Users List" <us...@maven.apache.org>
> 
> 
> To
> Maven Users List <us...@maven.apache.org>
> cc
> 
> Subject
> Re: Réf. : Re: Controlling Tomcat to realod application
> 
> 
> 
> 
> 
> 
> Or this:
> http://wiki.codehaus.org/maven/TomcatPlugin
> 
> Unlike the webserver plugin, this deals with indivdual servlet contexts 
> using tomcat's management api.
> 
> A build cycle with an exploded webapp looks like:
> // build and install
> maven tomcat:install
> // rebuild, reload
> maven war:webapp tomcat:reload
> // just reload no rebuild
> maven tomcat:reload
> 
> And for a war file:
> // build and install
> maven tomcat:install-war
> // rebuild, reload
> maven war:war tomcat:remove tomcat:install-war
> // just reload no rebuild
> maven tomcat:reload
> 
> I know in the past people have talked about having this stuff done in a 
> generic way, but it never seemed to happen, so its useful having this 
> thing about.
> 
> -Baz
> 
> Nicolas.CHALUMEAU@arsoe-trelaze.com wrote:
> 
> > Maybe that is what you are looking for :
> > http://maven.apache.org/reference/plugins/webserver/index.html
> > 
> > Nicolas
> > 
> > 
> > ddubois@dotbase.com
> > 08/08/2003 02:58 PM
> > Please respond to "Maven Users List"
> > 
> > 
> >         To:     "Maven Users List" <us...@maven.apache.org>
> >         cc: 
> >         Subject:        Controlling Tomcat to realod application
> > 
> > 
> > Hi all,
> > 
> > I would like to know how can I control Tomcat in order to reload a 
newly 
> 
> > generated WAR application?
> > 
> > I guess this one has already been posted... But don't find any clues 
> with 
> > google....
> > 
> > Regards,
> > D.
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

Re: UPDATE : Controlling Tomcat to realod application

Posted by Brian Ewins <Br...@btinternet.com>.
The reason it doesn't work is pretty straightforward. tomcat:install 
installs an exploded webapp - ie one you have locally, on a local 
server. tomcat:install-war does what you're after, which is to bundle up 
a war and upload it to a remote tomcat. I don't have a win/linux setup 
to test with handy but there's no reason why that shouldn't work.

'file://C:\blah/blah' is a malformed url to a linux box - file urls are 
platform-specific.

In the second example, you've tried to use tomcat:stop or tomcat:deploy 
from your project's own maven.xml, but you've not declared the tomcat 
namespace. You need something like 'xmlns:tomcat="tomcat"' as an 
attribute of 'project' in your maven.xml.

Cheers,
	Baz

ddubois@dotbase.com wrote:

> BTW:
> 
> I develop in a Windows machine but my Tomcat test server runs on a Linux 
> one.
> 
> The plugins works correctly on a Windows/Windows configuration. 
> 
> HTH,
> D.
> 
> 
> 
> 
> 
> ddubois@dotbase.com 
> 08-08-2003 05:20 PM
> Please respond to
> "Maven Users List" <us...@maven.apache.org>
> 
> 
> To
> "Maven Users List" <us...@maven.apache.org>
> cc
> 
> Subject
> Re:  Réf. : Re: Controlling Tomcat to realod application
> 
> 
> 
> 
> 
> 
> Brian,
> 
> This seems what I need. Actually the webserver plugin do not support 
> Tomcat.. :-(
> 
> However I got the following 2 errors.
> 
> - The first one is when i try to install the application
> - The 2nd is when I setup the maven.xml file as specified in the README 
> file. (Fixed if removed)
> 
> HTH,
> D.
> 
> ========================================================================
> C:\xdubd\dev\eclipse\dotStrutsDemo>maven tomcat:install
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10
> 
> tomcat:init:
> 
> war:init:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to C:\xdubd\dev\eclipse\dotStrutsDemo/target/classes
> 
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to C:\xdubd\dev\eclipse\dotStrutsDemo/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
> 
> test:test:
> 
> 
> war:webapp:
>     [echo] Assembling webapp dotStrutsDemo
> 'C:\xdubd\dev\eclipse\dotStrutsDemo/src/webapp/WEB-INF/tomcat-context.xml' 
> 
> does
> not exist
> Installing from 
> 'file://C:\xdubd\dev\eclipse\dotStrutsDemo/target/dotStrutsDemo
> , 'null'
> FAIL - Encountered exception java.net.MalformedURLException: 
> \xdubd\dev\eclipse
> dotStrutsDemo
> [tomcat] FAIL - Encountered exception java.net.MalformedURLException: 
> \xdubd\de
> \eclipse\dotStrutsDemo
> 
> BUILD FAILED
> File...... file:/C:/xdubd/appl/java/maven/plugins/maven-tomcat-plugin/
> Element... catalina:install
> Line...... 84
> Column.... 22
> java.lang.reflect.InvocationTargetException
> Total time:  9 seconds
> ========================================================================
> 
> 
> C:\xdubd\dev\eclipse\dotStrutsDemo>maven tomcat:stop
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10
> 
> Fatal Error [line 5, row 21]: The prefix "tomcat" for element 
> "tomcat:deploy" is
>  not bound.
> An XML error occurred parsing the file 
> 'C:\xdubd\dev\eclipse\dotStrutsDemo\maven
> .xml' plugin
> org.xml.sax.SAXParseException: The prefix "tomcat" for element 
> "tomcat:deploy" i
> s not bound.
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at 
> org.apache.maven.plugin.PluginCacheManager.parse(PluginCacheManager.j
> ava:361)
>         at 
> org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
> ava:467)
>         at 
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 384)
>         at 
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
>         at org.apache.maven.cli.App.doMain(App.java:525)
>         at org.apache.maven.cli.App.main(App.java:1088)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:543)
>         at com.werken.forehead.Forehead.main(Forehead.java:573)
> org.xml.sax.SAXParseException: The prefix "tomcat" for element 
> "tomcat:deploy" i
> s not bound.
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source)
>         at 
> org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:320)
>         at 
> org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:207)
>         at 
> org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:174)
>         at 
> org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:111)
>         at 
> org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
>         at 
> org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
> ava:477)
>         at 
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 384)
>         at 
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
>         at org.apache.maven.cli.App.doMain(App.java:525)
>         at org.apache.maven.cli.App.main(App.java:1088)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.werken.forehead.Forehead.run(Forehead.java:543)
>         at com.werken.forehead.Forehead.main(Forehead.java:573)
> Total time:  4 seconds
> 
> 
> 
> 
> Brian Ewins <Br...@btinternet.com> 
> 08-08-2003 04:32 PM
> Please respond to
> "Maven Users List" <us...@maven.apache.org>
> 
> 
> To
> Maven Users List <us...@maven.apache.org>
> cc
> 
> Subject
> Re: Réf. : Re: Controlling Tomcat to realod application
> 
> 
> 
> 
> 
> 
> Or this:
> http://wiki.codehaus.org/maven/TomcatPlugin
> 
> Unlike the webserver plugin, this deals with indivdual servlet contexts 
> using tomcat's management api.
> 
> A build cycle with an exploded webapp looks like:
> // build and install
> maven tomcat:install
> // rebuild, reload
> maven war:webapp tomcat:reload
> // just reload no rebuild
> maven tomcat:reload
> 
> And for a war file:
> // build and install
> maven tomcat:install-war
> // rebuild, reload
> maven war:war tomcat:remove tomcat:install-war
> // just reload no rebuild
> maven tomcat:reload
> 
> I know in the past people have talked about having this stuff done in a 
> generic way, but it never seemed to happen, so its useful having this 
> thing about.
> 
> -Baz
> 
> Nicolas.CHALUMEAU@arsoe-trelaze.com wrote:
> 
> 
>>Maybe that is what you are looking for :
>>http://maven.apache.org/reference/plugins/webserver/index.html
>>
>>Nicolas
>>
>>
>>ddubois@dotbase.com
>>08/08/2003 02:58 PM
>>Please respond to "Maven Users List"
>>
>>
>>        To:     "Maven Users List" <us...@maven.apache.org>
>>        cc: 
>>        Subject:        Controlling Tomcat to realod application
>>
>>
>>Hi all,
>>
>>I would like to know how can I control Tomcat in order to reload a newly 
> 
> 
> 
>>generated WAR application?
>>
>>I guess this one has already been posted... But don't find any clues 
> 
> with 
> 
>>google....
>>
>>Regards,
>>D.
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: UPDATE : Controlling Tomcat to realod application

Posted by dd...@dotbase.com.
BTW:

I develop in a Windows machine but my Tomcat test server runs on a Linux 
one.

The plugins works correctly on a Windows/Windows configuration. 

HTH,
D.





ddubois@dotbase.com 
08-08-2003 05:20 PM
Please respond to
"Maven Users List" <us...@maven.apache.org>


To
"Maven Users List" <us...@maven.apache.org>
cc

Subject
Re:  Réf. : Re: Controlling Tomcat to realod application






Brian,

This seems what I need. Actually the webserver plugin do not support 
Tomcat.. :-(

However I got the following 2 errors.

- The first one is when i try to install the application
- The 2nd is when I setup the maven.xml file as specified in the README 
file. (Fixed if removed)

HTH,
D.

========================================================================
C:\xdubd\dev\eclipse\dotStrutsDemo>maven tomcat:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10

tomcat:init:

war:init:
java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\xdubd\dev\eclipse\dotStrutsDemo/target/classes

java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\xdubd\dev\eclipse\dotStrutsDemo/target/classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:


war:webapp:
    [echo] Assembling webapp dotStrutsDemo
'C:\xdubd\dev\eclipse\dotStrutsDemo/src/webapp/WEB-INF/tomcat-context.xml' 

does
not exist
Installing from 
'file://C:\xdubd\dev\eclipse\dotStrutsDemo/target/dotStrutsDemo
, 'null'
FAIL - Encountered exception java.net.MalformedURLException: 
\xdubd\dev\eclipse
dotStrutsDemo
[tomcat] FAIL - Encountered exception java.net.MalformedURLException: 
\xdubd\de
\eclipse\dotStrutsDemo

BUILD FAILED
File...... file:/C:/xdubd/appl/java/maven/plugins/maven-tomcat-plugin/
Element... catalina:install
Line...... 84
Column.... 22
java.lang.reflect.InvocationTargetException
Total time:  9 seconds
========================================================================


C:\xdubd\dev\eclipse\dotStrutsDemo>maven tomcat:stop
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10

Fatal Error [line 5, row 21]: The prefix "tomcat" for element 
"tomcat:deploy" is
 not bound.
An XML error occurred parsing the file 
'C:\xdubd\dev\eclipse\dotStrutsDemo\maven
.xml' plugin
org.xml.sax.SAXParseException: The prefix "tomcat" for element 
"tomcat:deploy" i
s not bound.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at 
org.apache.maven.plugin.PluginCacheManager.parse(PluginCacheManager.j
ava:361)
        at 
org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
ava:467)
        at 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
384)
        at 
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)
org.xml.sax.SAXParseException: The prefix "tomcat" for element 
"tomcat:deploy" i
s not bound.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
        at 
org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:320)
        at 
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:207)
        at 
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:174)
        at 
org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:111)
        at 
org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
        at 
org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
ava:477)
        at 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
384)
        at 
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)
Total time:  4 seconds




Brian Ewins <Br...@btinternet.com> 
08-08-2003 04:32 PM
Please respond to
"Maven Users List" <us...@maven.apache.org>


To
Maven Users List <us...@maven.apache.org>
cc

Subject
Re: Réf. : Re: Controlling Tomcat to realod application






Or this:
http://wiki.codehaus.org/maven/TomcatPlugin

Unlike the webserver plugin, this deals with indivdual servlet contexts 
using tomcat's management api.

A build cycle with an exploded webapp looks like:
// build and install
maven tomcat:install
// rebuild, reload
maven war:webapp tomcat:reload
// just reload no rebuild
maven tomcat:reload

And for a war file:
// build and install
maven tomcat:install-war
// rebuild, reload
maven war:war tomcat:remove tomcat:install-war
// just reload no rebuild
maven tomcat:reload

I know in the past people have talked about having this stuff done in a 
generic way, but it never seemed to happen, so its useful having this 
thing about.

-Baz

Nicolas.CHALUMEAU@arsoe-trelaze.com wrote:

> Maybe that is what you are looking for :
> http://maven.apache.org/reference/plugins/webserver/index.html
> 
> Nicolas
> 
> 
> ddubois@dotbase.com
> 08/08/2003 02:58 PM
> Please respond to "Maven Users List"
> 
> 
>         To:     "Maven Users List" <us...@maven.apache.org>
>         cc: 
>         Subject:        Controlling Tomcat to realod application
> 
> 
> Hi all,
> 
> I would like to know how can I control Tomcat in order to reload a newly 


> generated WAR application?
> 
> I guess this one has already been posted... But don't find any clues 
with 
> google....
> 
> Regards,
> D.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




Re: Réf. : Re: Controlling Tomcat to realodapplication

Posted by dd...@dotbase.com.
Brian,

This seems what I need. Actually the webserver plugin do not support 
Tomcat.. :-(

However I got the following 2 errors.

- The first one is when i try to install the application
- The 2nd is when I setup the maven.xml file as specified in the README 
file. (Fixed if removed)

HTH,
D.

========================================================================
C:\xdubd\dev\eclipse\dotStrutsDemo>maven tomcat:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10

tomcat:init:

war:init:
java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\xdubd\dev\eclipse\dotStrutsDemo/target/classes

java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\xdubd\dev\eclipse\dotStrutsDemo/target/classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:


war:webapp:
    [echo] Assembling webapp dotStrutsDemo
'C:\xdubd\dev\eclipse\dotStrutsDemo/src/webapp/WEB-INF/tomcat-context.xml' 
does
not exist
Installing from 
'file://C:\xdubd\dev\eclipse\dotStrutsDemo/target/dotStrutsDemo
, 'null'
FAIL - Encountered exception java.net.MalformedURLException: 
\xdubd\dev\eclipse
dotStrutsDemo
[tomcat] FAIL - Encountered exception java.net.MalformedURLException: 
\xdubd\de
\eclipse\dotStrutsDemo

BUILD FAILED
File...... file:/C:/xdubd/appl/java/maven/plugins/maven-tomcat-plugin/
Element... catalina:install
Line...... 84
Column.... 22
java.lang.reflect.InvocationTargetException
Total time:  9 seconds
========================================================================


C:\xdubd\dev\eclipse\dotStrutsDemo>maven tomcat:stop
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-10

Fatal Error [line 5, row 21]: The prefix "tomcat" for element 
"tomcat:deploy" is
 not bound.
An XML error occurred parsing the file 
'C:\xdubd\dev\eclipse\dotStrutsDemo\maven
.xml' plugin
org.xml.sax.SAXParseException: The prefix "tomcat" for element 
"tomcat:deploy" i
s not bound.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at 
org.apache.maven.plugin.PluginCacheManager.parse(PluginCacheManager.j
ava:361)
        at 
org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
ava:467)
        at 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
384)
        at 
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)
org.xml.sax.SAXParseException: The prefix "tomcat" for element 
"tomcat:deploy" i
s not bound.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
        at 
org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:320)
        at 
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:207)
        at 
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:174)
        at 
org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:111)
        at 
org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
        at 
org.apache.maven.plugin.PluginManager.loadJellyScript(PluginManager.j
ava:477)
        at 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
384)
        at 
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)
Total time:  4 seconds




Brian Ewins <Br...@btinternet.com> 
08-08-2003 04:32 PM
Please respond to
"Maven Users List" <us...@maven.apache.org>


To
Maven Users List <us...@maven.apache.org>
cc

Subject
Re: Réf. : Re: Controlling Tomcat to realod application






Or this:
http://wiki.codehaus.org/maven/TomcatPlugin

Unlike the webserver plugin, this deals with indivdual servlet contexts 
using tomcat's management api.

A build cycle with an exploded webapp looks like:
// build and install
maven tomcat:install
// rebuild, reload
maven war:webapp tomcat:reload
// just reload no rebuild
maven tomcat:reload

And for a war file:
// build and install
maven tomcat:install-war
// rebuild, reload
maven war:war tomcat:remove tomcat:install-war
// just reload no rebuild
maven tomcat:reload

I know in the past people have talked about having this stuff done in a 
generic way, but it never seemed to happen, so its useful having this 
thing about.

-Baz

Nicolas.CHALUMEAU@arsoe-trelaze.com wrote:

> Maybe that is what you are looking for :
> http://maven.apache.org/reference/plugins/webserver/index.html
> 
> Nicolas
> 
> 
> ddubois@dotbase.com
> 08/08/2003 02:58 PM
> Please respond to "Maven Users List"
> 
> 
>         To:     "Maven Users List" <us...@maven.apache.org>
>         cc: 
>         Subject:        Controlling Tomcat to realod application
> 
> 
> Hi all,
> 
> I would like to know how can I control Tomcat in order to reload a newly 

> generated WAR application?
> 
> I guess this one has already been posted... But don't find any clues 
with 
> google....
> 
> Regards,
> D.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



Re: Réf. : Re: Controlling Tomcat to realod application

Posted by Brian Ewins <Br...@btinternet.com>.
Or this:
http://wiki.codehaus.org/maven/TomcatPlugin

Unlike the webserver plugin, this deals with indivdual servlet contexts 
using tomcat's management api.

A build cycle with an exploded webapp looks like:
// build and install
maven tomcat:install
// rebuild, reload
maven war:webapp tomcat:reload
// just reload no rebuild
maven tomcat:reload

And for a war file:
// build and install
maven tomcat:install-war
// rebuild, reload
maven war:war tomcat:remove tomcat:install-war
// just reload no rebuild
maven tomcat:reload

I know in the past people have talked about having this stuff done in a 
generic way, but it never seemed to happen, so its useful having this 
thing about.

-Baz

Nicolas.CHALUMEAU@arsoe-trelaze.com wrote:

> Maybe that is what you are looking for :
> http://maven.apache.org/reference/plugins/webserver/index.html
> 
> Nicolas
> 
> 
> ddubois@dotbase.com
> 08/08/2003 02:58 PM
> Please respond to "Maven Users List"
> 
>  
>         To:     "Maven Users List" <us...@maven.apache.org>
>         cc: 
>         Subject:        Controlling Tomcat to realod application
> 
> 
> Hi all,
> 
> I would like to know how can I control Tomcat in order to reload a newly 
> generated WAR application?
> 
> I guess this one has already been posted... But don't find any clues with 
> google....
> 
> Regards,
> D.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Réf. : Re: Controlling Tomcat to realodapplication

Posted by dd...@dotbase.com.
Huuu.... 
Do you have some samples? 

Thx






Nicolas.CHALUMEAU@arsoe-trelaze.com 
08-08-2003 04:21 PM
Please respond to
"Maven Users List" <us...@maven.apache.org>


To
"Maven Users List" <us...@maven.apache.org>
cc

Subject
Réf. : Re: Controlling Tomcat to realod application






Maybe that is what you are looking for :
http://maven.apache.org/reference/plugins/webserver/index.html

Nicolas


ddubois@dotbase.com
08/08/2003 02:58 PM
Please respond to "Maven Users List"

 
        To:     "Maven Users List" <us...@maven.apache.org>
        cc: 
        Subject:        Controlling Tomcat to realod application


Hi all,

I would like to know how can I control Tomcat in order to reload a newly 
generated WAR application?

I guess this one has already been posted... But don't find any clues with 
google....

Regards,
D.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org