http status 500 - request processing failed; nested exception is org.springframework.context.applicationcontextexception: could not load freemarker template for url [/web-inf/template/cms/www/cn/channel/news.html]; nested exception is java.io.filenotfoundexception: template /web-inf/template/cms/www/cn/channel/news.html not found.


type exception report

message request processing failed; nested exception is org.springframework.context.applicationcontextexception: could not load freemarker template for url [/web-inf/template/cms/www/cn/channel/news.html]; nested exception is java.io.filenotfoundexception: template /web-inf/template/cms/www/cn/channel/news.html not found.

description the server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.nestedservletexception: request processing failed; nested exception is org.springframework.context.applicationcontextexception: could not load freemarker template for url [/web-inf/template/cms/www/cn/channel/news.html]; nested exception is java.io.filenotfoundexception: template /web-inf/template/cms/www/cn/channel/news.html not found.
	org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:948)
	org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet.java:827)
	javax.servlet.http.httpservlet.service(httpservlet.java:624)
	org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:812)
	javax.servlet.http.httpservlet.service(httpservlet.java:731)
	org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52)
	org.springframework.orm.hibernate4.support.opensessioninviewfilter.dofilterinternal(opensessioninviewfilter.java:152)
	org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107)
	org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:88)
	org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107)
	com.ezsite.common.web.processtimefilter.dofilter(processtimefilter.java:35)

root cause

org.springframework.context.applicationcontextexception: could not load freemarker template for url [/web-inf/template/cms/www/cn/channel/news.html]; nested exception is java.io.filenotfoundexception: template /web-inf/template/cms/www/cn/channel/news.html not found.
	com.ezsite.common.web.springmvc.simplefreemarkerview.checktemplate(simplefreemarkerview.java:105)
	com.ezsite.common.web.springmvc.simplefreemarkerview.initapplicationcontext(simplefreemarkerview.java:78)
	org.springframework.context.support.applicationobjectsupport.initapplicationcontext(applicationobjectsupport.java:119)
	org.springframework.web.context.support.webapplicationobjectsupport.initapplicationcontext(webapplicationobjectsupport.java:72)
	org.springframework.context.support.applicationobjectsupport.setapplicationcontext(applicationobjectsupport.java:73)
	org.springframework.context.support.applicationcontextawareprocessor.invokeawareinterfaces(applicationcontextawareprocessor.java:117)
	org.springframework.context.support.applicationcontextawareprocessor.postprocessbeforeinitialization(applicationcontextawareprocessor.java:92)
	org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsbeforeinitialization(abstractautowirecapablebeanfactory.java:396)
	org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1475)
	org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:388)
	org.springframework.web.servlet.view.urlbasedviewresolver.applylifecyclemethods(urlbasedviewresolver.java:442)
	org.springframework.web.servlet.view.urlbasedviewresolver.loadview(urlbasedviewresolver.java:437)
	org.springframework.web.servlet.view.abstractcachingviewresolver.createview(abstractcachingviewresolver.java:241)
	org.springframework.web.servlet.view.urlbasedviewresolver.createview(urlbasedviewresolver.java:401)
	org.springframework.web.servlet.view.abstractcachingviewresolver.resolveviewname(abstractcachingviewresolver.java:153)
	org.springframework.web.servlet.dispatcherservlet.resolveviewname(dispatcherservlet.java:1239)
	org.springframework.web.servlet.dispatcherservlet.render(dispatcherservlet.java:1188)
	org.springframework.web.servlet.dispatcherservlet.processdispatchresult(dispatcherservlet.java:992)
	org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:939)
	org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:856)
	org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:936)
	org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet.java:827)
	javax.servlet.http.httpservlet.service(httpservlet.java:624)
	org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:812)
	javax.servlet.http.httpservlet.service(httpservlet.java:731)
	org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52)
	org.springframework.orm.hibernate4.support.opensessioninviewfilter.dofilterinternal(opensessioninviewfilter.java:152)
	org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107)
	org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:88)
	org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107)
	com.ezsite.common.web.processtimefilter.dofilter(processtimefilter.java:35)

root cause

java.io.filenotfoundexception: template /web-inf/template/cms/www/cn/channel/news.html not found.
	freemarker.template.configuration.gettemplate(configuration.java:495)
	freemarker.template.configuration.gettemplate(configuration.java:458)
	com.ezsite.common.web.springmvc.simplefreemarkerview.checktemplate(simplefreemarkerview.java:99)
	com.ezsite.common.web.springmvc.simplefreemarkerview.initapplicationcontext(simplefreemarkerview.java:78)
	org.springframework.context.support.applicationobjectsupport.initapplicationcontext(applicationobjectsupport.java:119)
	org.springframework.web.context.support.webapplicationobjectsupport.initapplicationcontext(webapplicationobjectsupport.java:72)
	org.springframework.context.support.applicationobjectsupport.setapplicationcontext(applicationobjectsupport.java:73)
	org.springframework.context.support.applicationcontextawareprocessor.invokeawareinterfaces(applicationcontextawareprocessor.java:117)
	org.springframework.context.support.applicationcontextawareprocessor.postprocessbeforeinitialization(applicationcontextawareprocessor.java:92)
	org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsbeforeinitialization(abstractautowirecapablebeanfactory.java:396)
	org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1475)
	org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:388)
	org.springframework.web.servlet.view.urlbasedviewresolver.applylifecyclemethods(urlbasedviewresolver.java:442)
	org.springframework.web.servlet.view.urlbasedviewresolver.loadview(urlbasedviewresolver.java:437)
	org.springframework.web.servlet.view.abstractcachingviewresolver.createview(abstractcachingviewresolver.java:241)
	org.springframework.web.servlet.view.urlbasedviewresolver.createview(urlbasedviewresolver.java:401)
	org.springframework.web.servlet.view.abstractcachingviewresolver.resolveviewname(abstractcachingviewresolver.java:153)
	org.springframework.web.servlet.dispatcherservlet.resolveviewname(dispatcherservlet.java:1239)
	org.springframework.web.servlet.dispatcherservlet.render(dispatcherservlet.java:1188)
	org.springframework.web.servlet.dispatcherservlet.processdispatchresult(dispatcherservlet.java:992)
	org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet.java:939)
	org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.java:856)
	org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet.java:936)
	org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet.java:827)
	javax.servlet.http.httpservlet.service(httpservlet.java:624)
	org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java:812)
	javax.servlet.http.httpservlet.service(httpservlet.java:731)
	org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52)
	org.springframework.orm.hibernate4.support.opensessioninviewfilter.dofilterinternal(opensessioninviewfilter.java:152)
	org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107)
	org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter.java:88)
	org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter.java:107)
	com.ezsite.common.web.processtimefilter.dofilter(processtimefilter.java:35)

note the full stack trace of the root cause is available in the apache tomcat/7.0.77 logs.


apache tomcat/7.0.77