You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Kalyani Jitesh <j-...@kj.cnt.jp.nec.com> on 2005/05/24 09:27:07 UTC

Pb in starting tomcat - maven-cactus-plugin

Hi there,

I am trying to execute the examples in Junit in Action book. To be specific I am trying to execute cactus test with maven in junitbook\servlets.

I executed the cactus test with the maven. I am using following versions of sw.
maven 1.0.2
maven-cactus-plugin-1.7
tomcat4.1.29

I guess Tomcat is not started. Can anybody help me to execute the same?

The am facing the following error,
...
 [cactus] [DEBUG] Checking if server is up ...
 [cactus] [DEBUG] Failed to connect to [http://localhost:8079/junitbook-servlets-cactus/ServletRedirector?Cactus_Service=RUN_TEST] (Connection refused: connect)
....

BUILD FAILED
File...... C:\Documents and Settings\jitesh\.maven\cache\maven-cactus-plugin-1.7
\plugin.jelly
Element... cactus
Line...... 430
Column.... 47
Failed to start the container after more than [180000] ms. Trying to connect to
the [http://localhost:8079/junitbook-servlets-cactus/ServletRedirector?Cactus_Se
rvice=RUN_TEST] test URL yielded a [-1] error code. Please run in debug mode for
 more details about the error.
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [cactus:test]
-- C:\Documents and Settings\jitesh\.maven\cache\maven-cactus-plugin-1.7\plugin.
jelly:430:47: <cactus> Failed to start the container after more than [180000] ms
. Trying to connect to the [http://localhost:8079/junitbook-servlets-cactus/Serv
letRedirector?Cactus_Service=RUN_TEST] test URL yielded a [-1] error code. Pleas
e run in debug mode for more details about the error.
        at com.werken.werkz.Goal.fire(Goal.java:646)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
        at com.werken.werkz.Goal.attain(Goal.java:573)
        at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
671)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
        at org.apache.maven.cli.App.doMain(App.java:488)
        at org.apache.maven.cli.App.main(App.java:1239)
        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:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
org.apache.commons.jelly.JellyTagException: C:\Documents and Settings\jitesh\.ma
ven\cache\maven-cactus-plugin-1.7\plugin.jelly:430:47: <cactus> Failed to start
the container after more than [180000] ms. Trying to connect to the [http://loca
lhost:8079/junitbook-servlets-cactus/ServletRedirector?Cactus_Service=RUN_TEST]
test URL yielded a [-1] error code. Please run in debug mode for more details ab
out the error.


Thanks and Regards,
Jitesh