Kevin already told you the goods, but here is also an example
cactus.properties file from our project. Maybe it can be of some help..

Place it on your Ant classpath when running Cactus from within Ant. (But we
also use it when running Cactus test classes from within IntelliJ, then the
file is on the project classpath)

# Configuration file for Cactus.
# Each project using Cactus need to have such a file put in the client side
# CLASSPATH (Meaning the directory containgin this file should be in the
client
# side CLASSPATH, not the file itself of course ... :) )

# Defines the URLs that will be used by Cactus to call it's redirectors.
# You need to specify in these URLs the webapp context that you use for your
# application. In the example below, the context is "test".

# Web app Context under which our application to test runs
cactus.contextURL = http://127.0.0.1:8080/[app-name]

# Default Servlet Redirector Name. Used by ServletTestCase test cases.
cactus.servletRedirectorName = ServletRedirector

# Default JSP Redirector Name. Used by JspTestCase test cases.
cactus.jspRedirectorName = JspRedirector

# NOTE: Some servlet 2.3 containers need to map the filter to a valid
# resource (Orion 1.5.2 for example). Others, like Tomcat, are happy
# with just any mapping.
#
# For example, the following would work with Tomcat (and this is what I
would
# have expected !) :
# cactus.filterRedirectorName = FilterRedirector

cactus.filterRedirectorName = test/filterRedirector.jsp

