I have a applet to connect to Jboss 3, some users said they cannot connect now (they can do it before). They said they didn't change anything with the system.
I put some debug statement and found that the problem occur in the following codes.
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL, "jnp://12.204.246.246:1099");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
Context initial = new InitialContext(props);
The full error messge is:
java.lang.ClassCastException: java.net.URL
at sun.plugin.security.PluginClassLoader$2.nextElement(Unknown Source)
at sun.misc.CompoundEnumeration.nextElement(Unknown Source)
at com.sun.naming.internal.VersionHelper12$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.naming.internal.VersionHelper12$InputStreamEnumeration.getNextElemen
t(Unknown Source)
at
com.sun.naming.internal.VersionHelper12$InputStreamEnumeration.hasMore(Unkno
wn Source)
at com.sun.naming.internal.ResourceManager.getApplicationResources(Unknown
Source)
at com.sun.naming.internal.ResourceManager.getInitialEnvironment(Unknown
Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
Do you know why?
Thanks,
Andy