From tapestry-user Wed Jan 16 21:20:37 2008 From: Kaspar Fischer Date: Wed, 16 Jan 2008 21:20:37 +0000 To: tapestry-user Subject: Re: [Slightly OT] GZIP compression filter and java.lang.IllegalStateException: Cannot create a sessi Message-Id: X-MARC-Message: https://marc.info/?l=tapestry-user&m=120051847829347 For the sake of completeness: I've solved this by enabling Tomcat 5.5's GZIP compression in server.xml: On 12.01.2008, at 03:44, Kaspar Fischer wrote: > Hi, > > I've tried to install a compression filter and followed > > http://www.nabble.com/-slight-OT--GZip-compression-filter- > td6901991.html > > for this. > > When I load my page, I get an exception (see below) about a OGNL > expression > that could not be parsed and "Cannot create a session after the > response has > been committed". (It works without the GZIP compression.) > > My configuration is: > > > > > CompressingFilter > class>com.planetj.servlet.filter.compression.CompressingFilter filter-class> > > > excludeContentTypes > application/pdf > > > excludePathPatterns > .*\.pdf > > > > > CompressingFilter > /* > REQUEST > > > > Does anybody know how I can fix this? > > Thanks in advance! > Kaspar > > P.S. I post (see link above) also mentions code; I have not changed/ > added > any code. Should I have done? > > -- > > javax.servlet.ServletException: Unable to parse OGNL expression > 'loginSession.isLoggedIn()': loginSession > > org.apache.hivemind.ApplicationRuntimeException: Unable to parse > OGNL expression 'loginSession.isLoggedIn()': loginSession > location: context:/WEB-INF/Border.html, line 121 > > org.apache.tapestry.BindingException: Unable to parse OGNL > expression 'loginSession.isLoggedIn()': loginSession > binding: ExpressionBinding[null loginSession.isLoggedIn()] > location: context:/WEB-INF/Border.html, line 121 > > org.apache.hivemind.ApplicationRuntimeException: Unable to parse > OGNL expression 'loginSession.isLoggedIn()': loginSession > > ognl.OgnlException: loginSession > > java.lang.IllegalStateException: Cannot create a session after the > response has been committed > org.apache.catalina.connector.Request.doGetSession(Request.java:2221) > org.apache.catalina.connector.Request.getSession(Request.java:2031) > org.apache.catalina.connector.RequestFacade.getSession > (RequestFacade.java:832) > org.apache.tapestry.web.ServletWebRequest.getSession > (ServletWebRequest.java:81) > ... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org > For additional commands, e-mail: users-help@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org