Hi,
This code below works fine in a test class run from my PC.
However when I put it in a WebStart downloaded client, the app thows an InvalidClassException.
env= new Hashtable<String, String> (); env.put (Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put (Context.PROVIDER_URL, "jnp://localhost:1099"); env.put (Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); jndiContext = new InitialContext(env);My app prints the following info out:
Naming Exception Explanation: Failed to retrieve Naming interface Root Cause: java.io.InvalidClassException: org.jboss.invocation.InvokerInterceptor; unable to create instanceNOTE: The downloaded app will not always have access to my JDK and JBoss lib's, so I pulled "org.jnp.interfaces.NamingContextFactory" and all the classes it calls from the local jboss server's jbossall-client.jar and re-jarred them into a resource that is downloaded with the jnlp file.