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();
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.
We encountered a classCastException as well.
Our problem was solved by putting the home interface into a jar file available on the classpath.