HI Francois and Ted,
Thanks for your reply.
Your tip is very much helpful. And both of you are right.
Previuosly I executed the Cactus tutorial example (without maven). During
this I added
ServletRedirector mappings in tomcat_home/conf/web.xml. And then I was
trying to excute the sample test using maven-cactus integration.
I guess maven-cactus plug-in try to add this entry, so I was getting the
below mentioned exception.
When I have removed the ServletRedirector mappings from
tomcat_home/conf/web.xml it is working fine.
Thanks and Regards,
Jitesh
----- Original Message -----
From: "Francois Harvey" <[EMAIL PROTECTED]>
To: "Cactus Users List" <cactus-user@jakarta.apache.org>
Sent: Wednesday, June 01, 2005 1:17 PM
Subject: Re: Pb in starting tomcat - maven-cactus-plugin
I agree with the previous poster, the problem seems to be in the web.xml
(web descriptor). From the stack trace,
Caused by: java.lang.IllegalArgumentException: addChild: Child name
'ServletRedirector' is not unique
means that there must be at least two declarations of elements with
references to ServletRedirector. Try removing the appropriate one or show
us the web.xml file, so we can see the problem for ourselves.
Francois Harvey
programmer
www.canlii.org
Kalyani Jitesh wrote:
Hi Ted,
Thank you very much for your clue. I am sorry I am not able to resolve
the issue.
Please find below the content of tomcat4x.out file, your help is
appreciated.
tomcat4x.out file:
...
WebappLoader[/junitbook-servlets-cactus]: Deploy JAR
/WEB-INF/lib/junit-3.8.1.jar to
C:\DOCUME~1\jitesh\LOCALS~1\Temp\cactus\tomcat4x\webapps\junitbook-servlets-cactus\WEB-INF\lib\junit-3.8.1.jar
May 24, 2005 4:15:09 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
....
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.IllegalArgumentException: addChild: Child name
'ServletRedirector' is not unique
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:815)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1341)
... 49 more
ContextConfig[/junitbook-servlets-cactus]: Parse error in application
web.xml
java.lang.IllegalArgumentException: addChild: Child name
'ServletRedirector' is not unique
java.lang.IllegalArgumentException: addChild: Child name
'ServletRedirector' is not unique
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
...
Thanks and Regards,
Jitesh
----- Original Message ----- From: "Anagnost, Ted"
<[EMAIL PROTECTED]>
To: "'Cactus Users List'" <cactus-user@jakarta.apache.org>
Sent: Tuesday, May 24, 2005 11:57 PM
Subject: RE: Pb in starting tomcat - maven-cactus-plugin
Check the contents of \target\test-cactus-reports\tomcat4x.out for
errors
-----Original Message-----
From: Kalyani Jitesh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 2:27 AM
To: cactus-user@jakarta.apache.org
Subject: 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_Se
rvice=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_TE
ST]
test URL yielded a [-1] error code. Please run in debug mode for more
details ab out the error.
Thanks and Regards,
Jitesh
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]