javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory [Root exception is
java.lang.ClassNotFoundException:
org.jnp.interfaces.NamingContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
This is on server-side of GWT while I am trying to access our session
beans.
Any ideas?
Thanks!
to me it sounds like a classpath issue.
How do you launch the development shell? In eclipse? By any means you
should make sure that the jar with the
org.jnp.interfaces.NamingContextFactory class is in the classpath. In
eclipse you would go to 'Run...' -> 'Classpath' tab -> add the jar to
the user entries.
Hope it helps and tell us if you could make any progress
Dominik
On 21 Mrz., 00:58, "allioop70" <allioo...@gmail.com> wrote:
> I have code that works fine when deployed to a server, but when I try
> to run within theGWTdevelopment shell I get this error:
>
> javax.naming.NoInitialContextException: Cannot instantiate class:
> org.jnp.interfaces.NamingContextFactory [Root exception is
> java.lang.ClassNotFoundException:
> org.jnp.interfaces.NamingContextFactory]
> at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
> at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
> at javax.naming.InitialContext.init(Unknown Source)
> at javax.naming.InitialContext.<init>(Unknown Source)
>
> This is on server-side ofGWTwhile I am trying to access our session
> beans.
>
> Any ideas?
>
> Thanks!
But, why will the dev shell not stop at any break points when I run it
this way?
On Mar 21, 2:08 am, "Dominik Steiner" <Dominik.Stei...@partner.bmw-
well, if you execute 'Run...' it starts the application NOT in debug
mode. In order for the app to stop at breakpoints you have to go to
'Debug...' and do the same as above mentioned.
HTH
Dominik