Hi! I have a code for an Enterprise application. It contains files for a web application and an
ejb mixed. I had to run it. So what I did was that I separated the files of the ejb, web and the enterprise application. Then I created projects using netBeans for all of these three. Then I build the EJB project so it generated a .jar file for the project. Then the web application was using the EJBs so I gave the path of the .jar file of the ejb project i.e. the final distributable file of the ejb project. Then I added these modules into the enterprise application and deployed it.
I gave the above information as there might be a problem in the above process. Now ehen one of the web pages uses InitialContext.lookup, a correct object is being returned i.e. the actual bean object. But when I convert the object to it's interface type, I get a
ClassCastException: $Proxy430. This number after Proxy changes whenever I rebuild my project. So basically I think this is related to version of the files. So by the above information, can you figure what I am doing wrong.
I would be really thankful to anyone who could help (I am still thankful to Jaikiran who helped me
here)
