0 Replies Latest reply on Aug 28, 2003 9:11 AM by hemesath

    Problem with Hot-Redeploy

    hemesath Newbie

      Hi,

      I get a problem with hot-redeploy using Jboss-3.2.1 and Win2K. It seems that Jboss can't delete a EJB from his cache. When I try to delete manually windows pop ups a message "There has been a sharing violation" and dont delete it.

      This is what the console of JBoss show when a re-deploy is made.

      12:01:56,521 INFO [MainDeployer] Undeploying file:/C:/jboss-3.2.1_tomcat-4.1.24
      /server/default/deploy/Usuario.jar
      12:01:56,521 INFO [EjbModule] Stopping
      12:01:56,531 INFO [StatelessSessionContainer] Stopping
      12:01:56,531 INFO [StatelessSessionInstancePool] Stopping
      12:01:56,531 INFO [StatelessSessionInstancePool] Stopped
      12:01:56,531 INFO [StatelessSessionContainer] Stopped
      12:01:56,531 INFO [StatelessSessionContainer] Stopping
      12:01:56,531 INFO [StatelessSessionInstancePool] Stopping
      12:01:56,531 INFO [StatelessSessionInstancePool] Stopped
      12:01:56,531 INFO [StatelessSessionContainer] Stopped
      12:01:56,531 INFO [StatelessSessionContainer] Stopping
      12:01:56,531 INFO [StatelessSessionInstancePool] Stopping
      12:01:56,531 INFO [StatelessSessionInstancePool] Stopped
      12:01:56,531 INFO [StatelessSessionContainer] Stopped
      12:01:56,531 INFO [EntityContainer] Stopping
      12:01:56,531 INFO [EntityInstancePool] Stopping
      12:01:56,531 INFO [EntityInstancePool] Stopped
      12:01:56,531 INFO [EntityContainer] Stopped
      12:01:56,541 INFO [EntityContainer] Stopping
      12:01:56,541 INFO [EntityInstancePool] Stopping
      12:01:56,541 INFO [EntityInstancePool] Stopped
      12:01:56,541 INFO [EntityContainer] Stopped
      12:01:56,541 INFO [EntityContainer] Stopping
      12:01:56,541 INFO [EntityInstancePool] Stopping
      12:01:56,541 INFO [EntityInstancePool] Stopped
      12:01:56,551 INFO [EntityContainer] Stopped
      12:01:56,551 INFO [EjbModule] Stopped
      12:01:56,551 INFO [EjbModule] Destroying
      12:01:56,571 INFO [StatelessSessionContainer] Destroying
      12:01:56,571 INFO [StatelessSessionInstancePool] Destroying
      12:01:56,571 INFO [StatelessSessionInstancePool] Destroyed
      12:01:56,571 INFO [StatelessSessionContainer] Destroyed
      12:01:56,581 INFO [StatelessSessionContainer] Destroying
      12:01:56,581 INFO [StatelessSessionInstancePool] Destroying
      12:01:56,581 INFO [StatelessSessionInstancePool] Destroyed
      12:01:56,581 INFO [StatelessSessionContainer] Destroyed
      12:01:56,581 INFO [StatelessSessionContainer] Destroying
      12:01:56,581 INFO [StatelessSessionInstancePool] Destroying
      12:01:56,581 INFO [StatelessSessionInstancePool] Destroyed
      12:01:56,581 INFO [StatelessSessionContainer] Destroyed
      12:01:56,591 INFO [EntityContainer] Destroying
      12:01:56,591 INFO [EntityInstancePool] Destroying
      12:01:56,591 INFO [EntityInstancePool] Destroyed
      12:01:56,591 INFO [EntityContainer] Destroyed
      12:01:56,591 INFO [EntityContainer] Destroying
      12:01:56,591 INFO [EntityInstancePool] Destroying
      12:01:56,591 INFO [EntityInstancePool] Destroyed
      12:01:56,591 INFO [EntityContainer] Destroyed
      12:01:56,601 INFO [EntityContainer] Destroying
      12:01:56,601 INFO [EntityInstancePool] Destroying
      12:01:56,601 INFO [EntityInstancePool] Destroyed
      12:01:56,601 INFO [EntityContainer] Destroyed
      12:01:56,611 INFO [EjbModule] Destroyed
      12:01:56,621 INFO [EJBModule] destroy(), remove EJB-Module: jboss.management.lo
      cal:J2EEApplication=null,J2EEServer=Local,j2eeType=EJBModule,name=Usuario.jar
      12:01:56,631 WARN [DeploymentInfo] Could not delete directory file:/C:/jboss-3.
      2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/deploy/Usuario.jar/78
      .Usuario.jar restart will delete it
      12:01:56,631 INFO [MainDeployer] Undeployed file:/C:/jboss-3.2.1_tomcat-4.1.24/
      server/default/deploy/Usuario.jar
      12:01:56,631 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      -3.2.1_tomcat-4.1.24/server/default/deploy/Usuario.jar
      12:01:57,473 INFO [EjbModule] Creating
      12:01:57,513 INFO [EjbModule] Deploying UsuarioBDReg
      12:01:57,533 INFO [EjbModule] Deploying UsuarioClasseBDReg
      12:01:57,543 INFO [EjbModule] Deploying GravadoraBDReg
      12:01:57,563 INFO [EjbModule] Deploying UsuarioBD
      12:01:57,583 INFO [EjbModule] Deploying UsuarioRNVal
      12:01:57,613 INFO [EjbModule] Deploying UsuarioRN
      12:01:57,643 INFO [EntityContainer] Creating
      12:01:57,663 INFO [EntityInstancePool] Creating
      12:01:57,663 INFO [EntityInstancePool] Created
      12:01:57,663 INFO [EntityContainer] Created
      12:01:57,673 INFO [EntityContainer] Creating
      12:01:57,683 INFO [EntityInstancePool] Creating
      12:01:57,683 INFO [EntityInstancePool] Created
      12:01:57,693 INFO [EntityContainer] Created
      12:01:57,693 INFO [EntityContainer] Creating
      12:01:57,713 INFO [EntityInstancePool] Creating
      12:01:57,713 INFO [EntityInstancePool] Created
      12:01:57,713 INFO [EntityContainer] Created
      12:01:57,723 INFO [StatelessSessionContainer] Creating
      12:01:57,743 INFO [StatelessSessionInstancePool] Creating
      12:01:57,743 INFO [StatelessSessionInstancePool] Created
      12:01:57,743 INFO [StatelessSessionContainer] Created
      12:01:57,753 INFO [StatelessSessionContainer] Creating
      12:01:57,763 INFO [StatelessSessionInstancePool] Creating
      12:01:57,763 INFO [StatelessSessionInstancePool] Created
      12:01:57,773 INFO [StatelessSessionContainer] Created
      12:01:57,773 INFO [StatelessSessionContainer] Creating
      12:01:57,793 INFO [StatelessSessionInstancePool] Creating
      12:01:57,793 INFO [StatelessSessionInstancePool] Created
      12:01:57,793 INFO [StatelessSessionContainer] Created
      12:01:57,793 INFO [EjbModule] Created
      12:01:57,803 INFO [EjbModule] Starting
      12:01:57,803 INFO [EntityContainer] Starting
      12:01:58,134 INFO [EntityInstancePool] Starting
      12:01:58,134 INFO [EntityInstancePool] Started
      12:01:58,134 INFO [EntityContainer] Started
      12:01:58,134 INFO [EntityContainer] Starting
      12:01:58,184 INFO [EntityInstancePool] Starting
      12:01:58,184 INFO [EntityInstancePool] Started
      12:01:58,184 INFO [EntityContainer] Started
      12:01:58,184 INFO [EntityContainer] Starting
      12:01:58,384 INFO [EntityInstancePool] Starting
      12:01:58,384 INFO [EntityInstancePool] Started
      12:01:58,384 INFO [EntityContainer] Started
      12:01:58,394 INFO [StatelessSessionContainer] Starting
      12:01:58,414 INFO [StatelessSessionInstancePool] Starting
      12:01:58,414 INFO [StatelessSessionInstancePool] Started
      12:01:58,414 INFO [StatelessSessionContainer] Started
      12:01:58,424 INFO [StatelessSessionContainer] Starting
      12:01:58,444 INFO [StatelessSessionInstancePool] Starting
      12:01:58,444 INFO [StatelessSessionInstancePool] Started
      12:01:58,444 INFO [StatelessSessionContainer] Started
      12:01:58,444 INFO [StatelessSessionContainer] Starting
      12:01:58,624 INFO [StatelessSessionInstancePool] Starting
      12:01:58,624 INFO [StatelessSessionInstancePool] Started
      12:01:58,634 INFO [StatelessSessionContainer] Started
      12:01:58,634 INFO [EjbModule] Started
      12:01:58,634 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.1_tomcat-4.1.24/se
      rver/default/deploy/Usuario.jar
      12:01:58,704 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.1_tomcat-
      4.1.24/server/default/deploy/Usuario.jar



      After that a second instance of Usuario.jar is created in the cache. When I try to access the EJB a ClassCastException is thow.

      Thanks for the help