Hi Jim,

First I'm glad it works for you. There are indeed a few strange things :
- the fact that you use <load-on-startup>. You should remove this as it is
not needed.
- the mapping in*.test (although it is correct it should also work with a
simpe mapping with no * unless this is another bug of WTE ! :) )
- a few items in the classpath set in step 4 can be removed  and the
cactus.properties file can be put in WEB-INF/classes instead (as this path
is already in the webapp classpath)

However, everything else seems fine to me ...
Do you find this different than the tutorial found on the Cactus web site ?
What are the differences (I ask this so that we can correct if there are any
mistakes) ?

Thanks a lot for posting back !
-Vincent

----- Original Message -----
From: "Young, Jim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 8:06 PM
Subject: RE: Cactus, Apache Tomcat & VisualAge


>
> I have finally found the time to go back to this problem and I now have
> cactus working with Apache Tomcat & VisualAge. I have probably done some
> weird things but it works and I am happy. The following are the steps I
> needed to integrate cactus into my environment.
>
> The environment- VisualAge 3.5.3, Apache Tomcat Test Environment 3.1,
> Struts, log4j and junit.
>
> 1. Import cactus into VisualAge as a project
>
> 2. Add the following into my web.xml file for my project
>
>    <servlet>
>         <servlet-name>redirector</servlet-name>
>
>
<Servlet-class>org.apache.commons.cactus.server.ServletTestRedirector</servl
> et-class>
>         <init-param>
>           <param-name>param1</param-name>
>           <param-value>value1 used for testing</param-value>
>         </init-param>
> <load-on-startup>1</load-on-startup>
>     </servlet>
>
>     <servlet-mapping>
>         <servlet-name>redirector</servlet-name>
>         <url-pattern>*.test</url-pattern>
>     </servlet-mapping>
>
> NOTE: Don't know why but I tried for two days to get it working with the
> normal url-pattern from the examples. It seems to work fine with the
> "*.test" url-pattern.
>
> 3. Modified the cactus.properties file to look like
>
> cactus.servletRedirectorURL =
> http://localhost:8080/AmicusStruts/ServletRedirector.test
>
>
> 4. Added the following directories to junit's TestRunner properties
>
> C:\Program Files\IBM\VisualAge for
> Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\;
> C:\Program Files\IBM\VisualAge for
>
Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-
> INF\;
> C:\Program Files\IBM\VisualAge for
>
Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB-
> INF\classes\;
>
> 5. Added the cactus project to both junit's TestRunner and apache's
> TomcatRunner properties.
>
> 6. Put the cactus.properties file in
>
"Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB
> -INF" folder
>
> 7. Put the two log4j files (log_server.properties &
> log_client.properties) in the
>
"Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\myApp\WEB
> -INF\classes" folder
>
> 8. Did not add any of the jar files to any of the class paths
>
>
> I can now run unit tests against my Struts actions without any problems
>
> Jim
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: September 13, 2001 12:53 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Cactus, Apache Tomcat & VisualAge
>
>
>
> David: Thanks for the info.
>
> Jim: I won't be able to try until this weekend. Please let me know if you
> get it to work. I would be interested in knowing what the problem was.
>
> Thanks!
>
> Lanka :)
> [EMAIL PROTECTED]
> CheckFree i-Solutions
> Ann Arbor MI 48108
> 734-205-4112
>
>
>
>
>                     "Young, Jim"
>
>                     <Jim.Young@cib       To:
> "'[EMAIL PROTECTED]'"
>                     c.com>                <[EMAIL PROTECTED]>
>
>                                          cc:
>
>                     09/13/01 10:23       Subject:     RE: Cactus, Apache
> Tomcat & VisualAge
>                     AM
>
>                     Please respond
>
>                     to cactus-user
>
>
>
>
>
>
>
>
>
> Thanks for the documents and all the other information. I have down loaded
> the latest Cactus build and I will be trying to get it working today.
>
> I currently have apache tomcat test environment working within VisualAge.
I
> also have struts, log4j and junit all working together within this
> environment. I have even been able to deploy my application to WebSphere
> without any major problems.
>
> I am sure the problem I am having with cactus is going to end up being
> something simple. If I can't get it working by the end of the day I will
be
> coming back for more help.
>
> Thanks again,
>
> Jim
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: September 13, 2001 9:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Cactus, Apache Tomcat & VisualAge
>
>
>
> Hello,
>
> A tutorial on getting Apache Tomcat to work within Visual Age for Java is
> available at:
>
> http://www7.software.ibm.com/vad.nsf/Data/Document2390?OpenDocument
>
> I believe it written for 3.0 and 3.1 version of Tomcat, but I think it'll
> work for later versions as well.  I have used Tomcat inside VAJ, and it
> works well.  I haven't tried Cactus with Tomcat in VAJ.  Let me know how
> well it works for you.
>
> Thanks,
>
>
> David J Mehi
> [EMAIL PROTECTED]
> (248) 355-6621
>
>
>
>
>
>
>
>                     "Vincent
>
>                     Massol"              To:
> <[EMAIL PROTECTED]>
>                     <vmassol@octo.       cc:
>
>                     com>                 Subject:     Re: Cactus, Apache
> Tomcat & VisualAge
>
>
>                     09/13/2001
>
>                     09:33 AM
>
>                     Please respond
>
>                     to cactus-user
>
>
>
>
>
>
>
>
>
> Hi Lanka,
>
> Right. However, I don't believe you are having problems with Tomcat by
> itself (as the sample application provided as part of the Cactus
> distribution works fine on Tomcat 3.1, 3.2, 3.3 and 4.0. Actually I have
> not
> tried 3.1 recently as it is now very old and replaced by 3.2.) but rather
> with the Tomcat Test Environment setup which is part of VAJava.
> Unfortunately I cannot help you there as I have never used it and don't
> have
> it. I guess you need to know how it deploys a webapp.
>
> Thanks
> -Vincent
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 13, 2001 2:22 PM
> Subject: Re: Cactus, Apache Tomcat & VisualAge
>
>
> >
> > Vincent:
> > It's not WebSphere we are having problems with, it's TomCat. I will give
> > the latest build a try.
> > Yes, I have successfully used TomCat with other web apps and HTTPUnit
> > successfully.
> > Thanks for your help.
> > Lanka :)
> > [EMAIL PROTECTED]
> > CheckFree i-Solutions
> > Ann Arbor MI 48108
> > 734-205-4112
> >
> >
> >
> >                     "Vincent
> >                     Massol"              To:
> <[EMAIL PROTECTED]>
> >                     <vmassol@octo.       cc:
> >                     com>                 Subject:     Re: Cactus, Apache
> Tomcat & VisualAge
> >
> >                     09/13/01 04:26
> >                     AM
> >                     Please respond
>
> >                     to cactus-user
> >
> >
> >
> >
> >
> >
> > Hi Jim,
> >
> > ----- Original Message -----
> > From: "Young, Jim" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, September 12, 2001 7:03 PM
> > Subject: Cactus, Apache Tomcat & VisualAge
> >
> >
> > > I am trying (unsuccessfully) to get Cactus working with the Apache
> Tomcat
> > > test environment working within VisualAge 3.5.4. I found a few
messages
> > in
> > > the archives on this subject but they seemed to end without
resolution.
> > >
> http://www.mail-archive.com/[email protected]/msg00062.html
> > I
> > > am having the exact same errors.
> > >
> > > Has anyone been successful installing Cactus in this environment? Any
> > help
> > > would be appreciated.
> > >
> >
> > I have not used Cactus with WebSphere myself so won't be able to help
> you.
> > However what I can suggest is for you to use the latest nighlty build
> from
> > Cactus as there has been a lot of things cleaned up internally that may
> > have
> > caused a problem with WebSphere 3.5 pacth 4.
> >
> > You can get nightly builds from
> > http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-cactus/
> >
> > If this still does not work, I'll ask you to set up the logs (on the
> latest
> > nightly build) and send them to the list.
> >
> > Also, have you tested the Apache Tomcat environment with other webapps
to
> > see if it were set up correctly ?
> >
> > > Thanks,
> > >
> > > Jim
> >
> > Thanks
> > -Vincent
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>
>
>
****************************************************************************
>
>
> The information contained in this transmission, which may be
> confidential and proprietary, is only for the intended recipients.
> Unauthorized use is strictly prohibited. If you receive this
> transmission in error, please notify me immediately by telephone
> or electronic mail and confirm that you deleted this transmission
> and the reply from your electronic mail system.
>
****************************************************************************
>
>
>
>
>
>
>

Reply via email to