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 returns
ModelandviewThe JSP page
- Create
ViewresolverBean in the spring Configuration
- Define a correct mapping in
SimpleurlhandlermappingThat 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