• Post Reply Bookmark Topic Watch Topic
  • New Topic

Standalone client accessing EJB in Glassfish

Mauricio Luiz
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!