[jboss-user] [EJB/JBoss] - Re: ClassCastException problem when doing hot redeploy

msqrt84 do-not-reply at jboss.com
Thu Dec 28 08:22:29 EST 2006


I have the same problem, but do not go over RMI:


  |                                 InitialContext jndi;
  |                                 PortalVisitorStatisticsHome portalVisitorStatisticsHome;
  |                                 PortalVisitorStatistics portalVisitorStatistics;
  | 
  |                                 jndi = new InitialContext();
  | 
  |                                 portalVisitorStatisticsHome = (PortalVisitorStatisticsHome) jndi.lookup("portal-VisitorStatistics");
  | 

When I do hot-redeploy console content is:

  | 2006-12-28 16:08:33,814 INFO  [org.jboss.ejb.EJBDeployer] Undeploying: file:/D:/jboss-4.0.2/server/default/deploy/portal.jar
  | 2006-12-28 16:08:33,914 INFO  [org.jboss.ejb.EjbModule] Undeployed PortalVisitorStatisticsEJB
  | 2006-12-28 16:08:33,924 INFO  [org.jboss.ejb.EjbModule] Undeployed PortalRedirectEJB
  | 2006-12-28 16:08:33,924 INFO  [org.jboss.ejb.EjbModule] Undeployed PortalInteractionEJB
  | 2006-12-28 16:08:33,934 INFO  [org.jboss.ejb.EjbModule] Undeployed PortalSessionEJB
  | 2006-12-28 16:08:33,944 WARN  [org.jboss.deployment.DeploymentInfo] Could not delete file:/D:/jboss-4.0.2/server/default/tmp/deploy/tmp10241portal.jar restart will delete it
  | 2006-12-28 16:08:34,415 INFO  [org.jboss.ejb.EjbModule] Deploying PortalSessionEJB
  | 2006-12-28 16:08:34,445 INFO  [org.jboss.ejb.EjbModule] Deploying PortalInteractionEJB
  | 2006-12-28 16:08:34,495 INFO  [org.jboss.ejb.EjbModule] Deploying PortalRedirectEJB
  | 2006-12-28 16:08:34,515 INFO  [org.jboss.ejb.EjbModule] Deploying PortalVisitorStatisticsEJB
  | 2006-12-28 16:08:35,076 INFO  [org.jboss.ejb.EJBDeployer] Deployed: file:/D:/jboss-4.0.2/server/default/deploy/portal.jar
  | 

And then ClassCastException!

I use JBoss 4.0.2

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996630#3996630

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996630



More information about the jboss-user mailing list