You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "M.Hockings" <ve...@hockings.net> on 2004/11/26 21:49:16 UTC

TC 5.0.28 "error creating temporary file"

Hello,

I apologize for the length of this note but I have attempted to shorten 
it as much as possible without removing possible useful information.

I am trying to deploy an app on TC 5.0.28 running on a Linux box at my 
ISP.  This app deploys and runs without error on TC 5.0.25 on Windows 
(Win2K) and on TC 5.0.28 my Linux (FC1) test server.  The application 
itself is struts based and the error occurs on any page.  The log 
information below is from just attempting to bring up the index page 
(index.jsp). You will see near the bottom that the cause of the error 
seems to be an attempt to create a temporary file in the tomcat root 
directory.

Caused by: java.io.FileNotFoundException: 
/usr/local/etc/jakarta-tomcat-5.0.28/files377152047 (Permission denied)

At this point it is really unclear to me what exactly the problem might 
be or how to diagnose it. I certainly don't try to find/access the TC 
directory so I must imagine that something in my code is causing it 
based on my ISP's installed config of TC. Any suggestions would be 
greatly appreciated.

Mike

==================================================================
exception

org.apache.jasper.JasperException: Unable to compile class for JSP
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
....

root cause

Error creating temporary file
	org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:426)
	org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:44)
	org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
	org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:379)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
....
=============================================================================
Error creating temporary file
	at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:426)
	at 
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:44)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:379)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled 
Code))
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled 
Code))
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
	at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
	at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
	at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
	at net.hockings.filters.AuthFilter.doFilter(AuthFilter.java:143)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled 
Code))
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled 
Code))
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled 
Code))
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled 
Code))
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled 
Code))
	at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled 
Code))
	at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java(Compiled 
Code))
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:568)
Caused by: java.io.FileNotFoundException: 
/usr/local/etc/jakarta-tomcat-5.0.28/files377152047 (Permission denied)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.(FileOutputStream.java:201)
	at java.io.FileOutputStream.(FileOutputStream.java:153)
	at java.io.FileWriter.(FileWriter.java:94)
	at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:412)
	... 45 more


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: TC 5.0.28 "error creating temporary file"

Posted by Tim Funk <fu...@joedog.org>.
http://issues.apache.org/bugzilla/show_bug.cgi?id=19765

Tomcat uses Ant to do a compile. Ant creates a temp file to assist in 
compliation. I am guessing the tempdir is not set correctly. (or something 
similar)

-Tim

M.Hockings wrote:

> Tim Funk wrote:
> 
>> Ant is trying to create some temporary files to compile the JSP. Ant 
>> cannot write the temp file. Somewhere in the archives or in bugzilla 
>> there was a discussion about this.
>>
>> -Tim
> 
> 
> I found a few hits in the archives about this but they seemed to be 
> related to permissions for the TC install.  In my case I already have a 
> couple of webapps deployed on TC that are running just fine so is that 
> likely to still be the case?  There seems to be something about this 
> particular app that is triggering the problem.  I have been thinking 
> that it is something in my app rather than the TC install that is 
> causing the problem.
> 
> Keep in mind that I don't have the ability to change or check 
> permissions for the Tomcat install.  However I am sure if I can go to my 
> ISP with a concrete statement of what should be changed, and why, they 
> would act on it.
> 
> Mike
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: TC 5.0.28 "error creating temporary file"

Posted by Mark Thomas <ma...@apache.org>.
Have you tried pre-compiling your JSPs before deployment?

Mark 

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of M.Hockings
> Sent: Saturday, November 27, 2004 12:59 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: TC 5.0.28 "error creating temporary file"
> 
> Tim Funk wrote:
> > Ant is trying to create some temporary files to compile the 
> JSP. Ant 
> > cannot write the temp file. Somewhere in the archives or in 
> bugzilla 
> > there was a discussion about this.
> > 
> > -Tim
> 
> I found a few hits in the archives about this but they seemed to be 
> related to permissions for the TC install.  In my case I 
> already have a 
> couple of webapps deployed on TC that are running just fine 
> so is that 
> likely to still be the case?  There seems to be something about this 
> particular app that is triggering the problem.  I have been thinking 
> that it is something in my app rather than the TC install that is 
> causing the problem.
> 
> Keep in mind that I don't have the ability to change or check 
> permissions for the Tomcat install.  However I am sure if I 
> can go to my 
> ISP with a concrete statement of what should be changed, and 
> why, they 
> would act on it.
> 
> Mike
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: TC 5.0.28 "error creating temporary file"

Posted by "M.Hockings" <ve...@hockings.net>.
Tim Funk wrote:
> Ant is trying to create some temporary files to compile the JSP. Ant 
> cannot write the temp file. Somewhere in the archives or in bugzilla 
> there was a discussion about this.
> 
> -Tim

I found a few hits in the archives about this but they seemed to be 
related to permissions for the TC install.  In my case I already have a 
couple of webapps deployed on TC that are running just fine so is that 
likely to still be the case?  There seems to be something about this 
particular app that is triggering the problem.  I have been thinking 
that it is something in my app rather than the TC install that is 
causing the problem.

Keep in mind that I don't have the ability to change or check 
permissions for the Tomcat install.  However I am sure if I can go to my 
ISP with a concrete statement of what should be changed, and why, they 
would act on it.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: TC 5.0.28 "error creating temporary file"

Posted by Tim Funk <fu...@joedog.org>.
Ant is trying to create some temporary files to compile the JSP. Ant cannot 
write the temp file. Somewhere in the archives or in bugzilla there was a 
discussion about this.

-Tim

M.Hockings wrote:

> Hello,
> 
> I apologize for the length of this note but I have attempted to shorten 
> it as much as possible without removing possible useful information.
> 
> I am trying to deploy an app on TC 5.0.28 running on a Linux box at my 
> ISP.  This app deploys and runs without error on TC 5.0.25 on Windows 
> (Win2K) and on TC 5.0.28 my Linux (FC1) test server.  The application 
> itself is struts based and the error occurs on any page.  The log 
> information below is from just attempting to bring up the index page 
> (index.jsp). You will see near the bottom that the cause of the error 
> seems to be an attempt to create a temporary file in the tomcat root 
> directory.
> 
> Caused by: java.io.FileNotFoundException: 
> /usr/local/etc/jakarta-tomcat-5.0.28/files377152047 (Permission denied)
> 
> At this point it is really unclear to me what exactly the problem might 
> be or how to diagnose it. I certainly don't try to find/access the TC 
> directory so I must imagine that something in my code is causing it 
> based on my ISP's installed config of TC. Any suggestions would be 
> greatly appreciated.
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org