This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
 
subject: Standalone client accessing EJB in Glassfish