Well, It doesn't seem to matter what is in the included JSP. The other day I read MAGNOLIA-765 which I think is related, but apparently I didn't read closely enough to realize this change is for 3.1 ... For some reason I thought
it was already implemented in 3.0.x.

Probably a public instance with no caching is not a recommended configuration, and for this reason this error doesn't often show itself. I found that if I make no includes at all or use the jsp:include tag instead of cms:includeTemplate then
it appears to work.

Am 26.06.2007 um 16:40 schrieb Ulrich Metzger:

Hi,
not shure if this is a possible cause of error, but if your JSP
contains white space or an empty line at the very top, this could
cause the error.
J would try to write all tags which propably could send a redirect in
the first line of the JSP without a whitespace or newline between the
tags.

Uli

2007/6/26, white_fish <[email protected]>:

Hi List,

Should it work to have a public instance with and unsecured root, no
admin, etc. and NOT use caching?  The reason I ask is that I have a
situation where my included jsps (included via the cms include tag)
cause the following error:


FATAL  org.apache.jasper.runtime.JspFactoryImpl JspFactoryImpl.java
(internalGetPageContext:110) 26.06.2007 15:03:33  Exception
initializing page context
java.lang.IllegalStateException: Cannot create a session after the
response has been committed
at org.apache.catalina.connector.Request.doGetSession (Request.java:
2221)
at org.apache.catalina.connector.Request.getSession (Request.java:2031)


If I enable caching, I don't get this error.  If I require login, I
don't get this error.  But if I disable security on the root path and
leave caching disabled, I get this problem with session creation
after the response has been committed.  The jsps involved are my
own.  Causes this problem even the included jsp is empty.

I am using the head of the 3.0 branch.

here's a similar report:
http://www.nabble.com/Imagegallery-doesn-appear-for-anonymous-users-
tf3979543.html#a11297370

Another detail: it seems to work when I don't use the cms:include tag
to include my jsp but rather the jsp:include.


Cheers,
Chris

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to