jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sheldon Wosnick" <sheldon_wosn...@hotmail.com>
Subject Re: Question about the Cactus architectur
Date Tue, 30 Apr 2002 16:43:21 GMT

Thank you and perhaps I was too verbose. I understand the structure of the 
runtime and the classpath. What I don't understand is why certain test 
classes (the code you write, not the runtime distribution from Cactus) are 
duplicated on the client and the server. I have read the classpath setup at 
http://jakarta.apache.org/cactus/howto_classpath.html but

"What's missing" is what test case code goes on the client side and what 
test case code goes on the server-side -- not where to put it, not what jars 
and configuration files.

Ok, here is what I mean. For a simple servlet redirector test case, say 
TestCase1, what would be the structure on the client and on the server?

Am I missing something that this seems so obvious from a reading of the 
various literature in print on using Cactus, I am led to believe that there 
is an intentional duplication of some classes on both the client and the 
server and I am trying to understand that.

Is it simply says there that:

Client-side Classpath:
your test classes

Server-side Classpath:
WEB-INF/classes/<your test classes>

I am trying to understand WHICH test classes go where. Not j2ee jar or 
runtime jar files, only Test case code.

I believe I read a chapter on Cactus on an XP, Open Source tools book by 
Wiley recently about certain test case classes being on both the clieht and 
server classpaths. In my environment that translates to separate projects so 
that is why I ask.

Thanks, Sheldon

>From: laurent.duperval@masq.ca
>Reply-To: "Cactus Users List" <cactus-user@jakarta.apache.org>
>To: cactus-user@jakarta.apache.org
>Subject: Re: Question about the Cactus architectur
>Date: Tue, 30 Apr 2002 12:14:55 -0400 (EDT)
>On 30 Apr, Sheldon Wosnick wrote:
> > I have Cactus basically running (not elegantly by any means, but running
> > nevertheless between a client VM and the J2EE web container VM, which is 
> > point...) but I am still unclear on the architecture about where the
> > duplication in classes go between the client and the server.
> >
> > I am trying to understand the sample application packaged with v1.3 but
> > unsure just what goes into WEB-INF\classes in my WAR module and what 
>goes on
> > the client side as well. I understand the runtime/classpath side fine, 
> > not what I gather is the emulation of a single instance but really where
> > both the client and the server load the classes (?). Should I simply 
> > that the identical packages of testcase classes go on BOTH?
> >
> > If anyone on this list has a moment, and knows the answer, it would help 
> > you could:
> >
> > 1. Point me somewhere where it is clear what testcase classes go on the
> > server side, which on the client side for say the example application.
> >
> > 2. Point me to other sample applications, ready made with the same
> > instructions.
> >
> > 3. Point me to/provide a separate attachment etc. of a WAR for the 
> > side and a JAR for the client side (no runtime included, just the 
> > and JUnit extensions) which demonstrates all that.
> >
>http://jakarta.apache.org/cactus/howto_classpath.html has a description of
>where the jars and classes should be in your webapp. What's missing? You
>should build your webapp the same way you've always done, except that you 
>to add some extra jars and your test classes in there.
> > 4. Point me to somewhere/someone else who could help.
> >
>Well, this is the place. If you don't get your responses here, you're outta
>luck, I think.
> > So, again, I have the runtime/classpath and container classpath issues 
> > my belt -- and understand why each web module needs its own copy of the 
> > jar files rather than making them globally available on the container's
> > global path, but feel clumsy having the same packages on both the client 
> > the server and noticing duplicate classes in the sample src distribution 
> > Cactus 1.3 which I recently downloaded. I was not able to glean this
> > information from the Cactus documentation though it was helpful in the
> > overall setup and understanding of the basic concepts.
> >
>What do you mean "duplicate classes"? If you're talking about the j2ee12 
>the j2ee13 classes, it's normal since the implementations differ if your
>container uses J2EE 1.2 or 1.3.
>Also, since your client VM isn't the same as your server VM, you have to
>duplicate the classpath somewhat.
>Laurent Duperval <mailto:laurent.duperval@masq.ca>
>Murphy's Laws for Frequent Flyers
>3.  If you arrive very early for a flight, it inevitably will be delayed.
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 

Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message