[OFBiz] Users - error while creating temporary files
Alexander Heiss
aheiss at prosodiemail.com
Tue Aug 10 11:45:26 EDT 2004
One reason we were getting 500 errors (unable to compile class..) from
Jetty was because, by default, Jetty stores these files into java tmp
directory, I think somewhere like /tmp by default. If the default java temp
directory is used on linux, these files will be remove every so often,
causing the issue. The workaround for this was to append a new java tmp
directoy using something like:
java -Djava.io.tmpdir="/usr/mytmp" -jar ofbiz.jar
More info on this can be found at
http://jetty.mortbay.org/jetty/faq?s=200-General&t=tmpdir
You may be able to apply this concept to your issue; let us know if it
works. Other file redirects can be found in
base/config/ofbiz-components.xml for server request logs and
base/config/debug.properties for java log files. There is also a console
output directed by the startofbiz.sh file, if you use it.
Thanks,
-Alex
> -----Original Message-----
> From: Andreas Schmidt [mailto:andreas.schmidt at team-konzept.de]
> Sent: Tuesday, August 10, 2004 8:44 AM
> To: users at ofbiz.dev.java.net
> Subject: [OFBiz] Users - error while creating temporary files
>
>
> after installing ofbiz and try to call
>
> http://localhost:8080/catalog
>
> (or any other entry-link) i get an error 500 (unable to compile class
> ....).
>
> console.log says:
>
> 43712[ Log.java:302:ERROR] Exception:
> Error creating temporary file
> at
> org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.exe
> cuteExternalCompile(DefaultCompilerAdapter.java:433)
> at
> org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(Java
> cExternal.java:81)
> at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840)
> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
> at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
>
> and a few lines down:
>
> --- Nested Exception ---
> java.io.FileNotFoundException: /opt/ofbiz3/files-1872677870 (Permission
> denied)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
> at java.io.FileWriter.<init>(FileWriter.java:73)
> at
> org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.exe
> cuteExternalCompile(DefaultCompilerAdapter.java:424)
> at
> org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(Java
> cExternal.java:81)
> at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840)
> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
> at
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
>
> it seems that ofbiz (jasper, jetty???) tries to create temporary files
> for compiling jsp's in ofbiz's root directory (which is /opt/ofbiz3).
> for security reasons, i don't want to allow to the ofbiz-process to
> write into it's home-directory. is there a way to define a
> temp-directory, to prevent ofbiz to write it's own root-directory?
>
> thanks,
> andi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
> For additional commands, e-mail: users-help at ofbiz.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
For additional commands, e-mail: users-help at ofbiz.dev.java.net
More information about the Users
mailing list