This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Standalone client accessing EJB in Glassfish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Standalone client accessing EJB in Glassfish" Watch "Standalone client accessing EJB in Glassfish" New topic
Author

Standalone client accessing EJB in Glassfish

Mauricio Luiz
Greenhorn

Joined: Sep 03, 2007
Posts: 10
Hi folks.

I have a standalone client trying to access an EJB that is in glassfish. The client is a java se application and it works just fine when ran from Eclipse.
But when I pack it in a jar and try to run - for now, I'm running it from the same machine where glassfish is - I get this error:



at this point in the code:



I am using the InitialContext no-args constructor - InitialContext().

The problem - as the exception says - is that it is not finding com.sun.enterprise.naming.SerialInitContextFactory. Which jar am I missing in the client's app classpath?

I did some research and i'm using gf-client.jar in client's classpath - already tried some others as well - but it just doesnt find SerialInitContextFactory class.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Standalone client accessing EJB in Glassfish
 
Similar Threads
Call secured Remote EJB from WebClient
cannot retrieve stateless bean using JNDI
error while running a stateless session bean in netbeans 6.9.1
Connection to remote Glassfish server
EJB Standalone Client Remote Lookup Problem