1 2 Previous Next 21 Replies Latest reply on Dec 28, 2006 8:22 AM by msqrt84 Go to original post
      • 15. Re: ClassCastException problem when doing hot redeploy

        Loic comes with a hint in the SourceForge bug-report mentionned above, that this may be caused by the new way files are handled in JDK 1.4+. It might not be a problem when running on JVMs prior to this. Haven't had time to check this out yet.

        • 16. Re: ClassCastException problem when doing hot redeploy
          sandnettie

          hmmm.... i believe i am using the IBM 1.3 JDK. Perhaps i should be using the Sun JDK?

          • 17. Re: ClassCastException problem when doing hot redeploy
            olivergeorge

            And me also. Real killer bug, shame the error is so generic that people keep getting confused. I can repeat it and have done any number of ways. The paid for jboss doco CMP example even suffer this ailment.

            If someone can help I'd be very grateful.

            • 18. Re: ClassCastException problem when doing hot redeploy
              thoennes

              We also experience this problem with the newest
              JBoss 3.0.4-Tomcat 4.1.12 and the newest JDK 1.4.1 on Linux.

              I re-deploy the EAR file containing a WAR file, and if my
              servlet tries to access an EJB using javax.rmi.PortableRemoteObject.narrow, I get a ClassCastException. See attached log.

              I thought the redeployment problems have been fixed with 3.0.4.

              Cheers, Jörg

              • 19. Re: ClassCastException problem when doing hot redeploy
                liejian

                THis problem is not specific to 1.4 as suggested in an earlier post. I just used jdk1.3.1 and this problem also exists. Has anyone from the jboss group responded to this post? It seems like it is a rather large bug!

                LJ

                • 20. Re: ClassCastException problem when doing hot redeploy

                  Again,

                  Remove jndi.properties from deployment or
                  don't set up an initial context to go over RMI

                  Regards,
                  Adrian

                  • 21. Re: ClassCastException problem when doing hot redeploy
                    msqrt84

                    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

                    1 2 Previous Next