We have a project that we shoud update from ejb2.1 to 3.1 and jboss from 3.2.1 to latest Jboss6 milestone. Our Project Structure: we have an ear that contains application.xml, that points to ejb-jar(2.1) classes, but actual clasess are stored in WEB-INF/classes. Now when we load ejb via jndi we get it, but when we are trying to cast in business interface we get ClassCastException. I think it is an issue with classloaders. Could anyone help how to setup jboss6 to use one classloader for all classes.
Thx