Cryptic jetty-maven-plugin error message 'ERROR: PWC6117: File “null” not found'

前提是你 提交于 2019-12-01 06:33:24

Make sure your ModelAndView-s are mapped properly in your controller:

return new ModelAndView("WEB-INF/jsps/main");

In my case, above solution @tftd provided did not work so I commented out defaultHandler property, then error log disappeared.

<bean id="classNameControllerMappings"
      class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping">
    <property name="caseSensitive" value="true" />
    <property name="order" value="2" />
    <!--property name="defaultHandler">
        <bean class="org.springframework.web.servlet.mvc.UrlFilenameViewController"/>
    </property-->
</bean>

Make sure you have imported org.springframework.web.servlet.ModelAndView. Once i had got this problem by importing org.springframework.web.portlet.ModelAndView.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!