Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF with Simple Captcha

843844Mar 1 2009 — edited Aug 20 2009
I am using JSF 1.2 with RichFaces.
I want to implement SimpleCaptcha in the application.

On my loginpage I am able to add a captcha image.

Here is the exception that I get. This I get after when my jsp page(on which this image is) loads.

*StandardWrapperValve[StickyCaptcha]: PWC1406: Servlet.service() for servlet StickyCaptcha threw exception*
java.lang.IllegalStateException: PWC3999: Cannot create a session after the response has been committed
at org.apache.coyote.tomcat5.CoyoteRequest.doGetSession(CoyoteRequest.java:2709)
at org.apache.coyote.tomcat5.CoyoteRequest.getSession(CoyoteRequest.java:2482)
at org.apache.coyote.tomcat5.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:871)
at org.apache.coyote.tomcat5.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:882)
at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:248)
at nl.captcha.servlet.SimpleCaptchaServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

What could be the reason?

Edited by: rajeev2009 on Mar 1, 2009 6:13 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2009
Added on Mar 1 2009
6 comments
1,429 views