Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Standalone client accessing EJB in Glassfish

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.
    Bookmark Topic Watch Topic
  • New Topic