This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Websphere and the fly likes wsad 5 - initial context from client module Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "wsad 5 - initial context from client module" Watch "wsad 5 - initial context from client module" New topic
Author

wsad 5 - initial context from client module

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

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 ]

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

The main problem was that I was running as a junit test and not as a client program. Thanks for the help references.
 
GeeCON Prague 2014
 
subject: wsad 5 - initial context from client module