-
1. Re: EJB 3.0 with Servlets produces ClassCastException!
bill.burke Sep 28, 2005 1:04 PM (in response to jbosschecker)Do you have copies of your stateful interfaces in your war and ejb.jar? This would cause the CCE's.
-
2. Re: EJB 3.0 with Servlets produces ClassCastException!
jbosschecker Sep 28, 2005 6:30 PM (in response to jbosschecker)Hi Bill,
thanks for your reply..
I use the JBoss IDE to do the things exactly the way, how the jboss tutorials (jboss ide-, jboss ejb 3.0 - and dvd store trails) demonstrate.
I let JBoss IDE create 3 jar files, one .par, where the entities reside, one .ejb3 where the sfsb, slsb and invoker classes reside, and one .war file where the jsp, css, html and whithin the WEB-INF/classes directory the servlet reside.
It is exactly the way the tutorials demonstrate, and it works fine but afte 2-3 changes, new packaging and hot deploying, jboss dose not let me run the application again. I get the CCE again and again. After a restart of jboss, I can work again, and everything is fine!
What are you meaning with the ejb.jar? is it the jar file, where the sfsb and slsb and mdb reside?
I took a look in that war file but there are no copies of my stateful interfaces. Those interfaces are just in the business.ejb3 file, where they reside beside the implementation clases (the bean classes itselves).
But it looks exactly like the tutorials do.
If you wish, I can send the business.ejb3 file to see it yourself.
Thanks again. -
3. Re: EJB 3.0 with Servlets produces ClassCastException!
jbosschecker Sep 29, 2005 7:59 PM (in response to jbosschecker)It's really amazing!
The same code, that throws the exceptions in the servlets, works fine in the jsp files!!
But why?!