Wednesday, June 4, 2003 10:57 PM
I encountered this problem as well when trying to run a JUnit test under WebSphere Studio Application Developer (WSAD) 5 that obtains a WSAD WAS 4 Test Server database connection from a configured datasource.
I was able to solve it by changing the default JRE I was using to a WebSphere v4 JRE. Follow these steps:
1. Open WSAD Preferences (Window->Preferences)
2. Navigate to Java->Installed JRE's
3. Check the Websphere v4 or WebSphere v5 JRE option
4. Let your projects be rebuilt, stop and start your severs as appropriate and run your JUnit test again.
I re-ran the test and was able to obtain the database connection.