I have determined that my problem is not a cactus issue.

Just wanted to let everyone on the list know.  Thanks to those that read and
considered my msg.

Sincerely,
Ryan



-----Original Message-----
From: Ryan Thoma [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 12, 2001 6:16 PM
To: [EMAIL PROTECTED]
Subject: Why can't Cactus Find My Server JAR? I get a
NoClassDefFoundErro r



Hello,

I'm having a config problem with Cactus.  Previously, I have been able to
correctly test servlets and EJB's with Cactus ... but I'm just now hitting a
problem as I'm trying to use cactus to test an EJB which calls a helper
class (called JMSFactory) which uses classes out of a JAR file.  The
container (weblogic 6sp2) throws a remote exception saying that it can't
find this needed jar (IBM MQ Series JMS JAR).

Here's the error message I get:
1) testPlaceMixedBet(test.com.ilts.abs.service.BetMgrBeanTest)
java.rmi.RemoteException: EJB Exception: ; nested exception is:
        java.lang.NoClassDefFoundError: com/ibm/mq/jms/MQConnectionFactory
java.lang.NoClassDefFoundError: com/ibm/mq/jms/MQConnectionFactory
        <<no stack trace available>>

This needed JAR file is deployed in the web application WAR file (in my
WEB-INF\lib directory).  I point to the JAR in my client-side classpath
before I call the junit TestRunner.  I'm deploying my WAR and EJB JAR
separately (i.e. not in an EAR file).  Both my EJB JAR and my WAR contain
the helper (JMSFactory).  I even tried hard coding the path to the IBM MQ
Series JAR in the Weblogic server classpath... but still got the same
message.

Any ideas?  Please help!

Thanks (in advance),
Ryan

Reply via email to