Hi,
maybe you have other libraries on your CLASSPATH in NetBeans than when you run GlassFish stand alone?
When it "crashes", do you see an stack trace? Can you post it?
What kind of application is this? Normally you should be able to do JNDI lookups via the Context.
Cheers
Chris
[Message sent by forum member 'chrjohn' (chrjohn)]
http://forums.java.net/jive/thread.jspa?messageID=286846