1 Reply Latest reply on May 17, 2003 5:07 PM by Eric Devlin

    JBoss and Cactus

    stevecoh1 Newbie

      Dumb newbie question, but it's not intuitively obvious to me.

      Up to now in JBoss I've only deployed by dropping EAR files into the server's default directory.

      But now I want to use Cactus to test code.

      Cactus documentation suggests "dropping the WAR file into the container." I'm not clear, however, into what directory I would drop a naked war file, outside of an EAR archive. How would I do this operation?

        • 1. Re: JBoss and Cactus
          Eric Devlin Newbie

          Hey,
          In my deploy\my.war\Web-inf\lib include
          cactus.jar,
          aspectjrt.jar,
          commons-httpclient.jar,
          commons-logging.jar,
          httpunit.jar,
          junit.jar,
          include the same files in the manifest. I had to use jakarta-cactus-src-1.4.1,
          aspectj106,
          httpclient20a,
          logging102
          httpunit152
          junit_381

          I'm using jdk_1_3_1, jboss306_tomcat4118. I also had to get jce1_2_2 (crypto extensions) and put it in %JAVA_HOME%\re\lib\ext, and recompile cactus source

          and the following entries into web.xml

          <servlet-name>ServletRedirector</servlet-name>
          <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
          <init-param>
          <param-name>param1</param-name>
          <param-value>value1 used for testing</param-value>
          </init-param>


          <servlet-name>ServletTestRunner</servlet-name>
          <servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-class>


          Other than that ;-> it was easy

          If you want the jars I used let me now and I'll attach them.

          Hope it helps,
          Eric