[jboss-jira] [JBoss JIRA] Created: (JBCLUSTER-208) ClassCastException after redeploying ejb to cluster
Brett Cave (JIRA)
jira-events at lists.jboss.org
Wed Jul 30 11:17:27 EDT 2008
ClassCastException after redeploying ejb to cluster
---------------------------------------------------
Key: JBCLUSTER-208
URL: https://jira.jboss.org/jira/browse/JBCLUSTER-208
Project: JBoss Clustering
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: EJB3
Environment: jboss-4.2.2 on centos, with jdk-1.5.0_15
Reporter: Brett Cave
Assignee: Brian Stansberry
deploying 2 EARs.
node1 is the deployment server, where application is hot-deployed into farm. node2 is a cluster member.
EAR1:
baseEJB1-ejb.jar, packaged in base-ear.ear (contains ejb class BaseManagerBean which implements interface BaseManager).
EAR2:
alpha.war and alpha-ejb.jar, packaged in alpha-ear.ear. A class in alpha-ejb (ProcessHandlerBean) instantiates the ejb, as follows:
public class ProcessHandlerBean implements ProcessHandler {
@EJB(beanName="BaseManagerBean")
protected BaseManager baseman;
...
}
Rebuild and deploy EAR2 to the cluster, causes no problems
Running jboss with a single node (non-clustered) and rebuild and redeploy EAR1, then rebuild and redeploy EAR2 has no problems.
In a clustered environment
If i rebuild EAR1, redeploy it, then rebuild EAR2 (including the jar from EAR1 in the classpath for the libraries) and deploy, I get
ClassCastException from a class in alpha-ejb that instantiates the ejb from baseEJB, but only on my deployment node, node1. The other node,
node2, has no classcast exceptions. However, if i stop the deployment node1 and start it up again, then I get the ClassCastException on
node2, and node1 has no errors. Restarting node2 then resolves CCE error.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list