This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler 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 Customer Requirements for Developers this week in the Jobs Discussion 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Standalone client accessing EJB in Glassfish
 
jQuery in Action, 3rd edition