2013-10-28 56 views
1

自上週以來,我一直在努力解決這個錯誤,這發生在我的Win-7 64位筆記本電腦上,但同樣的應用程序在Win-7 32位桌面。Tomcat 7錯誤,java.io.IOException:tmpFile.renameTo(classFile)失敗

我按照這兩個機器上相同的步驟:

  • 在袋鼠款;腳本--file $ ROO_HOME \樣本\ pizzashop.roo
  • 然後 '執行程序包' 和部署tomcat 7

環境中的所有64位war文件:JDK 1.7Spring Roo 1.2.4Tomcat 7.0.47,(我得到同樣的Tomcat 6中的錯誤,虛擬主機也是)

這是錯誤堆棧跟蹤,當我評估任何pizzashop示例應用程序頁面時。 Example: http://localhost:8080/pizzashop/bases?page=1&size=10

然後請求被重定向到Internal Error頁面。

第一個錯誤:

Oct 28, 2013 12:36:17 PM org.apache.catalina.core.StandardWrapperValve invoke 
SEVERE: Servlet.service() for servlet [pizzashop] in context with path [/pizzashop] threw exception [Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/default.jspx'.] with root cause 
java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.views.index_jspx$Helper 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132) 
    at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63) 
    at java.lang.Class.getDeclaredConstructors0(Native Method) 
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493) 
    at java.lang.Class.getConstructor0(Class.java:2803) 
    at java.lang.Class.newInstance(Class.java:345) 
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:149) 
    at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172) 
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:537) 
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:378) 
    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.doInclude(ApplicationDispatcher.java:605) 
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) 
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954) 
    at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:684) 
    at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:678) 
    at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:103) 
    at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:96) 
    at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44) 
    at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106) 
    at org.apache.tiles.renderer.impl.ChainedDelegateAttributeRenderer.write(ChainedDelegateAttributeRenderer.java:76) 
    at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106) 

第二個錯誤:

Oct 28, 2013 1:38:20 PM org.apache.catalina.core.StandardWrapperValve invoke 
SEVERE: Servlet.service() for servlet [pizzashop] in context with path [/pizzashop] threw exception [Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/default.jspx'.] with root cause 
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) 
    at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:240) 
    at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:578) 
    at org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:49) 
    at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:655) 
    at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1538) 
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375) 
    at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427) 
    at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2538) 
    at org.apache.jasper.compiler.Node$UninterpretedTag.accept(Node.java:1251) 
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375) 
    at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427) 
    at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2433) 
    at org.apache.jasper.compiler.Node$Root.accept(Node.java:474) 
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375) 
    at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:673) 
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229) 
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373) 
    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) 
    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.doInclude(ApplicationDispatcher.java:605) 
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) 
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954) 
    at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:684) 
    at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:678) 
    at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:103) 
    at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:96) 
    at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44) 
    at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106) 
    at org.apache.tiles.renderer.impl.ChainedDelegateAttributeRenderer.write(ChainedDelegateAttributeRenderer.java:76) 
    at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106) 
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670) 
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:336) 
    at org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:210) 
    at org.apache.tiles.template.InsertAttributeModel.end(InsertAttributeModel.java:126) 
    at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:311) 
    at org.apache.jsp.WEB_002dINF.layouts.default_jspx._jspx_meth_tiles_005finsertAttribute_005f2(default_jspx.java:234) 
    at org.apache.jsp.WEB_002dINF.layouts.default_jspx._jspService(default_jspx.java:96) 
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) 

是否有人可以幫助我如何修正這個錯誤?

我試過重新安裝spring sts,tomcat,甚至是jdk,但沒有任何工作。

+0

我剛剛在我的32位Windows機器上的tomcat服務器上運行了相同的war文件,它運行時沒有任何錯誤。但是這個問題仍然存在於我的筆記本電腦上,它是64位Windows,因爲所有的服務器(包括tomcat/vmserver)都出現錯誤。 – vijay

回答

0

此錯誤可能有不同的原因。我遵循這些,併爲我工作 1.以管理員身份啓動Tomcat。 2.清理Tomcat工作目錄。在Eclipse Server視圖中右鍵單擊服務器。 3.完全控制tomcat folde

相關問題