ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Getting "Exception invoking method check"
Date Fri, 01 Aug 2008 09:23:42 GMT
fphan wrote:
> What does this error mean?
> 
> Here's the target:
> 118:    <target name="deploy" description="Deploy web application">
> 119:        <echo message="${webapp.path}.war"/>
> 120:        <deploy url="${url}" username="${username}"
> password="${password}"
> 121:                path="/${name}" war="${webapp.path}.war" update="true"/>
> 122:    </target>
> 
> 

Looks like something happening in tomcat; its their stack trace.

Personally, I've found the tomcat <deploy> tasks fairly tricky to keep 
alive. I prefer to use deploy-by-copy, and just <copy> the WAR file 
straight into the tomcat/webapps directory

* it avoids you having to turn on the public management API
* it works reliably


> Here's the verbose output:
> 
> /home/yagnika/svn/offline/buildtools/apache-tomcat-5.5.16-deployer/build.xml:121:
> FAIL - Encountered exception javax.management.RuntimeOperationsException:
> Exception invoking method check
>         at
> org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:261)
>         at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:200)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: FAIL - Encountered exception
> javax.management.RuntimeOperationsException: Exception invoking method check
>         at
> org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:257)
>         ... 13 more
> --- Nested Exception ---
> FAIL - Encountered exception javax.management.RuntimeOperationsException:
> Exception invoking method check
>         at
> org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:257)
>         at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:200)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> 


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message