Hi,

I am trying to integrate magnolia with spring MVC. I made a template which 
includes another jsp which has <spring:bind> tag's in it. When I try to access 
a page made using this template I get a class cast exception. If I remove the 
spring tags completely from the included page the template is shown fine. I am 
using magnolia 2.1 and resin as my server.

I can access the included page directly and it also works fine in which case it 
is handled by the spring servlet

The exception I get is 
ERROR  org.springframework.web.servlet.tags.BindErrorsTag 
RequestContextAwareTag.java(doStartTag:75) 18.10.2005 10:56:48
java.lang.ClassCastException
        at 
org.springframework.web.servlet.support.RequestContext.getFallbackLocale(RequestContext.java:248)
        at 
org.springframework.web.servlet.support.JspAwareRequestContext.getFallbackLocale(JspAwareRequestContext.java:95)
        at 
org.springframework.web.servlet.support.RequestContext.initContext(RequestContext.java:212)
        at 
org.springframework.web.servlet.support.JspAwareRequestContext.initContext(JspAwareRequestContext.java:74)
        at 
org.springframework.web.servlet.support.JspAwareRequestContext.<init>(JspAwareRequestContext.java:48)
        at 
org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:65)
        at 
_jsp._templates._jsp._corp._careers__jsp._jspService(_careers__jsp.java:507)
        at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
        at com.caucho.jsp.Page.pageservice(Page.java:570)
        at 
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159)
        at 
com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
        at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
        at 
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:268)
        at 
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106)
        at info.magnolia.cms.Dispatcher.dispatch(Dispatcher.java:79)
        at info.magnolia.cms.servlets.EntryServlet.doGet(EntryServlet.java:141)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
        at 
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99)
        at 
info.magnolia.cms.filters.SecurityFilter.doFilter(SecurityFilter.java:73)
        at 
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at 
info.magnolia.cms.filters.MultipartRequestFilter.doFilter(MultipartRequestFilter.java:80)
        at 
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at 
info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:65)
        at 
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at 
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
        at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
        at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
        at java.lang.Thread.run(Thread.java:534)
ERROR  info.magnolia.cms.servlets.EntryServlet EntryServlet.java(doGet:144) 
18.10.2005 10:56:48
java.lang.ClassCastException
        at 
org.springframework.web.servlet.support.RequestContext.getFallbackLocale(RequestContext.java:248)
        at 
org.springframework.web.servlet.support.JspAwareRequestContext.getFallbackLocale(JspAwareRequestContext.java:95)
        at 
org.springframework.web.servlet.support.RequestContext.initContext(RequestContext.java:212)
        at 
org.springframework.web.servlet.support.JspAwareRequestContext.initContext(JspAwareRequestContext.java:74)
        at 
org.springframework.web.servlet.support.JspAwareRequestContext.<init>(JspAwareRequestContext.java:48)
        at 
org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:65)
        at 
_jsp._templates._jsp._corp._careers__jsp._jspService(_careers__jsp.java:507)
        at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
        at com.caucho.jsp.Page.pageservice(Page.java:570)
        at 
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159)
        at 
com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
        at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
        at 
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:268)
        at 
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106)
        at info.magnolia.cms.Dispatcher.dispatch(Dispatcher.java:79)
        at info.magnolia.cms.servlets.EntryServlet.doGet(EntryServlet.java:141)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
        at 
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:99)
        at 
info.magnolia.cms.filters.SecurityFilter.doFilter(SecurityFilter.java:73)
        at 
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at 
info.magnolia.cms.filters.MultipartRequestFilter.doFilter(MultipartRequestFilter.java:80)
        at 
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at 
info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:65)
        at 
com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
        at 
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:163)
        at 
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208)
        at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:259)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
        at java.lang.Thread.run(Thread.java:534)

Thanks,
Aditya

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to