users@glassfish.java.net

Re: EJB Client runs in Netbeans, but not outside

From: Kristian Rink <kawazu_at_zimmer428.net>
Date: Fri, 29 Feb 2008 12:21:20 +0100

Am Fri, 29 Feb 2008 03:29:41 PST
schrieb glassfish_at_javadesktop.org:
[...]
> Runs still fine from Netbeans, but on the console I get:
>
> javax.naming.NoInitialContextException: Cannot instantiate class:
> com.sun.enterprise.naming.SerialInitContextFactory [Root exception is
> java.lang.ClassNotFoundException:
> com.sun.enterprise.naming.SerialInitContextFactory]
> javax.naming.NoInitialContextException: Cannot instantiate class:
> com.sun.enterprise.naming.SerialInitContextFactory [Root exception is
> java.lang.ClassNotFoundException:
> com.sun.enterprise.naming.SerialInitContextFactory]


How do you run it from the console? Have you been careful to have
appserv-rt.jar on your classpath while doing so?
Cheers,

Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu_at_jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)