[google-appengine] PageContextImpl giving issues (java.lang.ClassCastException: java.security.AccessControlException) with Spring form tag?

2009-04-10 Thread N. Peeters

Hi, I'm getting the following error when the JSP page tries to
compile. Any idea?


Nested in org.springframework.web.util.NestedServletException: Request
processing failed; nested exception is java.lang.ClassCastException:
java.security.AccessControlException cannot be cast to
javax.servlet.ServletException:
java.lang.ClassCastException: java.security.AccessControlException
cannot be cast to javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:754)
at org.apache.jsp.WEB_002dINF.jsp.searchCustomerInput_jsp._jspService
(searchCustomerInput_jsp.java:64)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

The page code is as follows:

<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/
form"%>





First Name:



Last Name:










--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: PageContextImpl giving issues (java.lang.ClassCastException: java.security.AccessControlException) with Spring form tag?

2009-04-12 Thread N. Peeters

It seems that this is cause by all specific forms fromthe Spring
taglib . Any idea how to get around this? Anybody got
Spring forms to work on GAE?

On Apr 10, 4:50 pm, "N. Peeters"  wrote:
> Hi, I'm getting the following error when the JSP page tries to
> compile. Any idea?
>
> Nested in org.springframework.web.util.NestedServletException: Request
> processing failed; nested exception is java.lang.ClassCastException:
> java.security.AccessControlException cannot be cast to
> javax.servlet.ServletException:
> java.lang.ClassCastException: java.security.AccessControlException
> cannot be cast to javax.servlet.ServletException
>         at org.apache.jasper.runtime.PageContextImpl.handlePageException
> (PageContextImpl.java:754)
>         at org.apache.jsp.WEB_002dINF.jsp.searchCustomerInput_jsp._jspService
> (searchCustomerInput_jsp.java:64)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> The page code is as follows:
>
> <%@ include file="/WEB-INF/jsp/include.jsp"%>
> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
> 
> 
> 
>     
>         
>             First Name:
>             
>         
>         
>             Last Name:
>             
>         
>         
>             
>                 
>             
>         
>     
> 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: PageContextImpl giving issues (java.lang.ClassCastException: java.security.AccessControlException) with Spring form tag?

2009-04-14 Thread N. Peeters

Still not working, I'm afraid. Any other idea?

On Apr 12, 7:23 am, Elvea  wrote:
> add a custom editor to the binder then i got it work
> (1)
> public class BindingInitializer implements WebBindingInitializer {
>         @Override
>         public void initBinder(WebDataBinder binder, WebRequest request) {
>                 SimpleDateFormat dateFormat = new 
> SimpleDateFormat("-MM-dd");
>                 binder.registerCustomEditor(Date.class, new CustomDateEditor
> (dateFormat, true));
>                 binder.registerCustomEditor(Integer.class, new 
> CustomNumberEditor
> (Integer.class, true));
>                 binder.registerCustomEditor(Double.class, new 
> CustomNumberEditor
> (Double.class, true));
>                 binder.registerCustomEditor(Float.class, new 
> CustomNumberEditor
> (Float.class, true));
>                 binder.registerCustomEditor(String.class, new CharacterEditor
> (true));
>         }
>
> }
>
> (2) and the dispatcher-servlet,xml
> 
>  class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
>     
>         
>     
> 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---