Matt,
I have used it successfully with Tomcat 4.0.3 ad I guess it will work
fine with Tomcat 4.0.4
Here is my setup :
[tomcat root]/common/lib
|_ cactus.jar
|_ commons-httpclient-*.jar
|_ aspectjrt.jar
|_ junit.jar
|_ log4j.jar
|_ [and all the tomcat jars]
[tomcat root]/conf
|_ web.xml
wb.xml changes :
<servlet>
<servlet-name>ServletRedirector</servlet-name>
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-c
lass>
<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</servle
t-class>
</servlet>
[...]
<servlet-mapping>
<servlet-name>ServletRedirector</servlet-name>
<url-pattern>/ServletRedirector</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>JspRedirector</servlet-name>
<url-pattern>/JspRedirector</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ServletTestRunner</servlet-name>
<url-pattern>/ServletTestRunner</url-pattern>
</servlet-mapping>
[...]
[tomcat root]/webapps/test
|_ jspRedirector.jsp
|_ junit-noframes.xsl
|_ WEB-INF/classes
|_ test classes
|_ classes under test
There is no need to have a cactus.properties. If you don�t provide one,
Cactus auto-magically finds itself.
Hope it helps,
-Vincent
> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: 11 July 2002 16:36
> To: 'Cactus Users List'
> Subject: RE: AspectJ needed for Cactus 1.4?
>
> I am using TC 4.0.4 and I was unable to setup per these instructions:
> http://jakarta.apache.org/cactus/1.4/howto_tomcat.html
>
> I was able to setup by putting everything in my app's web.xml. For
the
> link above, do you need to create properties files? The documentation
> doesn't seem to specify that a cactus.properties needs to be present.
>
> > -----Original Message-----
> > From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 11, 2002 1:36 AM
> > To: 'Cactus Users List'
> > Subject: RE: AspectJ needed for Cactus 1.4?
> >
> >
> > Klaus,
> >
> > The error is definitely a class loading error. It means your
> > webapp classloader is not seeing your aspectjrt.jar classes.
> > Have you put it in [tomcat root]/common/lib ?
> >
> > What version of Tomcat are you using ?
> >
> > Cheers,
> > -Vincent
> >
> >
> > > -----Original Message-----
> > > From: Klaus-B Michel [mailto:[EMAIL PROTECTED]]
> > > Sent: 11 July 2002 09:33
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: AspectJ needed for Cactus 1.4?
> > >
> > > Hi Vincent,
> > >
> > > I have check this and the aspectjrt.jar is still in the
> > classpath( on
> > the
> > > client and server side). Did anybody have another idea?
> > >
> > >
> > > best regards
> > > Klaus
> > >
> > >
> > > ---------------------- Weitergeleitet von Klaus-B
> > > Michel/Zentrale/DeuBaExt am 11.07.2002 09:15
> > ---------------------------
> > >
> > >
> > > Datum: 11.07.2002 08:53
> > > An: "'Cactus Users List'"
> > <[EMAIL PROTECTED]>
> > >
> > >
> > >
> > >
> > > Antwort an: "Cactus Users List"
<[EMAIL PROTECTED]>
> > >
> > > Betreff: RE: AspectJ needed for Cactus 1.4?
> > > Nachrichtentext:
> > >
> > > Hi Matt,
> > >
> > > The documentation is wrong, you need aspectjrt.jar in your
> > cp! I have
> > > fixed it in CVS (but have not redeployed the web site).
> > >
> > > Thank you.
> > > -Vincent
> > >
> > > > -----Original Message-----
> > > > From: Matt Raible [mailto:[EMAIL PROTECTED]]
> > > > Sent: 09 July 2002 19:47
> > > > To: [EMAIL PROTECTED]
> > > > Subject: AspectJ needed for Cactus 1.4?
> > > >
> > > > I am trying to setup my tomcat install as described at:
> > > >
> > > > http://jakarta.apache.org/cactus/1.4/howto_tomcat.html
> > > >
> > > > However, I get the following error in localhost_log:
> > > >
> > > > 2002-07-09 12:23:09 StandardContext[/roller]: Exception starting
> > > filter
> > > > FilterRedirector
> > > > java.lang.NoClassDefFoundError:
> > org/aspectj/runtime/reflect/Factory
> > > > at
> > > >
> > >
> > org.apache.cactus.server.FilterTestRedirector.<clinit>(FilterT
> > estRedirec
> > > > tor.java;org/apache/cactus/util/log/LogAspect.java(1k):80)
> > > > at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > Method)
> > > > at
> > > >
> > >
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCo
> > nstructorA
> > > > ccessorImpl.java:39)
> > > > at
> > > >
> > >
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Dele
> > gatingCons
> > > > tructorAccessorImpl.java:27)
> > > > at
> > > > java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> > > > at java.lang.Class.newInstance0(Class.java:296)
> > > > at java.lang.Class.newInstance(Class.java:249)
> > > >
> > > > However, the documentation states:
> > > >
> > > > Copy the following jars to [tomcat root]/common/lib :
> > > >
> > > > cactus.jar
> > > > commons-httpclient*.jar
> > > > junit.jar
> > > > This is the minium set of jars needed.
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail: <mailto:cactus-user-
> > > > [EMAIL PROTECTED]>
> > > > For additional commands, e-mail: <mailto:cactus-user-
> > > > [EMAIL PROTECTED]>
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail: <mailto:cactus-user-
> > > [EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:cactus-user-
> > > [EMAIL PROTECTED]>
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Diese E-Mail enth�lt vertrauliche und/oder rechtlich gesch�tzte
> > > Informationen. Wenn Sie nicht der richtige Adressat sind oder
diese
> > E-Mail
> > > irrt�mlich erhalten haben, informieren Sie bitte sofort den
Absender
> > und
> > > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
> > die unbefugte
> > > Weitergabe dieser Mail ist nicht gestattet.
> > >
> > > This e-mail may contain confidential and/or privileged
> > information. If
> > you
> > > are not the intended recipient (or have received this
> > e-mail in error)
> > > please notify the sender immediately and destroy this e-mail. Any
> > > unauthorized copying, disclosure or distribution of the material
in
> > this
> > > e-mail is strictly forbidden.
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail: <mailto:cactus-user-
> > > [EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:cactus-user-
> > > [EMAIL PROTECTED]>
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:cactus-user-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
>
>
>
> --
> To unsubscribe, e-mail: <mailto:cactus-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:cactus-user-
> [EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>