Apache

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Cactus-Ant Integration: Context startup failed due to "Error filterStart"

    10 answers - 4743 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    I am trying to automate in-container testing using ant intgeration with
    Cactus. My application (sym.war) worked fine before cactifying. When I run
    build it cactifies and during testing it hangs to open tomcat and I get
    error message:
    Here is a copy of the output file:
    Jul 12, 2006 12:10:33 AM init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM
    install
    INF: Installing web application at context path /sym-cactified from URL
    Jul 12, 2006 12:12:05 AM start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms
    Could it caused by the "FilterRedirector", which is the only new filter
    added to the web.xml of cactified war file?
    Here is part of my build.xml file:
    <target name="test.prepare" depends="war, compile.cactustest">
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>
    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>
    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed" haltonerror="false">
    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>
    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>
    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>
    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>
    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5
    Thank you for your help!
    Express yourself instantly with MSN Messenger! Download today - it's FREE!
    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
  • No.1 | | 5070 bytes | |

    Hi

    I am trying the same to execute testcases in cactus by integrating with ant.
    I could cactify successfully but it doesnt execute the testcases - i get
    this error "Failed to parse deployment descriptor" - could you please let me
    know how i should resolve this issue?

    Regards,
    TY

    yanping li wrote:

    Hi,

    I am trying to automate in-container testing using ant intgeration with
    Cactus. My application (sym.war) worked fine before cactifying. When I run
    build it cactifies and during testing it hangs to open tomcat and I get
    error message:

    Here is a copy of the output file:

    Jul 12, 2006 12:10:33 AM init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM
    install
    INF: Installing web application at context path /sym-cactified from URL

    Jul 12, 2006 12:12:05 AM start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms

    Could it caused by the "FilterRedirector", which is the only new filter
    added to the web.xml of cactified war file?

    Here is part of my build.xml file:

    <target name="test.prepare" depends="war, compile.cactustest">

    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>

    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>

    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed" haltonerror="false">

    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>

    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>

    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>

    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5

    Thank you for your help!

    Express yourself instantly with MSN Messenger! Download today - it's FREE!

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
  • No.2 | | 6835 bytes | |

    Hi !

    Try to create a new web.xml file, and cut/paste the content of your actual.

    Sometimes I've got problems with that, there are errors in XML files, but
    when you open, there are no errors !!!

    Regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 9:20 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    filterStart"

    Hi

    I am trying the same to execute testcases in cactus by integrating with
    ant.
    I could cactify successfully but it doesnt execute the testcases - i get
    this error "Failed to parse deployment descriptor" - could you please let
    me
    know how i should resolve this issue?

    Regards,
    TY
    >
    >
    >

    yanping li wrote:
    >>

    >Hi,
    >>

    >I am trying to automate in-container testing using ant intgeration with
    >Cactus. My application (sym.war) worked fine before cactifying. When I
    >run
    >build it cactifies and during testing it hangs to open tomcat and I get
    >error message:
    >
    >>

    >Here is a copy of the output file:
    >>

    >Jul 12, 2006 12:10:33 AM init
    >INF: Initializing Coyote HTTP/1.1 on http-80
    >Jul 12, 2006 12:10:33 AM load
    >INF: Initialization processed in 5157 ms
    >Jul 12, 2006 12:10:34 AM start
    >INF: Starting service Catalina
    >Jul 12, 2006 12:10:34 AM start
    >INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    >Jul 12, 2006 12:10:34 AM start
    >INF: XML validation disabled
    >Jul 12, 2006 12:10:34 AM
    >getDeployer
    >INF: Create Host deployer for direct deployment ( non-jmx )
    >Jul 12, 2006 12:11:59 AM
    >install
    >INF: Installing web application at context path /sym-cactified from URL
    >
    >Jul 12, 2006 12:12:05 AM start
    >SEVERE: Error filterStart
    >Jul 12, 2006 12:12:05 AM start
    >SEVERE: Context startup failed due to previous errors
    >Jul 12, 2006 12:12:05 AM start
    >INF: Starting Coyote HTTP/1.1 on http-80
    >Jul 12, 2006 12:12:07 AM init
    >INF: JK2: ajp13 listening on /0.0.0.0:8009
    >Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    >INF: Jk running ID=0 time=0/1252 config=null
    >Jul 12, 2006 12:12:07 AM start
    >INF: Server startup in 93635 ms
    >>

    >Could it caused by the "FilterRedirector", which is the only new filter
    >added to the web.xml of cactified war file?
    >>

    >Here is part of my build.xml file:
    >>

    ><target name="test.prepare" depends="war, compile.cactustest">
    >>

    ><taskdef resource="cactus.tasks">
    ><classpath>
    ><path refid="cactus.classpath" />
    ></classpath>
    ></taskdef>
    ><!-- Cactify the web-app archive
    ><cactifywar srcfile="${target}/sym.war"
    >destfile="${target}/sym-cactified.war" >
    ><classes dir="${target.classes.cactus}"/>
    ></cactifywar>
    >>

    ><!-- Prepare the directories for the JUnit reports
    ><mkdir dir="${target.testreports}"/>
    ></target>
    >>

    ><target name="test"
    >description="Run the tests on the defined containers" >
    ><taskdef resource="cactus.tasks">
    ><classpath>
    ><path refid="cactus.classpath" />
    ></classpath>
    ></taskdef>
    ><!-- Run the tests
    ><cactus warfile="${target}/sym-cactified.war"
    >fork="yes" failureproperty="tests.failed" haltonerror="false">
    >>

    ><classpath>
    ><pathelement location="${webapp.lib}/cactus-ant.jar" />
    ><pathelement location="${webapp.lib}/junit-3.8.jar" />
    ><pathelement location="${webapp.lib}/ant-junit.jar" />
    ><pathelement location="${webapp.lib}/cactus.jar" />
    ><pathelement location="${webapp.lib}/cargo-0.5.jar" />
    ><pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    ><pathelement location="${webapp.lib}/commons-logging.jar" />
    ><pathelement location="${webapp.lib}/aspectjrt.jar" />
    ><pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    ><pathelement location="${webapp.lib}/httpunit.jar" />
    ><pathelement location="${target.classes.java}" />
    ><pathelement location="${target.classes.cactus}" />
    ></classpath>
    >>

    ><containerset>
    ><tomcat5x dir="${tomcat.home}" port="80"
    >output="${target.testreports}/tomcat5x.txt"
    >todir="${target.testreports}/tomcat5x"
    >serverxml="${tomcat.home}/conf/server.xml"
    >tmpdir = "${container.temp}" >
    ><conf dir="${tomcat.home}/conf" includes="sym.xml" />
    ></tomcat5x>
    ></containerset>
    >>

    ><formatter type="xml" usefile="true"/>
    ><batchtest>
    ><fileset dir="${src.cactus.dir}">
    ><include name="**/Test*.java"/>
    ><exclude name="**/Test*All.java"/>
    ></fileset>
    ></batchtest>
    ></cactus>
    >>

    ><!-- Generate the JUnit Reports
    ><mkdir dir="${target.report}/html" />
    ><junitreport todir="${target.testreports}">
    ><fileset dir="${target.testreports}" includes="TESTxml"/>
    ><report todir="${target.testreports}/html" format="frames"/>
    ></junitreport>
    ></target>
    >>

    >I am using
    >ANT: apache-ant-1.6.5
    >JAVA: jdk1.5.0_06
    >CACTUS : jakarta-cactus-13-1.7.2
    >TMCAT: jakarta-tomcat 5.5
    >>
    >>

    >Thank you for your help!
    >>

    >
    >Express yourself instantly with MSN Messenger! Download today - it's
    >FREE!
    >
    >>
    >>

    >
    >To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    >>
    >>
    >>

    >
  • No.3 | | 8021 bytes | |

    Hi

    I resolved that error - but now the ant script executes my cactus target
    without displaying anything in the log - but doesnt fail - I dont know what
    the problem is - it jst executes successfully - without executing the tests
    or displaying logs.

    This is my cactus target code
    <!-- Run the tests
    <cactus warfile="Cactus_ver_0_7_14_0.war"
    fork="yes"
    failureproperty="tests.failed"
    haltonerror="true">
    <classpath>
    <pathelement location="/"/>
    <pathelement location="/"/>
    <pathelement location="/"/>
    <pathelement location="/"/>
    <pathelement location="/"/>
    <pathelement location="/home/IAFUser/lib/ant-junit.jar"/>
    </classpath>

    <containerset timeout="300000"
    <tomcat5x if="/usr/share/tomcat55"
    dir="/usr/share/tomcat55"
    port="8080" /
    </containerset>

    <formatter type="brief" usefile="false"/>
    <formatter type="xml"/>

    <batchtest todir="results"
    <fileset dir="${dirs.working}/testcom/inteq/test/integration"
    <include name="testcases/**/Test*.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <fail if="tests.failed">Cactus JUnit test failures</fail>

    Any idea why this is happening - I dont know why its not executing the tests
    or giving some error.

    Regards

    Guillaume BIET wrote:

    Hi !

    Try to create a new web.xml file, and cut/paste the content of your
    actual.

    Sometimes I've got problems with that, there are errors in XML files, but
    when you open, there are no errors !!!

    Regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 9:20 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    filterStart"


    >>

    >Hi
    >>

    >I am trying the same to execute testcases in cactus by integrating with
    >ant.
    >I could cactify successfully but it doesnt execute the testcases - i get
    >this error "Failed to parse deployment descriptor" - could you please let
    >me
    >know how i should resolve this issue?
    >>

    >Regards,
    >TY
    >>
    >>
    >>

    >yanping li wrote:


    Hi,

    I am trying to automate in-container testing using ant intgeration with
    Cactus. My application (sym.war) worked fine before cactifying. When I
    run
    build it cactifies and during testing it hangs to open tomcat and I get
    error message:

    Here is a copy of the output file:

    Jul 12, 2006 12:10:33 AM init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM
    getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM
    install
    INF: Installing web application at context path /sym-cactified from URL

    Jul 12, 2006 12:12:05 AM start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms

    Could it caused by the "FilterRedirector", which is the only new filter
    added to the web.xml of cactified war file?

    Here is part of my build.xml file:

    <target name="test.prepare" depends="war, compile.cactustest">

    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>

    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>

    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed" haltonerror="false">

    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>

    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>

    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>

    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5

    Thank you for your help!

    Express yourself instantly with MSN Messenger! Download today - it's
    FREE!

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org


    >>

    >--
    >View this message in context:
    >%%22Error-filterStart%22-tf1940800.html#a10011343
    >Sent from the Cactus - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    >


    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
  • No.4 | | 6938 bytes | |

    Hi

    This is the error I get when I try to execute the cactus tests

    Failed to start the container after more than [180000] ms. Trying to connect
    to the
    []
    test URL yielded a [-1] error code. Please run in debug mode for more
    details about the error.

    Any idea why this is occurring?

    Regards,
    TY

    Guillaume BIET wrote:

    Hi !

    Try to create a new web.xml file, and cut/paste the content of your
    actual.

    Sometimes I've got problems with that, there are errors in XML files, but
    when you open, there are no errors !!!

    Regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 9:20 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    filterStart"


    >>

    >Hi
    >>

    >I am trying the same to execute testcases in cactus by integrating with
    >ant.
    >I could cactify successfully but it doesnt execute the testcases - i get
    >this error "Failed to parse deployment descriptor" - could you please let
    >me
    >know how i should resolve this issue?
    >>

    >Regards,
    >TY
    >>
    >>
    >>

    >yanping li wrote:


    Hi,

    I am trying to automate in-container testing using ant intgeration with
    Cactus. My application (sym.war) worked fine before cactifying. When I
    run
    build it cactifies and during testing it hangs to open tomcat and I get
    error message:

    Here is a copy of the output file:

    Jul 12, 2006 12:10:33 AM init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM
    getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM
    install
    INF: Installing web application at context path /sym-cactified from URL

    Jul 12, 2006 12:12:05 AM start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms

    Could it caused by the "FilterRedirector", which is the only new filter
    added to the web.xml of cactified war file?

    Here is part of my build.xml file:

    <target name="test.prepare" depends="war, compile.cactustest">

    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>

    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>

    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed" haltonerror="false">

    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>

    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>

    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>

    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5

    Thank you for your help!

    Express yourself instantly with MSN Messenger! Download today - it's
    FREE!

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org


    >>

    >--
    >View this message in context:
    >%%22Error-filterStart%22-tf1940800.html#a10011343
    >Sent from the Cactus - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    >


    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
  • No.5 | | 7581 bytes | |

    hi!

    What does your tomcat log say ?

    is your tomcat up ? Did you tried a "generic" container ? For example, I use
    jboss 4.04.AG, and I must use a generic container. And I must start server
    manually.

    regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 11:55 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    filterStart"

    Hi

    This is the error I get when I try to execute the cactus tests

    Failed to start the container after more than [180000] ms. Trying to
    connect
    to the
    []
    test URL yielded a [-1] error code. Please run in debug mode for more
    details about the error.

    Any idea why this is occurring?

    Regards,
    TY
    --
    Guillaume BIET wrote:
    >>

    >Hi !
    >>

    >Try to create a new web.xml file, and cut/paste the content of your
    >actual.
    >>

    >Sometimes I've got problems with that, there are errors in XML files, but
    >when you open, there are no errors !!!
    >>

    >Regards,
    >>
    >>
    >>

    >Message
    >From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    >To: <cactus-user (AT) jakarta (DOT) apache.org>
    >Sent: Monday, April 16, 2007 9:20 AM
    >Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    >filterStart"
    >>
    >>


    Hi

    I am trying the same to execute testcases in cactus by integrating with
    ant.
    I could cactify successfully but it doesnt execute the testcases - i get
    this error "Failed to parse deployment descriptor" - could you please
    let
    me
    know how i should resolve this issue?

    Regards,
    TY

    yanping li wrote:

    Hi,

    I am trying to automate in-container testing using ant intgeration with
    Cactus. My application (sym.war) worked fine before cactifying. When I
    run
    build it cactifies and during testing it hangs to open tomcat and I get
    error message:

    Here is a copy of the output file:

    Jul 12, 2006 12:10:33 AM init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM
    getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM
    install
    INF: Installing web application at context path /sym-cactified from
    URL

    Jul 12, 2006 12:12:05 AM start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms

    Could it caused by the "FilterRedirector", which is the only new filter
    added to the web.xml of cactified war file?

    Here is part of my build.xml file:

    <target name="test.prepare" depends="war, compile.cactustest">

    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>

    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>

    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed" haltonerror="false">

    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>

    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>

    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>

    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5

    Thank you for your help!

    Express yourself instantly with MSN Messenger! Download today - it's
    FREE!

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    --
    View this message in context:
    %%22Error-filterStart%22-tf1940800.html#a10011343
    Sent from the Cactus - User mailing list archive at Nabble.com.

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    >>
    >>

    >
    >To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    >>
    >>
    >>

    >
  • No.6 | | 8821 bytes | |

    I am using tomcat 5.5.9 - does my application need to be up and running and
    then i test the testcases? How can I specify the exact test suite to call to
    execute the tests? When i did it manually I used this link in the browser

    how do i do the same using the <cactustask? When i cactified the war it
    jst added ServletRedirector and JspRedirector to my web.xml not
    ServletTestRunner. Could you pls let me know how to execute my cactus tests
    somewhat similar to the calling of the url as specified above?

    Also what is the reason for the
    " Failed to start the container after more than [180000] ms. Trying to
    connect" message?

    Regards,
    TY

    Guillaume BIET wrote:

    hi!

    What does your tomcat log say ?

    is your tomcat up ? Did you tried a "generic" container ? For example, I
    use
    jboss 4.04.AG, and I must use a generic container. And I must start server
    manually.

    regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 11:55 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    filterStart"


    >>

    >Hi
    >>

    >This is the error I get when I try to execute the cactus tests
    >>

    >Failed to start the container after more than [180000] ms. Trying to
    >connect
    >to the
    >[]
    >test URL yielded a [-1] error code. Please run in debug mode for more
    >details about the error.
    >>

    >Any idea why this is occurring?
    >>

    >Regards,
    >TY
    >>
    >>

    >Guillaume BIET wrote:


    Hi !

    Try to create a new web.xml file, and cut/paste the content of your
    actual.

    Sometimes I've got problems with that, there are errors in XML files,
    but
    when you open, there are no errors !!!

    Regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 9:20 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to
    "Error
    filterStart"

    Hi

    I am trying the same to execute testcases in cactus by integrating with
    ant.
    I could cactify successfully but it doesnt execute the testcases - i
    get
    this error "Failed to parse deployment descriptor" - could you please
    let
    me
    know how i should resolve this issue?

    Regards,
    TY

    yanping li wrote:

    Hi,

    I am trying to automate in-container testing using ant intgeration
    with
    Cactus. My application (sym.war) worked fine before cactifying. When I
    run
    build it cactifies and during testing it hangs to open tomcat and I
    get
    error message:

    Here is a copy of the output file:

    Jul 12, 2006 12:10:33 AM init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM
    start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM
    getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM
    install
    INF: Installing web application at context path /sym-cactified from
    URL

    Jul 12, 2006 12:12:05 AM
    start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM
    start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms

    Could it caused by the "FilterRedirector", which is the only new
    filter
    added to the web.xml of cactified war file?

    Here is part of my build.xml file:

    <target name="test.prepare" depends="war, compile.cactustest">

    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>

    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>

    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed" haltonerror="false">

    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>

    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>

    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>

    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5

    Thank you for your help!

    Express yourself instantly with MSN Messenger! Download today - it's
    FREE!

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    --
    View this message in context:
    %%22Error-filterStart%22-tf1940800.html#a10011343
    Sent from the Cactus - User mailing list archive at Nabble.com.

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org


    >>

    >--
    >View this message in context:
    >%%22Error-filterStart%22-tf1940800.html#a10013197
    >Sent from the Cactus - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    >


    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
  • No.7 | | 9988 bytes | |

    Cactus run integration test "in container". So your application needs to be
    started. Automaticaly or manualy. Check the cactus doc about automatic
    launching, i'm not sure about that.
    A good practice is to start your app server as a service in windows.

    The best way to run your tests is the <cactustask. Be carrefull on the
    server's URL your specifying, specially if your server has the binding
    features on.

    Check the doc for the cactus task, it's very simple.

    The reason for the timeout is that cactus fail to connect to your EJB. Many
    reason : binding, port number, server status. Check your server log, perhaps
    it doesn't start for any reason

    If someone here has more ideas ?

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 3:12 PM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    filterStart"

    I am using tomcat 5.5.9 - does my application need to be up and running
    and
    then i test the testcases? How can I specify the exact test suite to call
    to
    execute the tests? When i did it manually I used this link in the browser

    how do i do the same using the <cactustask? When i cactified the war it
    jst added ServletRedirector and JspRedirector to my web.xml not
    ServletTestRunner. Could you pls let me know how to execute my cactus
    tests
    somewhat similar to the calling of the url as specified above?

    Also what is the reason for the
    " Failed to start the container after more than [180000] ms. Trying to
    connect" message?

    Regards,
    TY
    >
    >
    >
    >

    Guillaume BIET wrote:
    >>

    >hi!
    >>

    >What does your tomcat log say ?
    >>

    >is your tomcat up ? Did you tried a "generic" container ? For example, I
    >use
    >jboss 4.04.AG, and I must use a generic container. And I must start
    >server
    >manually.
    >>

    >regards,
    >>
    >>

    >Message
    >From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    >To: <cactus-user (AT) jakarta (DOT) apache.org>
    >Sent: Monday, April 16, 2007 11:55 AM
    >Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    >filterStart"
    >>
    >>


    Hi

    This is the error I get when I try to execute the cactus tests

    Failed to start the container after more than [180000] ms. Trying to
    connect
    to the
    []
    test URL yielded a [-1] error code. Please run in debug mode for more
    details about the error.

    Any idea why this is occurring?

    Regards,
    TY

    Guillaume BIET wrote:

    Hi !

    Try to create a new web.xml file, and cut/paste the content of your
    actual.

    Sometimes I've got problems with that, there are errors in XML files,
    but
    when you open, there are no errors !!!

    Regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 9:20 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to
    "Error
    filterStart"

    Hi

    I am trying the same to execute testcases in cactus by integrating
    with
    ant.
    I could cactify successfully but it doesnt execute the testcases - i
    get
    this error "Failed to parse deployment descriptor" - could you please
    let
    me
    know how i should resolve this issue?

    Regards,
    TY

    yanping li wrote:

    Hi,

    I am trying to automate in-container testing using ant intgeration
    with
    Cactus. My application (sym.war) worked fine before cactifying. When
    I
    run
    build it cactifies and during testing it hangs to open tomcat and I
    get
    error message:

    Here is a copy of the output file:

    Jul 12, 2006 12:10:33 AM init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM
    start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM
    start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM
    getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM

    install
    INF: Installing web application at context path /sym-cactified from
    URL

    Jul 12, 2006 12:12:05 AM
    start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM
    start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM
    start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms

    Could it caused by the "FilterRedirector", which is the only new
    filter
    added to the web.xml of cactified war file?

    Here is part of my build.xml file:

    <target name="test.prepare" depends="war, compile.cactustest">

    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>

    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>

    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed"
    haltonerror="false">

    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>

    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>

    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>

    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5

    Thank you for your help!

    Express yourself instantly with MSN Messenger! Download today - it's
    FREE!

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    --
    View this message in context:
    %%22Error-filterStart%22-tf1940800.html#a10011343
    Sent from the Cactus - User mailing list archive at Nabble.com.

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    --
    View this message in context:
    %%22Error-filterStart%22-tf1940800.html#a10013197
    Sent from the Cactus - User mailing list archive at Nabble.com.

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    >>
    >>

    >
    >To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    >>
    >>
    >>

    >
  • No.8 | | 10778 bytes | |

    Hi

    how do i get rid of the "Failed to connect to " error? Its trying to
    connect to http://localhost:8080/Abc - how can i ask cactus to set it to a
    servername like http://black1:8080/Abc?

    I am stuck with this problem and dunno how to proceed.

    Regards,
    TY

    Guillaume BIET wrote:

    Cactus run integration test "in container". So your application needs to
    be
    started. Automaticaly or manualy. Check the cactus doc about automatic
    launching, i'm not sure about that.
    A good practice is to start your app server as a service in windows.

    The best way to run your tests is the <cactustask. Be carrefull on the
    server's URL your specifying, specially if your server has the binding
    features on.

    Check the doc for the cactus task, it's very simple.

    The reason for the timeout is that cactus fail to connect to your EJB.
    Many
    reason : binding, port number, server status. Check your server log,
    perhaps
    it doesn't start for any reason

    If someone here has more ideas ?

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 3:12 PM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to "Error
    filterStart"


    >>

    >I am using tomcat 5.5.9 - does my application need to be up and running
    >and
    >then i test the testcases? How can I specify the exact test suite to call
    >to
    >execute the tests? When i did it manually I used this link in the browser
    >
    >>

    >how do i do the same using the <cactustask? When i cactified the war it
    >jst added ServletRedirector and JspRedirector to my web.xml not
    >ServletTestRunner. Could you pls let me know how to execute my cactus
    >tests
    >somewhat similar to the calling of the url as specified above?
    >>

    >Also what is the reason for the
    >" Failed to start the container after more than [180000] ms. Trying to
    >connect" message?
    >>

    >Regards,
    >TY
    >>
    >>
    >>
    >>

    >Guillaume BIET wrote:


    hi!

    What does your tomcat log say ?

    is your tomcat up ? Did you tried a "generic" container ? For example, I
    use
    jboss 4.04.AG, and I must use a generic container. And I must start
    server
    manually.

    regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 11:55 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to
    "Error
    filterStart"

    Hi

    This is the error I get when I try to execute the cactus tests

    Failed to start the container after more than [180000] ms. Trying to
    connect
    to the
    []
    test URL yielded a [-1] error code. Please run in debug mode for more
    details about the error.

    Any idea why this is occurring?

    Regards,
    TY

    Guillaume BIET wrote:

    Hi !

    Try to create a new web.xml file, and cut/paste the content of your
    actual.

    Sometimes I've got problems with that, there are errors in XML files,
    but
    when you open, there are no errors !!!

    Regards,

    Message
    From: "Tejaswini Yardi" <tejaswini.yardi (AT) gmail (DOT) com>
    To: <cactus-user (AT) jakarta (DOT) apache.org>
    Sent: Monday, April 16, 2007 9:20 AM
    Subject: Re: Cactus-Ant Integration: Context startup failed due to
    "Error
    filterStart"

    Hi

    I am trying the same to execute testcases in cactus by integrating
    with
    ant.
    I could cactify successfully but it doesnt execute the testcases - i
    get
    this error "Failed to parse deployment descriptor" - could you please
    let
    me
    know how i should resolve this issue?

    Regards,
    TY

    yanping li wrote:

    Hi,

    I am trying to automate in-container testing using ant intgeration
    with
    Cactus. My application (sym.war) worked fine before cactifying. When
    I
    run
    build it cactifies and during testing it hangs to open tomcat and I
    get
    error message:

    Here is a copy of the output file:

    Jul 12, 2006 12:10:33 AM
    init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM
    start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM
    start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM
    getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM

    install
    INF: Installing web application at context path /sym-cactified from
    URL

    Jul 12, 2006 12:12:05 AM
    start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM
    start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM
    start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms

    Could it caused by the "FilterRedirector", which is the only new
    filter
    added to the web.xml of cactified war file?

    Here is part of my build.xml file:

    <target name="test.prepare" depends="war, compile.cactustest">

    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>

    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>

    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed"
    haltonerror="false">

    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar"
    />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>

    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>

    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>

    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5

    Thank you for your help!

    Express yourself instantly with MSN Messenger! Download today - it's
    FREE!

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    --
    View this message in context:
    %%22Error-filterStart%22-tf1940800.html#a10011343
    Sent from the Cactus - User mailing list archive at Nabble.com.

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    --
    View this message in context:
    %%22Error-filterStart%22-tf1940800.html#a10013197
    Sent from the Cactus - User mailing list archive at Nabble.com.

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org


    >>

    >--
    >View this message in context:
    >%%22Error-filterStart%22-tf1940800.html#a10015795
    >Sent from the Cactus - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    >


    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
  • No.9 | | 6874 bytes | |

    Hi

    I am facing a weird problem now - I could resolve the previous errors I
    got. Now when i execute my testcase files from ant using <cactustask, it
    throws the NullPointerException when trying to execute the testXXX()
    methods. I have no clue as to why this is happening. It executes my
    beginXXX() and endXXX() methods successfully but fails to execute the
    testXXX() method. Can you please let me know why this is happening and how
    to resolve this issue?

    Is there something I am missing due to which its not being able to execute
    test methods on the server?

    This is the exact exception I get :

    Testcase:
    ():
    Caused an ERRR
    [cactus] null
    [cactus] java.lang.NullPointerException
    [cactus] at
    (XMLDataHelper.java:337)
    [cactus] at
    (XMLDataHelper.java:231)
    [cactus] at
    (IFServletTestCase.java:154)
    [cactus] at
    ()
    [cactus] at
    ()
    [cactus] at
    (AbstractWebTestCaller.java:119)
    [cactus] at
    ()
    [cactus] at
    $advice()
    [cactus] at
    (AbstractWebTestController.java)
    [cactus] at
    (ServletTestRedirector.java:101)
    [cactus] at
    $advice(ServletTestRedirector.java:217)
    [cactus] at
    (ServletTestRedirector.java)
    [cactus] at
    (ServletTestRedirector.java:72)
    [cactus] at
    $advice(ServletTestRedirector.java:217)
    [cactus] at
    (ServletTestRedirector.java)
    [cactus] at
    (HttpServlet.java:689)
    [cactus] at
    (HttpServlet.java:802)
    [cactus] at
    ()
    [cactus] at
    ()
    [cactus] at
    (StandardWrapperValve.java:213)
    [cactus] at
    (StandardContextValve.java:178)
    [cactus] at
    (StandardHostValve.java:126)
    [cactus] at
    (ErrorReportValve.java:105)
    [cactus] at
    (StandardEngineValve.java:107)
    [cactus] at
    (CoyoteAdapter.java:148)
    [cactus] at
    (Http11Processor.java:856)
    [cactus] at
    $(Http11Protocol.java:744)
    [cactus] at
    (PoolTcpEndpoint.java:527)
    [cactus] at
    ()
    [cactus] at
    $ControlRunnable.run(ThreadPool.java:684)
    [cactus] at java.lang.Thread.run(Thread.java:595)

    Regards,
    TY

    yanping li wrote:

    Hi,

    I am trying to automate in-container testing using ant intgeration with
    Cactus. My application (sym.war) worked fine before cactifying. When I run
    build it cactifies and during testing it hangs to open tomcat and I get
    error message:

    Here is a copy of the output file:

    Jul 12, 2006 12:10:33 AM init
    INF: Initializing Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:10:33 AM load
    INF: Initialization processed in 5157 ms
    Jul 12, 2006 12:10:34 AM start
    INF: Starting service Catalina
    Jul 12, 2006 12:10:34 AM start
    INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    Jul 12, 2006 12:10:34 AM start
    INF: XML validation disabled
    Jul 12, 2006 12:10:34 AM getDeployer
    INF: Create Host deployer for direct deployment ( non-jmx )
    Jul 12, 2006 12:11:59 AM
    install
    INF: Installing web application at context path /sym-cactified from URL

    Jul 12, 2006 12:12:05 AM start
    SEVERE: Error filterStart
    Jul 12, 2006 12:12:05 AM start
    SEVERE: Context startup failed due to previous errors
    Jul 12, 2006 12:12:05 AM start
    INF: Starting Coyote HTTP/1.1 on http-80
    Jul 12, 2006 12:12:07 AM init
    INF: JK2: ajp13 listening on /0.0.0.0:8009
    Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    INF: Jk running ID=0 time=0/1252 config=null
    Jul 12, 2006 12:12:07 AM start
    INF: Server startup in 93635 ms

    Could it caused by the "FilterRedirector", which is the only new filter
    added to the web.xml of cactified war file?

    Here is part of my build.xml file:

    <target name="test.prepare" depends="war, compile.cactustest">

    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Cactify the web-app archive
    <cactifywar srcfile="${target}/sym.war"
    destfile="${target}/sym-cactified.war" >
    <classes dir="${target.classes.cactus}"/>
    </cactifywar>

    <!-- Prepare the directories for the JUnit reports
    <mkdir dir="${target.testreports}"/>
    </target>

    <target name="test"
    description="Run the tests on the defined containers" >
    <taskdef resource="cactus.tasks">
    <classpath>
    <path refid="cactus.classpath" />
    </classpath>
    </taskdef>
    <!-- Run the tests
    <cactus warfile="${target}/sym-cactified.war"
    fork="yes" failureproperty="tests.failed" haltonerror="false">

    <classpath>
    <pathelement location="${webapp.lib}/cactus-ant.jar" />
    <pathelement location="${webapp.lib}/junit-3.8.jar" />
    <pathelement location="${webapp.lib}/ant-junit.jar" />
    <pathelement location="${webapp.lib}/cactus.jar" />
    <pathelement location="${webapp.lib}/cargo-0.5.jar" />
    <pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    <pathelement location="${webapp.lib}/commons-logging.jar" />
    <pathelement location="${webapp.lib}/aspectjrt.jar" />
    <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    <pathelement location="${webapp.lib}/httpunit.jar" />
    <pathelement location="${target.classes.java}" />
    <pathelement location="${target.classes.cactus}" />
    </classpath>

    <containerset>
    <tomcat5x dir="${tomcat.home}" port="80"
    output="${target.testreports}/tomcat5x.txt"
    todir="${target.testreports}/tomcat5x"
    serverxml="${tomcat.home}/conf/server.xml"
    tmpdir = "${container.temp}" >
    <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    </tomcat5x>
    </containerset>

    <formatter type="xml" usefile="true"/>
    <batchtest>
    <fileset dir="${src.cactus.dir}">
    <include name="**/Test*.java"/>
    <exclude name="**/Test*All.java"/>
    </fileset>
    </batchtest>
    </cactus>

    <!-- Generate the JUnit Reports
    <mkdir dir="${target.report}/html" />
    <junitreport todir="${target.testreports}">
    <fileset dir="${target.testreports}" includes="TESTxml"/>
    <report todir="${target.testreports}/html" format="frames"/>
    </junitreport>
    </target>

    I am using
    ANT: apache-ant-1.6.5
    JAVA: jdk1.5.0_06
    CACTUS : jakarta-cactus-13-1.7.2
    TMCAT: jakarta-tomcat 5.5

    Thank you for your help!

    Express yourself instantly with MSN Messenger! Download today - it's FREE!

    To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
  • No.10 | | 7709 bytes | |

    Hi
    I forgot to mention I am facing this problem on a Linux machine, I could
    successfully execute the tests on my local windows machine.

    Please help me resolve this.

    Thanks & Regards,
    TY

    Tejaswini Yardi wrote:

    Hi

    I am facing a weird problem now - I could resolve the previous errors I
    got. Now when i execute my testcase files from ant using <cactustask,
    it throws the NullPointerException when trying to execute the testXXX()
    methods. I have no clue as to why this is happening. It executes my
    beginXXX() and endXXX() methods successfully but fails to execute the
    testXXX() method. Can you please let me know why this is happening and how
    to resolve this issue?

    Is there something I am missing due to which its not being able to execute
    test methods on the server?

    This is the exact exception I get :

    Testcase:
    ():
    Caused an ERRR
    [cactus] null
    [cactus] java.lang.NullPointerException
    [cactus] at
    (XMLDataHelper.java:337)
    [cactus] at
    (XMLDataHelper.java:231)
    [cactus] at
    (IFServletTestCase.java:154)
    [cactus] at
    ()
    [cactus] at
    ()
    [cactus] at
    (AbstractWebTestCaller.java:119)
    [cactus] at
    ()
    [cactus] at
    $advice()
    [cactus] at
    (AbstractWebTestController.java)
    [cactus] at
    (ServletTestRedirector.java:101)
    [cactus] at
    $advice(ServletTestRedirector.java:217)
    [cactus] at
    (ServletTestRedirector.java)
    [cactus] at
    (ServletTestRedirector.java:72)
    [cactus] at
    $advice(ServletTestRedirector.java:217)
    [cactus] at
    (ServletTestRedirector.java)
    [cactus] at
    (HttpServlet.java:689)
    [cactus] at
    (HttpServlet.java:802)
    [cactus] at
    ()
    [cactus] at
    ()
    [cactus] at
    (StandardWrapperValve.java:213)
    [cactus] at
    (StandardContextValve.java:178)
    [cactus] at
    (StandardHostValve.java:126)
    [cactus] at
    (ErrorReportValve.java:105)
    [cactus] at
    (StandardEngineValve.java:107)
    [cactus] at
    (CoyoteAdapter.java:148)
    [cactus] at
    (Http11Processor.java:856)
    [cactus] at
    $(Http11Protocol.java:744)
    [cactus] at
    (PoolTcpEndpoint.java:527)
    [cactus] at
    ()
    [cactus] at
    $ControlRunnable.run(ThreadPool.java:684)
    [cactus] at java.lang.Thread.run(Thread.java:595)

    Regards,
    TY

    yanping li wrote:
    >
    >Hi,
    >
    >I am trying to automate in-container testing using ant intgeration with
    >Cactus. My application (sym.war) worked fine before cactifying. When I
    >run
    >build it cactifies and during testing it hangs to open tomcat and I get
    >error message:
    >
    >
    >Here is a copy of the output file:
    >
    >Jul 12, 2006 12:10:33 AM init
    >INF: Initializing Coyote HTTP/1.1 on http-80
    >Jul 12, 2006 12:10:33 AM load
    >INF: Initialization processed in 5157 ms
    >Jul 12, 2006 12:10:34 AM start
    >INF: Starting service Catalina
    >Jul 12, 2006 12:10:34 AM start
    >INF: Starting Servlet Engine: Apache Tomcat/5.0.28
    >Jul 12, 2006 12:10:34 AM start
    >INF: XML validation disabled
    >Jul 12, 2006 12:10:34 AM
    >getDeployer
    >INF: Create Host deployer for direct deployment ( non-jmx )
    >Jul 12, 2006 12:11:59 AM
    >install
    >INF: Installing web application at context path /sym-cactified from URL
    >
    >Jul 12, 2006 12:12:05 AM start
    >SEVERE: Error filterStart
    >Jul 12, 2006 12:12:05 AM start
    >SEVERE: Context startup failed due to previous errors
    >Jul 12, 2006 12:12:05 AM start
    >INF: Starting Coyote HTTP/1.1 on http-80
    >Jul 12, 2006 12:12:07 AM init
    >INF: JK2: ajp13 listening on /0.0.0.0:8009
    >Jul 12, 2006 12:12:07 AM org.apache.jk.server.JkMain start
    >INF: Jk running ID=0 time=0/1252 config=null
    >Jul 12, 2006 12:12:07 AM start
    >INF: Server startup in 93635 ms
    >
    >Could it caused by the "FilterRedirector", which is the only new filter
    >added to the web.xml of cactified war file?
    >
    >Here is part of my build.xml file:
    >
    ><target name="test.prepare" depends="war, compile.cactustest">
    >
    ><taskdef resource="cactus.tasks">
    ><classpath>
    ><path refid="cactus.classpath" />
    ></classpath>
    ></taskdef>
    > <!-- Cactify the web-app archive
    > <cactifywar srcfile="${target}/sym.war"
    >destfile="${target}/sym-cactified.war" >
    > <classes dir="${target.classes.cactus}"/>
    > </cactifywar>
    >
    > <!-- Prepare the directories for the JUnit reports
    > <mkdir dir="${target.testreports}"/>
    > </target>
    >
    ><target name="test"
    >description="Run the tests on the defined containers" >
    ><taskdef resource="cactus.tasks">
    ><classpath>
    ><path refid="cactus.classpath" />
    ></classpath>
    ></taskdef>
    > <!-- Run the tests
    > <cactus warfile="${target}/sym-cactified.war"
    > fork="yes" failureproperty="tests.failed" haltonerror="false">
    >
    > <classpath>
    ><pathelement location="${webapp.lib}/cactus-ant.jar" />
    > <pathelement location="${webapp.lib}/junit-3.8.jar" />
    ><pathelement location="${webapp.lib}/ant-junit.jar" />
    ><pathelement location="${webapp.lib}/cactus.jar" />
    ><pathelement location="${webapp.lib}/cargo-0.5.jar" />
    ><pathelement location="${webapp.lib}/commons-httpclient-2.0.2.jar" />
    ><pathelement location="${webapp.lib}/commons-logging.jar" />
    ><pathelement location="${webapp.lib}/aspectjrt.jar" />
    > <pathelement location="${webapp.lib}/nekohtml-0.9.1.jar" />
    > <pathelement location="${webapp.lib}/httpunit.jar" />
    > <pathelement location="${target.classes.java}" />
    > <pathelement location="${target.classes.cactus}" />
    > </classpath>
    >
    > <containerset>
    > <tomcat5x dir="${tomcat.home}" port="80"
    > output="${target.testreports}/tomcat5x.txt"
    > todir="${target.testreports}/tomcat5x"
    > serverxml="${tomcat.home}/conf/server.xml"
    > tmpdir = "${container.temp}" >
    > <conf dir="${tomcat.home}/conf" includes="sym.xml" />
    > </tomcat5x>
    > </containerset>
    >
    > <formatter type="xml" usefile="true"/>
    > <batchtest>
    > <fileset dir="${src.cactus.dir}">
    > <include name="**/Test*.java"/>
    > <exclude name="**/Test*All.java"/>
    > </fileset>
    > </batchtest>
    > </cactus>
    >
    > <!-- Generate the JUnit Reports
    > <mkdir dir="${target.report}/html" />
    > <junitreport todir="${target.testreports}">
    > <fileset dir="${target.testreports}" includes="TESTxml"/>
    > <report todir="${target.testreports}/html" format="frames"/>
    > </junitreport>
    ></target>
    >
    >I am using
    >ANT: apache-ant-1.6.5
    >JAVA: jdk1.5.0_06
    >CACTUS : jakarta-cactus-13-1.7.2
    >TMCAT: jakarta-tomcat 5.5
    >
    >
    >Thank you for your help!
    >
    >
    >Express yourself instantly with MSN Messenger! Download today - it's
    >FREE!
    >
    >
    >
    >
    >To unsubscribe, e-mail: cactus-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: cactus-user-help (AT) jakarta (DOT) apache.org
    >
    >
    >

Re: Cactus-Ant Integration: Context startup failed due to "Error filterStart"


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "Apache"

EMSDN.COM