File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 30789
    
157

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: 30789
    
157

The main problem was that I was running as a junit test and not as a client program. Thanks for the help references.
 
Don't get me started about those stupid light bulbs.
 
subject: wsad 5 - initial context from client module