Hi,
Actually you are right : you need to deploy your test class also. You have
to understand that Cactus has 2 parts: the client side part and the server
part. The server part is needed to be able to run your tests _in_ the server
container. In effect your test class is instanciated twice : once on the
client side (where the beginXXX() and endXXX() methods are executed) and
once on the server side (it is instanciated by the cactus redirector
servlet), where the testXXX() method is executed.
Follow the instructions found at
http://jakarta.apache.org/commons/cactus/installation.html. It normally has
everything to get you going (without needing Ant). Tell us if something is
not clear in these instructions so we can amend it.
Thanks
-Vincent
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 11:06 AM
Subject: trouble with setup
> Hi,
> As I'm not using Ant etc. and one of the app servers listed in the
> docs I've kind of run into a bit of a dead end, although I have a
> feeling it's my setup ;)
>
> I've been trying to create a simple case to get me going, a basic
> HelloWorld type servlet and just test that. However, when I execute my
> test I get the following error in my logs:
> java.lang.ClassNotFoundException: Test_HelloWorld
> at com.iona.j2ee.web.jar.ArchiveClassLoader.findBytes
> (ArchiveClassLoader.java:86)
> at com.iona.j2ee.web.jar.ArchiveClassLoader.findClass
> (ArchiveClassLoader.java:91)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at java.lang.ClassLoader.loadClassInternal
> (ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> etc. etc.
>
> My issue here is that Test_HelloWorld is the test class so I didn't
> think this should be deployed. Any hints with the setup ? I thought
> I had it worked out, but apparently not. I'm deploying my app into
> IONA iPAS1.3.
> Is there a basic example like the one I'm trying already out there
> on the web ?
> Any advice / help greatly appreciated,
> w.
>
>
> ----------------------------------------------------
> Get your free email account at http://www.online.ie/
>