wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

The main problem was that I was running as a junit test and not as a client program. Thanks for the help references.
 
 
subject: wsad 5 - initial context from client module
 
Similar Threads
error in context lookup
Probelm in connection pool
Problem in lookup Oracle DataSource
Problem getting pooled connection to zOS database from Win2000 WAS 7.0
Problem occurs when using DataSource connection in WSAD