zoukankan      html  css  js  c++  java
  • Tomcat: IllegalStateException: No output folder --reference

    Today, I started to create a couple of JSP pages for the server-side part of my MSc thesis project in order to be able to output some meaningful statistics of the underlying data in form of diagrams. The server was already based on Tomcat and Spring because the mobile client transmits the data over XML-RPC HTTP to an appropriate Spring controller which handles the requests.

    So everything I needed to do was to

    • create a "jsp" folder inside the WEB-INF directory
    • inside the "jsp" folder, create a jsp file with the desired content
    • create a Spring controller, which returns as ModelAndView the jsp page
    • create a ViewResolver bean in the spring configuration
    • define a correct mapping in the SimpleUrlHandlerMapping that points to the before created controller

    That was it, everything seemed to work, but when I made a request I got

    org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder


    The problem here were incorrectly set permissions on the Tomcat installation folder. Basically, the installation was done under the root user while the application started as the user with which I was currently logged on at my machine. To solve this it's enough to do the following:

    chown -R Juri apache-tomcat-6.0.29

    reference from:http://juristr.com/blog/2010/12/tomcat-illegalstateexception-no-output/

  • 相关阅读:
    ASP.NET读入文件(以txt为例)
    二叉树的相关规律公式
    HashTable的一点儿常识
    ASP.NET页面跳转方式及页面传值方式
    事件的那些事儿
    程序集和项目、命名空间、动态链接库的区别
    EventHandlerList的一些发现
    《Ajax基础教程》电子版下载
    数据库优化设计
    创业者的自我训练:
  • 原文地址:https://www.cnblogs.com/davidwang456/p/3941729.html
Copyright © 2011-2022 走看看