This content has been marked as final.
Show 2 replies
-
1. Re: Access an EJB from a servlet
jaikiran Mar 20, 2008 10:13 AM (in response to namezero912)See this http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions
Probably, you have the bean interface in more than one place. How have you packaged your application? Is it a ear file? -
2. Re: Access an EJB from a servlet
namezero912 Mar 20, 2008 11:28 AM (in response to namezero912)Thank you, giving this hint solved my problem. The ejb itself was properly deployed (I had a common.jar file that had the two interfaces and serverside ejb file which had the ejb class as jar, and another ear file that contained both jar files as modules). However, I thought that I would also have to put the common.jar into the lib/ dir of the servlet.war file which was not the case.
Kind regards,
Marius Shekow