tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: Why am i getting this exception often?
Date Thu, 10 Oct 2013 17:48:15 GMT
1. Please don't top-post
2. Please read: http://www.catb.org/esr/faqs/smart-questions.html


On 10/10/2013 10:31 AM, Muralidhar Yaragalla wrote:
> I am using all default settings. I am deploying the war file in webapp
> folder of tomcat. just downloaded, kept the war file in webapp folder and
> started the tomcat. I have not done anything else.
>

Exact version of each please:

1. Tomcat (not just 7, but 7.0.x)
2. JVM version (not just 7, but 1.7.0_x)
3. OS, version, and bits

This particular error has been discussed before, but only on a really 
old version of Tomcat.

There are similar errors that occur that apparently have to do with 
Windows indexing the java.io.tmpdir directory. See for example:

http://www.coderanch.com/t/468010/Tomcat/Strange-behavior-Tomcat-classFile-delete

However, since I don't know if you're running on Windows, I don't know 
if this is applicable.

Google the following for other discussions:

java.io.IOException: tmpFile.renameTo(classFile) failed

Apparently BIRT has had issues with this in the past as well (and from 
your blog, I see that you use BIRT).

Again, these are pretty much random guesses since information is lacking.

On the plus side, I've never seen this problem occur in any of my 
environments with any JSP file.

. . . just my two cents
/mde/

> *Thanks And Regards,*
> Muralidhar Yaragalla.*
> (Visit My Blog <http://yaragalla.blogspot.in>)
> *
>
>
> On Thu, Oct 10, 2013 at 10:26 PM, Christopher Schultz <
> chris@christopherschultz.net> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Muralidhar,
>>
>> On 10/10/13 12:40 PM, Muralidhar Yaragalla wrote:
>>> No help on this?
>>
>> No further details?
>>
>> For instance, what does the directory look like where the file is
>> being (attempted to be) renamed? How about permissions?
>>
>> You can't just post a stack trace and ask "how can I prevent this"?
>>
>> - -chris
>>
>>>
>>> *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
>>> <http://yaragalla.blogspot.in>) *
>>>
>>>
>>> On Wed, Oct 9, 2013 at 10:22 PM, Muralidhar Yaragalla <
>>> java.yaragalla@gmail.com> wrote:
>>>
>>>> I am getting this exception very often even when i am using
>>>> tomcat without eclipse. Is there a way to avoid this?
>>>>
>>>> *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog
>>>> <http://yaragalla.blogspot.in>) *
>>>>
>>>>
>>>> On Wed, Oct 9, 2013 at 7:00 PM, Muralidhar Yaragalla <
>>>> java.yaragalla@gmail.com> wrote:
>>>>
>>>>> Hi i am using tomcat-7 with eclipse kepler. I am getting the
>>>>> following exception very often. Is there a way to prevent
>>>>> this?
>>>>>
>>>>> Exception:org.apache.jasper.JasperException: Unable to compile
>>>>> class for JSP Stack trace:
>>>>>
>>>>> org.apache.jasper.JasperException: Unable to compile class for
>>>>> JSP at
>>>>>
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:661)
>>>>>
>>>>>
>> at
>>
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
>>>>> at
>>>>>
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>>>>>
>>>>>
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>>>>> at
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at
>>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>>>>
>>>>>
>> at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>> at
>>>>>
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>>>>>
>>>>>
>> at
>>
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>>>>> at
>>>>>
>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
>>>>>
>>>>>
>> at
>>
>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>>>>> at
>>>>>
>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>>>>>
>>>>>
>> at
>>
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
>>>>> at
>>>>>
>> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
>>>>> at
>>>>>
>> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>> at
>>>>>
>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>> at
>>>>>
>> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
>>>>>
>>>>>
>> at
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
>>>>> at
>>>>>
>> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>>>>>
>>>>>
>> at
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)
>>>>> at
>>>>>
>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
>>>>>
>>>>>
>> at
>>
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
>>>>> at
>>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>>>>
>>>>>
>> at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>> at com.ymd.ums.LoginFilter.doFilter(LoginFilter.java:36) at
>>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>>>>
>>>>>
>> at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>> at
>>>>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>>
>>>>>
>> at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>>>> at
>>>>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>>>>
>>>>>
>> at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>>>> at
>>>>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>>>>
>>>>>
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>>>> at
>>>>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>>>>
>>>>>
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>>>> at
>>>>>
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>>>>
>>>>>
>> at
>>
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>>>> at
>>>>>
>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
>>>>>
>>>>>
>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>>>>> Source) at java.lang.Thread.run(Unknown Source) Caused by:
>>>>> java.io.IOException: tmpFile.renameTo(classFile) failed at
>>>>>
>> org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:204)
>>>>>
>>>>>
>> at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:163)
>>>>> at
>>>>>
>> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:483)
>>>>>
>>>>>
>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
>>>>> at
>>>>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
>>>>> at
>>>>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
>>>>> at
>>>>>
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
>>>>>
>>>>>
>>>>>
>>>>>
>> *Thanks And Regards,*
>>>>> Muralidhar Yaragalla.* (Visit My Blog
>>>>> <http://yaragalla.blogspot.in>) *
>>>>>
>>>>
>>>>
>>>


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


Mime
View raw message