Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsad 5 - initial context from client module

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to access the initial context from a client module in WSAD 5.1. I get an initial context, but when I try to get the datasource from it, I get:
NoClassDefFoundError
Invalid Implementation Key, com.ibm.ws.transaction.TXCurrent
I also get this error if I call an access bean from the client. Any ideas of where this file is or what else could be causing the error?
My code is:

Also, are there any tricks about running from the client in 5.1. Like in 4.0, we had to change the JRE for the client project.
[ April 20, 2004: Message edited by: Jeanne Boyarsky ]
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a trick or two. It's documented in the InfoCenter. Look for "Configuring data access for application clients" or "Application Client Resource Configuration Tool" for the reference.
Or alternatively, look in the EJB client chapter of my book.
Kyle
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main problem was that I was running as a junit test and not as a client program. Thanks for the help references.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic