6 Replies Latest reply on Dec 20, 2010 9:13 PM by louishui

    JBOSS 5.1 REDEPLOY PROBLEM

    louishui

      OS: Windows Server 2003

      JAVA VERSION: JDK 5

      AS: JBOSS 5.1

       

      I found some problem on remote redeploy the application in war format through the administrative console.

      Sometimes it will give out error like:

       

      Failed to update online_app_hk.war (java.io.IOException:Failed to rename 'D:\jboss-5.1.0.GA\server\default\deploy\online_app_hk.war.rej' to 'D:\jboss-5.1.0.GA\server\default\deploy\online_app_hk.war'. ***** FAILED TO ROLLBACK TO ORIGINAL APPLICATION FILE. *****: java.io.FileNotFoundException:D:\jboss-5.1.0.GA\server\default\deploy\online_app_hk.war.rej (Access is denied)).

       

      I already delete the hdscanner-jboss-beans.xml, but the error still happens randomly.

       

      I am really stuck on this problem. Would anyone give a hand to solve the problem?

       

      Thanks,

      Louis

        • 1. Re: JBOSS 5.1 REDEPLOY PROBLEM
          wdfink

          AFAIK, for JBoss 5 the Java6 is recommended.

          can you retest with Java6?

          I'm not sure but we have sporadicaly also problems with windows and such file permissions, our production is only Unix and there we havn't seen such.

          The (Access is denied) points to similar problems.

          Could you describe exact and show the relevant part of the logfile?

           

          BTW the hdscanner is only for automatic redeploy and should not affect the manual deploy by console.

          • 2. Re: JBOSS 5.1 REDEPLOY PROBLEM
            jaikiran

            Louis Hui wrote:

             


            Sometimes it will give out error like:

             

            Failed to update online_app_hk.war (java.io.IOException:Failed to rename 'D:\jboss-5.1.0.GA\server\default\deploy\online_app_hk.war.rej' to 'D:\jboss-5.1.0.GA\server\default\deploy\online_app_hk.war'. ***** FAILED TO ROLLBACK TO ORIGINAL APPLICATION FILE. *****: java.io.FileNotFoundException:D:\jboss-5.1.0.GA\server\default\deploy\online_app_hk.war.rej (Access is denied)).

             

            By the way, that's the first time I'm seeing a error message like that one. Can you post the entire exception stacktrace?

            • 3. Re: JBOSS 5.1 REDEPLOY PROBLEM
              louishui

              The server is run in service and the service is run as administrator account.

              Here is the log found in server.log

               

              The war file is exploded deploy. After the error display, i can found new folder online_app_hk.war.rej  is created with the content of new war file.

               

              2010-12-20 16:00:10,015 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (ResourceContainer.invoker.nonDaemon-3) undeploy, ctxPath=/hrm
              2010-12-20 16:00:10,031 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHandler] (ResourceContainer.invoker.nonDaemon-3) End stop, [vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/]
              2010-12-20 16:00:10,031 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHandler] (ResourceContainer.invoker.nonDaemon-3) Remove, [vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/]
              2010-12-20 16:00:10,078 WARN  [org.rhq.core.pc.content.ContentDiscoveryRunner] (Content.discovery-6) Exception received from component while attempting content retrieval
              java.lang.IllegalStateException: Deployment file 'D:\jboss-5.1.0.GA\server\default\deploy\online_app_hk.war' for ResourceType[id=0, category=Service, name=Web Application (WAR), plugin=JBossAS5] Resource with key [vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/] does not exist.
              at org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent.discoverDeployedPackages(StandaloneManagedDeploymentComponent.java:146)
              at sun.reflect.GeneratedMethodAccessor458.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:592)
              at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:482)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
              at java.util.concurrent.FutureTask.run(FutureTask.java:123)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
              at java.lang.Thread.run(Thread.java:595)
              2010-12-20 16:00:10,093 WARN  [org.rhq.core.pc.content.ContentDiscoveryRunner] (Content.discovery-7) Exception received from component while attempting content retrieval
              java.lang.IllegalStateException: Deployment file 'D:\jboss-5.1.0.GA\server\default\deploy\online_app_hk.war' for ResourceType[id=0, category=Service, name=Web Application (WAR), plugin=JBossAS5] Resource with key [vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/] does not exist.
              at org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent.discoverDeployedPackages(StandaloneManagedDeploymentComponent.java:146)
              at sun.reflect.GeneratedMethodAccessor458.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:592)
              at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:482)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
              at java.util.concurrent.FutureTask.run(FutureTask.java:123)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
              at java.lang.Thread.run(Thread.java:595)
              2010-12-20 16:00:10,531 WARN  [org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator] (ResourceContainer.invoker.daemon-5) Cannot create String name from non-Simple property: ManagedProperty{JNDIName,JNDIName,metaType=SimpleMetaType:java.lang.String}, value=null
              2010-12-20 16:00:10,546 WARN  [org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator] (ResourceContainer.invoker.daemon-5) Cannot create String name from non-Simple property: ManagedProperty{JNDIName,JNDIName,metaType=SimpleMetaType:java.lang.String}, value=null
              2010-12-20 16:00:11,906 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,906 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,906 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,921 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,921 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,921 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,921 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,921 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,921 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,921 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,937 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,937 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,937 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,937 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,937 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:11,937 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:12,093 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:12,093 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:12,093 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:12,093 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.
              2010-12-20 16:00:12,093 WARN  [org.rhq.plugins.jbossas5.StandaloneManagedDeploymentComponent] (ResourceContainer.invoker.daemon-5) JavaEEWebApplication deployment 'vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/' not found. Cause: Managed deployment: vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/online_app_hk.war/ not found.

              • 4. Re: JBOSS 5.1 REDEPLOY PROBLEM
                jaikiran

                Do you want to deploy the application only through admin console or are you OK with manually deploying/redeploying the application? If manual deployment is an option, then I would recommend that you just place the .war in the JBOSS_HOME/server/default/deploy and whenever you want to redeploy, just delete that .war and place a new one.

                • 5. Re: JBOSS 5.1 REDEPLOY PROBLEM
                  shelly.mcgowan

                  If you decide to manage your resources using the Administration Console, you should not manipulate the contents outside of the Administration Console.    (Noted in the Admin Console Quick Start Guide ).  I'm not sure if that is the situation you're encountering.  You may try to just *Add* the resource again (instead of redeploy).

                  • 6. Re: JBOSS 5.1 REDEPLOY PROBLEM
                    louishui

                    Thanks all for the suggestion. More testing is done on the deployment.

                    I try to choose non-exploded deployment this time,  it works perfect.

                    I guess the deleting speed on exploded application  is much slower than a single packed war file.

                    The AS react too fast to rename the folder name before the deletion is completed.

                    So the rename exception is thrown.

                    If it is the situation, what can i do on the setting of OS Level or AS?