[jboss-jira] [JBoss JIRA] Resolved: (JBAS-5816) ClassCastException after redeploying ejb to cluster

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Nov 17 07:50:29 EST 2009


     [ https://jira.jboss.org/jira/browse/JBAS-5816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry resolved JBAS-5816.
------------------------------------

    Resolution: Out of Date


If you're still seeing this with AS 5.1 or later, please re-open and provide the information requested in my previous comment.

> 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: 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