10 Replies Latest reply on Jul 9, 2007 12:01 AM by jiten007

    [deploymentinfo] and temporary files

    garryj33

      I am having a problem with bean re-deployment. Jboss does not overwrite its temporary files, the message appears [DeploymentInfo] could not delete file (** see below **) restart will delete it.

      I am worried that Jboss is not cleaning up properly - is there a way to correct this ?

      **
      (the file is in default/ tmp/ deploy/ test.jar)

        • 1. Re: [deploymentinfo] and temporary files
          dimitris

          This is not a problem. It only appear on Windows due to bugs in the jdk.

          • 2. Re: [deploymentinfo] and temporary files
            garryj33

            so can it be fixed ? it is a problem as the Home interface cannot be found next time you activate a jsp page refering to the updated bean unless you restart the server !

            • 3. Re: [deploymentinfo] and temporary files
              garryj33

              just to give a bit more info, unless i restart jboss, i get this error if i redeploy because it can't overwrite the temporary file

              java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.A1 com.A1Home.create() throws javax.ejb.CreateException,java.rmi.RemoteException

              • 4. Re: [deploymentinfo] and temporary files
                jumpfroggy

                I also have this problem, jboss cannot delete the temp files. Sometimes I can reload the war file and jboss will pick it up, but most of the time I have to stop and then restart the server otherwise it locks up due to this error. Is there any way to fix it, or is there any way to unload the app so the files aren't being used?

                • 5. Re: [deploymentinfo] and temporary files
                  siwas

                  Hello

                  I'm new in J2ee and I have this problem:
                  javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract au.com.tusc.session.StoreAccess au.com.tusc.session.StoreAccessHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException

                  How resolve it?
                  Remove temporary folder??

                  • 6. Re: [deploymentinfo] and temporary files
                    sengsational

                     

                    "GarryJ33" wrote:
                    I am having a problem with bean re-deployment. Jboss does not overwrite its temporary files, the message appears [DeploymentInfo] could not delete file (** see below **) restart will delete it.

                    I am worried that Jboss is not cleaning up properly - is there a way to correct this ?

                    **
                    (the file is in default/ tmp/ deploy/ test.jar)

                    So what are Windows users doing for hot deploy?

                    • 7. Re: [deploymentinfo] and temporary files
                      dimitris

                      There is (almost) nothing wrong with this. It's a jdk bug on windows. The tmp files are locked by the classloaders using them, and they will only deleted by jboss when it restarts.

                      • 8. Re: [deploymentinfo] and temporary files
                        t_skowronek

                        Does this apply to all JDK versions on Windows?

                        Which JDK bug are you referring to?

                        • 9. Re: [deploymentinfo] and temporary files
                          sengsational

                           

                          "dimitris@jboss.org" wrote:
                          There is (almost) nothing wrong with this. It's a jdk bug on windows. The tmp files are locked by the classloaders using them, and they will only deleted by jboss when it restarts.
                          Thanks for the quick reply. I was just fretting over not getting the benefit of hot deploy. Since it not available for jar files on Windows, I'm not leaving anything on the table, so to speak.

                          I've got jboss-4.0.1RC2 and Java version: 1.4.2_07. This isn't critical, but it doesn't seem to delete the tmp files when it restarts. But no matter, really, since I've got to go to the server to restart JBoss anyway, its easy enough to wipe the temp files myself.

                          I put this at the end of shutdown bat (just a random IP - no native 'sleep' on Windows):
                          rem wait a few seconds
                          ping -n 1 -w 5000 192.168.234.234
                          erase "C:\jboss-4.0.1RC2\server\default\tmp\deploy\*.*" /s /Q
                          


                          --Dale--

                          • 10. Re: [deploymentinfo] and temporary files
                            jiten007

                            Re-Hot deployment isn't working ....

                            I cann't delete files under /tmp/ directories beacause there are other application running.

                            Can anybody help me?

                            Thanks