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/


[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 
> 08-08-2003 04:32 PM
> Please respond to
> "Maven Users List" <[EMAIL PROTECTED]>
> 
> 
> To
> Maven Users List <[EMAIL PROTECTED]>
> 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
> 
> [EMAIL PROTECTED] wrote:
> 
> > Maybe that is what you are looking for :
> > http://maven.apache.org/reference/plugins/webserver/index.html
> > 
> > Nicolas
> > 
> > 
> > [EMAIL PROTECTED]
> > 08/08/2003 02:58 PM
> > Please respond to "Maven Users List"
> > 
> > 
> >         To:     "Maven Users List" <[EMAIL PROTECTED]>
> >         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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Reply via email to