> -----Ursprungligt meddelande-----
> Fr�n: aze N [mailto:[EMAIL PROTECTED]
> Skickat: den 28 november 2003 16:58
> Till: Cactus Users List
> �mne: Re: SV: Cactus & JBoss 3.2.2
>
>
> Well,
>
> I put the *.jar in server/min|defautl|all/lib
> I modify
> server/min|defautl|all/deploy/jbossweb_tomcat*/web.xml
> and it seems to work !
>
> I'll continue my tests, thx all for ur help.
> Just a last question, could someone tell me what is
> cactus.properties and how to use it ?
> Thx again.
>
>  --- aze N <[EMAIL PROTECTED]> a �crit : > Hi, thx for
> ur answer
> >
> > I make the quickstart example work by adding .jar in
> > WEB-INF/lib directory of my .war but I'd like to put
> > Cactus jars in my container classpath so that Cactus
> > will load them using the container Context class
> > loader, but i don't know how to make it !!!
> > My app's name is test (test.war)
> >
> > I don't have a cactus.properties ? What is that ?
> > I don't know where I have to put the .jar in jboss
> > and
> > wich web.xml I have to modify, conf/web.xml or
> > deploy/jboss-tomcat*/web.xml
> >
> >
> > Here is my conf/web.xml :
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <!DOCTYPE web-app
> >      PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > Application 2.3//EN"
> >     "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > <web-app>
> >
> > <!-- Debut ajout SF  -->
> >
> >     <filter>
> >         <filter-name>FilterRedirector</filter-name>
> >
> >
> <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
> >     </filter>
> >
> >     <filter-mapping>
> >         <filter-name>FilterRedirector</filter-name>
> >         <url-pattern>/FilterRedirector</url-pattern>
> >     </filter-mapping>
> >
> >     <servlet>
> >
> > <servlet-name>ServletRedirector</servlet-name>
> >
> >
> <servlet-class>org.apache.cactus.server.ServletTestRedirector</ser
> vlet-class>
> >         <init-param>
> >           <param-name>param1</param-name>
> >           <param-value>value1 used for
> > testing</param-value>
> >         </init-param>
> >     </servlet>
> >
> >     <servlet>
> >         <servlet-name>JspRedirector</servlet-name>
> >         <jsp-file>/jspRedirector.jsp</jsp-file>
> >     </servlet>
> >
> >     <servlet>
> >
> > <servlet-name>ServletTestRunner</servlet-name>
> >
> >
> <servlet-class>org.apache.cactus.server.runner.ServletTestRunner</
> servlet-class>
> >     </servlet>
> >
> > <!-- Fin ajout SF -->
> >
> >  <!-- ======================== Introduction
> > ============================== -->
> >   <!-- This document defines default values for
> > *all*
> > web applications      -->
> >   <!-- loaded into this instance of Tomcat.  As each
> > application is         -->
> >   <!-- deployed, this file is processed, followed by
> > the                    -->
> >   <!-- "/WEB-INF/web.xml" deployment descriptor from
> > your own               -->
> >   <!-- applications.
> >
> >                      -->
> >   <!--
> >
> >                      -->
> >   <!-- WARNING:  Do not configure
> > application-specific
> > resources here!      -->
> >   <!-- They should go in the "/WEB-INF/web.xml" file
> > in your application.   -->
> >
> >
> >   <!-- ================== Built In Servlet
> > Definitions
> > ==================== -->
> >
> >
> >   <!-- The default servlet for all web applications,
> > that serves static     -->
> >   <!-- resources.  It processes all requests that
> > are
> > not mapped to other   -->
> >   <!-- servlets with servlet mappings (defined
> > either
> > here or in your own   -->
> >   <!-- web.xml file.  This servlet supports the
> > following initialization    -->
> >   <!-- parameters (default values are in square
> > brackets):                  -->
> >   <!--
> >
> >                      -->
> >   <!--   debug               Debugging detail level
> > for messages logged     -->
> >   <!--                       by this servlet.  [0]
> >
> >                      -->
> >   <!--
> >
> >                      -->
> >   <!--   input               Input buffer size (in
> > bytes) when reading      -->
> >   <!--                       resources to be served.
> >
> > [2048]                -->
> >   <!--
> >
> >                      -->
> >   <!--   listings            Should directory
> > listings
> > be produced if there -->
> >   <!--                       is no welcome file in
> > this directory?  [true]  -->
> >   <!--
> >
> >                      -->
> >   <!--   output              Output buffer size (in
> > bytes) when writing     -->
> >   <!--                       resources to be served.
> >
> > [2048]                -->
> >   <!--
> >
> >                      -->
> >   <!--   readonly            Is this context "read
> > only", so HTTP           -->
> >   <!--                       commands like PUT and
> > DELETE are               -->
> >   <!--                       rejected?  [true]
> >
> >                      -->
> >
> >     <servlet>
> >         <servlet-name>default</servlet-name>
> >         <servlet-class>
> >
> > org.apache.catalina.servlets.DefaultServlet
> >         </servlet-class>
> >         <init-param>
> >             <param-name>debug</param-name>
> >             <param-value>0</param-value>
> >         </init-param>
> >         <init-param>
> >             <param-name>listings</param-name>
> >             <param-value>true</param-value>
> >         </init-param>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >
> >
> >   <!-- The "invoker" servlet, which executes
> > anonymous
> > servlet classes      -->
> >   <!-- that have not been defined in a web.xml file.
> >
> > Traditionally, this   -->
> >   <!-- servlet is mapped to URL pattern
> > "/servlet/*",
> > but you can map it    -->
> >   <!-- to other patterns as well.  The extra path
> > info
> > portion of such a    -->
> >   <!-- request must be the fully qualified class
> > name
> > of a Java class that  -->
> >   <!-- implements Servlet (or extends HttpServlet),
> > or
> > the servlet name     -->
> >   <!-- of an existing servlet definition.     This
> > servlet supports the     -->
> >   <!-- following initialization parameters (default
> > values are in square    -->
> >   <!-- brackets):
> >
> >                      -->
> >   <!--
> >
> >                      -->
> >   <!--   debug               Debugging detail level
> > for messages logged     -->
> >   <!--                       by this servlet.  [0]
> >
> >                      -->
> >
> >     <servlet>
> >
> === message truncated ===
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
> Yahoo! Mail : http://fr.mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.545 / Virus Database: 339 - Release Date: 2003-11-27
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 2003-11-27


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

Reply via email to