i have deployed a session bean example3.ear which i downloaded. it was working and to build the src i installed ant tool and j2ee.jar, i copied t he build ear and downloaded ear alternatively. Jboss gives same exception as mentioned below. how to resolve this.
14:04:55,756 ERROR [STDERR] java.lang.ClassCastException
14:04:55,799 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemot eObject.narrow(PortableRemoteObject.java:229)
14:04:55,800 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(Portabl eRemoteObject.java:137)
14:04:55,838 ERROR [STDERR] at test.session.SessionTestServlet.init(SessionT estServlet.java:29)
14:04:55,839 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load Servlet(StandardWrapper.java:1105)
14:04:55,840 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:932)
14:04:55,878 ERROR [STDERR] at org.apache.catalina.core.StandardContext.load OnStartup(StandardContext.java:3951)
14:04:55,920 ERROR [STDERR] at org.apache.catalina.core.StandardContext.star