Announcement Announcement Module
Collapse
No announcement yet.
Problems getting GWT to work with Spring Security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems getting GWT to work with Spring Security

    I have been trying to get Spring Security to work with GWT and have tried a couple of methods now with very little succes.

    I have tried the standard method of simply editing the applicationContext-security.xml but changing/adding the <intercept-url pattern="XXX" access="XXXX"/> tags

    When that didn't work I tried the method outlined here http://rapilabs.com/spring-security-with-gwt-spring-roo

    Both method seemed to try to redirect to a login page but failed with the following error:
    Code:
    HTTP ERROR: 500
    
    ServletException including path '/WEB-INF/layouts/default.jspx'.
    
    RequestURI=/login
    Caused by:
    
    org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/default.jspx'.
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:692)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:644)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:627)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)
    	at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:124)
    	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:669)
    	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574)
    	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:487)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
    	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    	........
    Caused by: org.apache.tiles.util.TilesIOException: ServletException including path '/WEB-INF/layouts/default.jspx'.
    	at org.apache.tiles.servlet.context.ServletUtil.wrapServletException(ServletUtil.java:241)
    	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:243)
    	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:222)
    	at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)
    	at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:690)
    	.......
    Caused by: java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
    	at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:169)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx._jspx_meth_c_set_1(load_002dscripts_tagx.java:345)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx._jspx_meth_c_set_0(load_002dscripts_tagx.java:304)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx.doTag(load_002dscripts_tagx.java:79)
    	at org.apache.jsp.WEB_002dINF.layouts.default_jspx._jspx_meth_util_load$1scripts_0(default_jspx.java:109)
    	at org.apache.jsp.WEB_002dINF.layouts.default_jspx._jspService(default_jspx.java:66)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    	.......
    
    Caused by:
    
    org.apache.tiles.util.TilesIOException: ServletException including path '/WEB-INF/layouts/default.jspx'.
    	at org.apache.tiles.servlet.context.ServletUtil.wrapServletException(ServletUtil.java:241)
    	at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:243)
    	at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:222)
    	at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)
    	at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:690)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:644)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:627)
    	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)
    	at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:124)
    	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:669)
    	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574)
    	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:487)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
    	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    	.......
    Caused by: java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
    	at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:169)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx._jspx_meth_c_set_1(load_002dscripts_tagx.java:345)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx._jspx_meth_c_set_0(load_002dscripts_tagx.java:304)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx.doTag(load_002dscripts_tagx.java:79)
    	........
    
    Caused by:
    
    java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
    	at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:169)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx._jspx_meth_c_set_1(load_002dscripts_tagx.java:345)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx._jspx_meth_c_set_0(load_002dscripts_tagx.java:304)
    	at org.apache.jsp.tag.web.util.load_002dscripts_tagx.doTag(load_002dscripts_tagx.java:79)
    	at org.apache.jsp.WEB_002dINF.layouts.default_jspx._jspx_meth_util_load$1scripts_0(default_jspx.java:109)
    	at org.apache.jsp.WEB_002dINF.layouts.default_jspx._jspService(default_jspx.java:66)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    	......
    I have searched quite a bit trying to find solution to this problem and have found two things. 1) many others seem to be having the same problem and 2) there isn't a solution yet. If anyone knows what to do I, and many others, would really appreciate it.

    Thanks

    EDIT: I followed the basic setup that is outlined here and it worked like a charm
    Last edited by Eternat; Oct 4th, 2011, 03:01 PM.
Working...
X