Yes we're doing itfor all of our beans as well. When it's run you need the jndi.properties file or to pass all of the jndi on the command line. I would guess that you don't have the classes available (Home /Remote interface) available. Also, could that app that you are running through not have the classes in their path OR does it have it's own naming server and the properties for jboss are not being used. Dump out the environment before you do your lookup to see what the properties are set to.
John Moore
-----Original Message-----
From: Dimitri PISSARENKO [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Testing EJBs with JUnit
Hello!
Has someone experience with testing EJBs using JUnit?
I've some entity beans and want to ensure that their basic functions
(creation, editing and deletion of records in the database) do work
properly after changes (see attachment TestProjectBean.java).
But I get a NoClassDefFoundError when I run this test, although all
classes used are in the classpath (full stacktrace is given in
attachment 2002_07_17_stackTrace.txt).
If I put the same statements into a normal Java application,
everything works fine.
Any help is highly appreciated
Dimitri Pissarenko
