hi all, We are trying to implement JUNIT (3.8.1) into our application. Our application has EJBs. The application runs on a WAS 5.1 server. We do our development in WSAD 5.1.2 on Windows XP. In our development environment we wrote a simple test class and tried to run it from the WSAD environment. We added all the required JARs and fixed the errors one by one. At present we are stuck with the following error -
We went through a lot of forums and tried everything we found, it still gives the same error. Has anyone encountered this error? If so, please let us know how you got this fixed or even worked around this.
Sometimes if the test program is being run on a JVM version that is different from the hosted ear, you will get this problem.
More likely, the test is being run as a stand along, Java application, and not within a J2EE environment. To have a J2EE stand-alone client access a J2EE application, it must be run in a WebSphere J2EE context, which requires a separate set of JAR files to be available to the client.
Good luck. These types of exceptions are frustrating.