Hi Brian,

In article <[EMAIL PROTECTED]>,
Thu, 4 Mar 2004 12:09:01 -0500,
"Brian Ivey" <[EMAIL PROTECTED]> wrote: 
cbivey> I'm working on a large web application that already has a stable (and
cbivey> complex) build system using Ant.  All of the Cactus examples I've seen build
cbivey> and deploy the web application in conjunction with the test classes.  Is it
cbivey> possible for me to compile and deploy my test classes independently of my
cbivey> web application?  In other words, is there a constraint requiring the test
cbivey> classes to be part of the web application deployment?  If it matters, we are
cbivey> using Weblogic 8.1.

A constraint:
       classes under test and cactus test classes are in classpath
       of Container JVM

See also http://jakarta.apache.org/cactus/integration/howto_classpath.html


For your information, I can test my classes on JBoss-3.2.3
with following settings (but this is not my usual one):
    archives:
        app.ear --+-- app.war (application war)
                  +-- app-cactus.war (contains only cactus test classes,
                  |                   jars and web.xml for Cactus)
                  +-- META_INF/application.xml

    application.xml:
        <application>
            <display-name>My Application</display-name>
            <module>
                <web>
                    <web-uri>app.war</web-uri>
                    <context-root>/myapp</context-root>
                </web>
            </module>
            <module>
                <web>
                    <web-uri>app-cactus.war</web-uri>
                    <context-root>/myapp/cactus</context-root>
                </web>
            </module>
        </application>

    cactus.properties (client side):
        cactus.contextURL = http://localhost:8080/myapp/cactus


I'm not sure if this approach works for WebLogic.


I hope this helps.
----
Kazuhito SUGURI
mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to