Thanks Beltran for the help. I really appreciate it.
What is strange (and I've struggled with it on the Bitnami stack) is that if I custom install Tomcat, then my app runs just fine. On Ubuntu and on CentOS-- even on Windows.
But over on the Bitnami Stack, JSP files don't run properly with the application configuration I have.
Maybe these details can help:
My Stack and Application Folder Structure:
- I installed Tomcat stack into /opt/bitnami.
- The Tomcat folder is in /opt/bitnami/apache-tomcat.
- My application is in: /opt/bitnami/apache-tomcat/webapps/MyApp
- I have some test JSP files in: /opt/bitnami/apache-tomcat/webapps/MyApp/WEB-INF/jsp/test/
I have put a MyApp.xml into /opt/bitnami/apache-tomcat/conf/Catalina/localhost with the following:
<Context path="/MyApp" reloadable="true" docBase="/opt/bitnami/apache-tomcat/webapps/MyApp" workDir="/opt/bitnami/apache-tomcat/webapps/MyApp/work">
In my ../MyApp/WEB-INF folder, there is an applicationContext.xml that uses spring framework and I have the following in the file:
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
All JSP files can be loaded from these folders:
And for my own app within MyApp folder, JSP can be loaded from these folders:
But JSP files won't run from:
or any subfolder under WEB-INF
Any help would be greatly appreciated. I tried a lot of different combinations, but still stuck here.