首页 > 其他 > 详细

Tomcat: IllegalStateException: No output folder --reference

时间:2014-08-28 16:06:09      阅读:268      评论:0      收藏:0      [点我收藏+]

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/

 

Tomcat: IllegalStateException: No output folder --reference

原文:http://www.cnblogs.com/davidwang456/p/3941729.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!