I have that exact same problem! I thought it was something weird about my code. It's with a different class of mine, of course. It seems to be almost like clockwork. On about the third re-deploy, bang, that class cast exception shows up and I have to restart the whole thing.
Hopefully we'll get a new build of seam soon + a new build of 4.0.3 for seam..
It might be resolvable via configuration.
I suspect it has to do with SFSB passivation, Conversation timeout and the use of extended PersistenceContext. But my Seam kung fu isn't very strong, and my knowledge of EJB3 is even worse...
But I have detected a pattern...
When you deploy and get this error:
19:16:58,358 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=com.inertiabev.affiliate.booking.HotelBookingAction
java.lang.IllegalStateException: Timer already cancelled.
The next time you deploy you will get the ClassCastException.
I never experienced that.
Hopefully we'll get a new build of seam soon + a new build of 4.0.3 for seam.. [/seam]
JBoss AS 4.0.3 is already out, you can use it as is.
Thomas, I get the following error when deploying to 4.0.3 (final). This error does not occur when deploying to the version of 4.0.3 that was bundled with Seam. Any ideas?
08:42:21,719 INFO [ServletContextListener] Welcome to Seam 1.0 beta 1
08:42:21,728 INFO [Seam] initializing Seam
08:42:23,070 ERROR [[/bm-hosted]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
at org.jboss.seam.Seam.getComponentType(Unknown Source)
Hi,may be jboss 4.0.3 version conflict?
It seems that is true.
I remember not clearly that using seam1.0beta, that happens, when using cvs version, from its version, it use updated jboss ejb3, no this case happeds.
Make sure you install JBoss with EJB3 support, use the installer.
I have the same problem for a long time. I'm using JBoss 4.0.3 final installed with installer :-)
I have this problem too. When I rebuild and redeploy EAR (ejb3) application, this error occurs:
Problem starting service jboss.j2ee:service=EJB3,name=cz.ps.invest.common.UserService
What is the problem?
I have this problem too. I use jboss 403 and also 403SP1. In both the pb is existing. If I redeploy the application 3 times .... the 4 th time will happen. Once the problem appear you have to restart jboss.