Getting IllegalStateException: No such servlet: jsp when accessing deployed Spring application to Google App Engine

后端 未结 1 1135
抹茶落季
抹茶落季 2021-01-21 02:05

I\'ve been trying to deploy a Spring MVC Java Web Application on a Google App Engine application but been having no luck doing so. I\'m using App Engine Java SDK to deploy it fr

相关标签:
1条回答
  • 2021-01-21 02:36

    This problem appeared for the first time when we tried to migrate from Java 7 to 8 on GAE. We have Spring MVC + Apache Tiles and we are serving legacy JSP pages. Since this was pointing to JSP problem I started playing around with related options. One of these was defined inside web.xml as follow:

    <jsp-property-group>
    			<url-pattern>*.jsp</url-pattern>
    			<trim-directive-whitespaces>true</trim-directive-whitespaces>
    </jsp-property-group>

    I simply removed this jsp-property-group definition and GAE server started serving JSP back again. We are now able to use Java 8 on GAE with Spring MVC and Apache Tiles but we now have to live with JSP extra generated whitespaces as described here: How to trim whitespaces from your JSP pages which was not a deal breaker for us while targeting JDK 1.8 was an absolute requirement... Hope this helps.

    0 讨论(0)
提交回复
热议问题