1 Reply Latest reply on Dec 18, 2003 2:39 AM by pwijntjes

    CLASSCAST EXCEPTION ERROR????

    TJ Newbie

      hi;
      I got java.lang.ClassCastException: org.jnp.interfaces.MarshalledValuePair error whenever I tried to run my jsp page using JBoss release candidate 1 and 2. This problem is not happen if I use other computer. It seem that the JSP page can not cast after doing lookup. this is the snippet of the jsp code

      Properties props = new Properties();
      props.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      props.put(Context.PROVIDER_URL, "localhost:1099");

      Context ctx = new InitialContext(props);

      TestHome home = (TestHome)ctx.lookup("ejb/Test");

      Could somebody please help me? I'm having this problem for couple weeks now. (Maybe Jboss developer). I need this to get my project for my work done.

      Thank you very much.