jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venkatesh Babu <venkatbab...@yahoo.com>
Subject How to start tomcat on a port other than 8080
Date Thu, 03 May 2007 12:06:27 GMT
Hi All,

I'm using cactus test platform to test our taglibs ... Still new to this ... I have one question
about running the embedded tomcat server ... We want to run the tomcat server for cactus tests
on port number 8081, and not on port 8080 ... Can anybody help me explain what changes have
to be done?

My task entry in build.xml is this:

<cactus warfile="${test.cactus.war}" printsummary="yes" haltonfailure="no" fork="yes" failureproperty="apitest.failed"
errorproperty="apitest.failed">
            <classpath>
                <path refId="test.dist.classpath"/>
                <path refId="cactus.classpath"/>
            </classpath>
            <containerset timeout="50000">
                <tomcat4x dir="${env.CATALINA_HOME}" port="8081"
                          serverxml="${test.res.dir}/server.xml"
                          output="${test.reports.dir}/tomcat4x.out"
                          todir="${test.reports.dir}/tomcat4x" jvmargs="-Xms150m -Xmx1254m"/>
            </containerset>
            <formatter type="brief" usefile="false"/>
            <formatter type="xml"/>
            <test name="${test.execute}" />
        </cactus>


As you can see, I've set the port to 8081 ... However, when I run the tests, my ant build
is failing with following error message:

instr.to.war:
[cactifywar] Building war: D:\Sb\Prelaunch\retail\prj\out\test-cactified.war
[cactifywar] Warning: selected war files include a WEB-INF/web.xml which will be
 ignored (please use webxml attribute to war task)
[cactifywar] Warning: selected war files include a WEB-INF/web.xml which will be
 ignored (please use webxml attribute to war task)
   [cactus] -----------------------------------------------------------------
   [cactus] Running tests against Tomcat 4.1.31 @ http://localhost:8081
   [cactus] -----------------------------------------------------------------

BUILD FAILED
D:\Sb\Prelaunch\retail\prj\build.xml:422: Failed to start the container after mo
re than [50000] ms. Trying to connect to the [http://localhost:8081/test-cactifi
ed/ServletRedirector?Cactus_Service=RUN_TEST] test URL yielded a [-1] error code
. Please run in debug mode for more details about the error.


When I run in debug mode, I get the following failure message:

   [cactus] Failed to connect to [http://localhost:8081/test-cactified/ServletRe
director?Cactus_Service=RUN_TEST] (Connection refused: connect)

I'm still not clear on what is the problem here.

Thank you,
Venkatesh




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Mime
View raw message