Hello,

 

Having issues getting the initial connection test to hit the correct
context. I define contextURL=http://localhost:18080/test2, but it will
keep trying to connect to http://localhost:18080/test1. The name of the
test war file is test1.war. I have not found anything similar to this
from searches and archives. Any help would be appreciated. I've tried
setting the contextURL all 3 ways (jvm arg, classpath, system property)
and none of them works. It seems that no matter what settings and task I
use, cactus will still use the name of the war file for the context. 

 

Here are more details. 

 

Debug log output:

 

   [cactus] Failed to connect to
[http://localhost:18080/test1/ServletRedirector?Cactus_Service=RUN_TEST]
(Connection refused: connect)

   [cactus] Checking if server is up ...

 

Relevant part of build.xml:

 

                        <cactus warfile="${test.war}" fork="yes"

                                                haltonfailure="on"
showoutput="on"

                                                printsummary="on"

 
failureproperty="tests.failed">

                                    <cactusproperty server="false"

 
propertiesFile="${property.dir}${file.separator}common${file.separator}c
actus.properties"/>

                                    <classpath>

                                                <pathelement
location="${war.classes.dir}"/>

                                                <path
refid="cactus.lib.path"/>

                                                <path
refid="code.classpath"/>

                                    </classpath>

                                    <containerset timeout="180000">

                                                <jboss3x

 
dir="${jboss.home}"

 
port="18080"

                        config="admin"

 
jndiport="11099"

 
output="${build.dir}${file.separator}jboss3x.out"

 
todir="${reports.dir}"

 
additionalClasspath="${jboss.home}/server/admin"

 
jvmArgs="-Dcactus.config=C:/DMS/dev/javaprojects/shakalead/shakalead-api
/properties/common/cactus.properties"

                                                >

                                                </jboss3x>

                                    </containerset>

                                    <formatter type="plain"
usefile="true" />

                                    <batchtest>

                                                <fileset
dir="${test.dir}">

                                                            <include
name="**/*Suite.java"/>

                                                </fileset>

                                    </batchtest>

                        </cactus>

 

Relevant part of jboss-web.xml:

 

<jboss-web>

 

   <context-root>/</context-root>

   <virtual-host>localhost</virtual-host>

 

Thanks

Reply via email to