Your deployed jar must also contain Cactus.jar


On 6/21/07, Vaidya, Supriya A (US - Chicago) <[EMAIL PROTECTED]> wrote:

I have been running my test suites from within Eclipse IDE, and when I
run them as a JUnit test case, or a ServletTestCase, they work fine.
However, my company now wants me to be able to execute these test cases
from within a server, where Eclipse is not installed. I therefore am
trying to use the junit.swingui.TestRunner.main method.. however, I
constantly receive the: java.lang.NoClassDefFoundError:
org/apache/cactus/ServletTestCase. I have verified that cactus-1.7.2.jar
is in teh classpath (and I can see the class in the jar!!). I have
verified that junit-3.8.1.jar is also in the classpath.

What am I doing wrong?

Supriya A Vaidya
Technology Integration
Deloitte Consulting LLP
Tel: +1 312 486 4835
Fax: +1 312 247 4835
Mobile: + 1 414 736 8157 <>

This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message.

Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

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

Reply via email to