[JBoss-user] [JBoss Seam] - Re: advice on managing exceptions / session timeouts

2005-12-20 Thread [EMAIL PROTECTED]
A servlet filter is the correct solution. I have no idea why this should cause 
any problem. Of course, you should not try to access the Seam contexts from the 
filter.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3913578#3913578

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3913578


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: advice on managing exceptions / session timeouts

2005-12-20 Thread henderson_mk
thanks for the response Gavin
my filter looks like this:

  | public void doFilter(ServletRequest servletrequest,
  |  ServletResponse servletresponse,
  |  FilterChain filterchain)
  | throws IOException, ServletException
  | {
  | HttpServletRequest httpservletrequest = 
(HttpServletRequest)servletrequest;
  | HttpSession httpsession = httpservletrequest.getSession(false);
  | 
  | try
  | {
  | filterchain.doFilter(servletrequest, servletresponse);
  | log.info(all ok...);
  | }
  | catch (Throwable t)
  | {
  | log.info(throwable caught..);
  | StringWriter sw = new StringWriter();
  | PrintWriter pw = new PrintWriter(sw, true);
  | t.printStackTrace(pw);
  | pw.flush();
  | sw.flush();
  | log.error(throwable= + t.getMessage());
  | log.error(stack= + sw.toString());
  | 
  | HttpServletResponse httpservletresponse = 
(HttpServletResponse)servletresponse;
  | ServletContext servletcontext = config.getServletContext();
  | if (getRedirect(redirect))
  | {
  | httpservletresponse.sendRedirect(redirect);
  | }
  | else
  | {
  | RequestDispatcher requestdispatcher = 
servletcontext.getRequestDispatcher(redirect);
  | requestdispatcher.forward(servletrequest, servletresponse);
  | }
  | }
  | }
  | 
and the error looks like this:

  | java.lang.IllegalStateException: Could not start transaction
  | at 
org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(Unknown
 Source)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
  | at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
  | at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  | at 
org.mhenderson.turnaround.servlets.filter.GenericExceptionServletFilter.doFilter(GenericExceptionServletFilter.java:118)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.mhenderson.turnaround.servlets.filter.SessionExpiryServletFilter.doFilter(SessionExpiryServletFilter.java:99)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(Unknown Source)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:157)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 

[JBoss-user] [JBoss Seam] - Re: advice on managing exceptions / session timeouts

2005-12-20 Thread [EMAIL PROTECTED]
Looks like you forgot to rollback the txn in your filter. Or something like 
that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3913585#3913585

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3913585


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: advice on managing exceptions / session timeouts

2005-12-20 Thread henderson_mk
ok... this may be a stupid question... (so apologies in advance)... how do I do 
that?  Or what should I use to do that?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3913588#3913588

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3913588


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: advice on managing exceptions / session timeouts

2005-12-20 Thread [EMAIL PROTECTED]
Have you tried/looked at SeamExceptionFilter?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3913589#3913589

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3913589


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: advice on managing exceptions / session timeouts

2005-12-20 Thread henderson_mk
just did.  Star man.
thanks very much for the pointers in the right direction!  Really appreciate it.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3913595#3913595

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3913595


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user