build file 如下
<cactus warfile="time_report-cactified.war" fork="yes" failureproperty="tests.failed" haltonerror="false">
<containerset>
<tomcat5x if="cactus.home.tomcat5x"
dir="${cactus.home.tomcat5x}" port="8080"
output="${testlogdir}/tomcat5x.out"
serverxml="server.xml"
todir="${testlogdir}"/>
</containerset> <test name="${package}.Tests"/>
</cactus>server.xml 如下
<Server port="7005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector
className="org.apache.catalina.connector.http.HttpConnector"
port="7080" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true">
</Host>
</Engine>
</Service>
</Server>用ant运行,总是出现如下错误
[cactifywar] Warning: selected war files include a WEB-INF/web.xml which will be
ignored (please use webxml attribute to war task)test:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against Tomcat 5.5.16 @ http://localhost:8080
[cactus] -----------------------------------------------------------------
[cactus] Deleting 844 files from c:\Temp\cactus\tomcat5x
[cactus] Deleted 57 directories from c:\Temp\cactus\tomcat5xBUILD FAILED
E:\time_report\build.xml:251: Failed to start the containe
r after more than [180000] ms. Trying to connect to the [http://localhost:8080/time_report-cactified/ServletRedirector?Cactus_Service=RUN_TEST] test URL
yielded a [-1] error code. Please run in debug mode for more details about the
error.急!!!
<cactus warfile="time_report-cactified.war" fork="yes" failureproperty="tests.failed" haltonerror="false">
<containerset>
<tomcat5x if="cactus.home.tomcat5x"
dir="${cactus.home.tomcat5x}" port="8080"
output="${testlogdir}/tomcat5x.out"
serverxml="server.xml"
todir="${testlogdir}"/>
</containerset> <test name="${package}.Tests"/>
</cactus>server.xml 如下
<Server port="7005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector
className="org.apache.catalina.connector.http.HttpConnector"
port="7080" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true">
</Host>
</Engine>
</Service>
</Server>用ant运行,总是出现如下错误
[cactifywar] Warning: selected war files include a WEB-INF/web.xml which will be
ignored (please use webxml attribute to war task)test:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against Tomcat 5.5.16 @ http://localhost:8080
[cactus] -----------------------------------------------------------------
[cactus] Deleting 844 files from c:\Temp\cactus\tomcat5x
[cactus] Deleted 57 directories from c:\Temp\cactus\tomcat5xBUILD FAILED
E:\time_report\build.xml:251: Failed to start the containe
r after more than [180000] ms. Trying to connect to the [http://localhost:8080/time_report-cactified/ServletRedirector?Cactus_Service=RUN_TEST] test URL
yielded a [-1] error code. Please run in debug mode for more details about the
error.急!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货