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 the 
> 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, just 
> 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 assume 
> 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 if 
> 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.
> 

http://jakarta.apache.org/cactus/howto_classpath.html

> 2. Point me to other sample applications, ready made with the same 
> instructions.
> 

Dunno.

> 3. Point me to/provide a separate attachment etc. of a WAR for the webapp 
> side and a JAR for the client side (no runtime included, just the testcases 
> 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 nee
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 under 
> my belt -- and understand why each web module needs its own copy of the key 
> 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 and 
> the server and noticing duplicate classes in the sample src distribution for 
> 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 and
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.

L

-- 
Laurent Duperval <mailto:[EMAIL PROTECTED]>

Murphy's Laws for Frequent Flyers
3.  If you arrive very early for a flight, it inevitably will be delayed.




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

Reply via email to