1 Reply Latest reply on Oct 17, 2002 8:07 AM by dalsgaard

    java.io.tmpdir in Jboss (Jetty) 3.0.3

    dalsgaard

      Hi jbossers

      Previously I was running my ear under JBoss 3.0.1, and in the stock "run.sh" script I would specifiy an extra option to the JVM: "-Djava.io.tmpdir=../tmp" and my webapp would get expanded in that directory.

      Unfortunately, after upgrading to JBoss 3.0.3, the system no longer honours this setting and stubbornly expands my webapps in "/tmp". I've found out that if I set the TEMP environment variable, I can have the system expand my webapps where I want. But ultimately I want to be able to run my application as a Windows Service, and in that enviroment I will not be able to set a specific environment variable prior to launch. Some "-D" switch would be preferred.

      I am running RH 7.3, JDK 1.4.0 / JRE 1.4.0, and now JBoss 3.0.3.

      I've been looking at the java code, both the jboss and the jetty code - and cannot see what is going wrong....

      Regards Jakob

        • 1. Re: java.io.tmpdir in Jboss (Jetty) 3.0.3
          dalsgaard

          ... ups, sorry, my fault...

          in run.sh:

          JAVA_OPTS=" ..... "

          which I changed to:

          JAVA_OPTS=" ..... " -Djava.io.tmpdir=../tmp

          That didn't work ... big surprise .. but:

          JAVA_OPTS=" ..... -Djava.io.tmpdir=../tmp"

          works fine. If you've gotten this far in my two postings, then I'm terribly sorry for wasting your time - have a nice day.

          Jakob