]
Brian Stansberry commented on JBAS-5816:
----------------------------------------
Please open a forum thread in the Clustering user forum
(
) and include more
information about the CCE (e.g. stack traces).
ClassCastException after redeploying ejb to cluster
---------------------------------------------------
Key: JBAS-5816
URL:
https://jira.jboss.org/jira/browse/JBAS-5816
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Clustering, EJB3
Affects Versions: JBossAS-4.2.2.GA
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: