Hi, For changing the tomcat 8080 port:
Goto %TOMCAT_HOME%\conf/server.xml Change the connector port to 8081(search for 8080) in this file. <Connector
port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />
BR, Kamal -- Kamal Mettananda Visit me at: http://lkamal.blogspot.com On 5/3/07, Venkatesh Babu <[EMAIL PROTECTED]> wrote:
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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]