Tomcat: illegalstateexception: No Output Folder -- Reference

Source: Internet
Author: User

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

    • 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 returnsModelandviewThe JSP page
    • CreateViewresolverBean in the spring Configuration
    • Define a correct mapping inSimpleurlhandlermappingThat 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: NoOutput 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-RJuriApache-Tomcat-6.0.29

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

 

Tomcat: illegalstateexception: No Output Folder -- Reference

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.