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/

最新文章

  1. 提供程序不支持 DatabaseExists
  2. CSS盒子模型元素实际宽度的计算
  3. c语言计算矩阵特征值和特征向量-1(幂法)
  4. 一个android参考网站,工具+源码
  5. 为什么LTE系统的最小时间单位是Ts?
  6. 使用css3制作蚂蚁线
  7. MyBatis(3.2.3) - Configuring MyBatis using XML, Environment
  8. 【转】Android异步消息处理机制完全解析,带你从源码的角度彻底理解
  9. Qt浅谈之二十App自动重启及关闭子窗口(六种方法)
  10. Android之TextView的样式类Span的使用具体解释
  11. 安装MySQL -- SuSE Linux Enterprise Server 11 SP3
  12. Linux上安装Zookeeper以及一些注意事项
  13. Java开发知识之Java的数字处理类Math类
  14. Linux学习历程——Centos 7 mkdir命令
  15. Linux下安装scikit-learn
  16. position的四个属性值
  17. Three.js开发指南---使用three.js的材质(第四章)
  18. 【刷题】BZOJ 4543 [POI2014]Hotel加强版
  19. 802.11 ------ Beacon帧、Beacon Interval、TBTT、Listen Interval、TIM、DTIM
  20. Tomcat权威指南-读书摘要系列3

热门文章

  1. Swift - 10 - assert(断言)
  2. 解决 asp.net 伪静态 IIS设置后 直正HTML无法显示的问题
  3. cache—主存—辅存三级调度模拟
  4. gui线程
  5. IOS 真机调试以及发布应用 1
  6. 基于GBT28181:SIP协议组件开发-----------第一篇环境搭建
  7. TCP/IP-TCP
  8. vim插件和配置
  9. jQuery 如何创建基本插件(翻译)
  10. Yii框架AR对象数据转化为数组