spring 3.0 java.lang.IllegalAccessError的freemarker问题

时间:2011-08-23 08:11:27

标签: spring-mvc freemarker

我们最近升级到了Spring 3.0版本。在此之后,我们开始在所有freemarker页面上低于错误。弹簧2.x可以正常工作 我们正在使用freemarker 2.3.6 在搜索此错误时,我可以看到其他人报告的类似问题,但似乎没有报告解决方案。

tried to access class freemarker.ext.servlet.AllHttpScopesHashModel from class org.springframework.web.servlet.view.freemarker.FreeMarkerView

java.lang.IllegalAccessError: tried to access class freemarker.ext.servlet.AllHttpScopesHashModel from class org.springframework.web.servlet.view.freemarker.FreeMarkerView
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.buildTemplateModel(FreeMarkerView.java:295)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.doRender(FreeMarkerView.java:276)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.renderMergedTemplateModel(FreeMarkerView.java:233)
at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)

1 个答案:

答案 0 :(得分:1)

更新FreeMarker。 AllHttpScopesHashModel在2.3.6(2006年)之后公布。