[opencms-dev] jsp "inclusion loop" error

Alexander Kandzior alex at opencms.org
Fri Sep 6 13:18:08 CEST 2002


mingfai

Try to set CATALINA_OPTS="-Dfile.encoding=ISO-8859-1". It should run on
your platform, the errors you describe have not been encountered so far
and can not be reproduced here. Please try to verify the error on a
different machine so that we can reproduce it, we can certainly fix it
then.

Regards,
Alex.

----------------------------
Alexander Kandzior
OpenCms Group / Alkacon Software

> -----Original Message-----
> From: owner-opencms-dev at www.opencms.org 
> [mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Ming Fai
> Sent: Friday, September 06, 2002 11:28 AM
> To: opencms-dev at www.opencms.org
> Subject: RE: [opencms-dev] jsp "inclusion loop" error
> 
> 
> hi Alex,
> 
> thanks for your promptly reply. The environment is as follows:
> 
> java version "1.4.0_01"
> Java(TM) 2 Runtime Environment, Standard Edition (build 
> 1.4.0_01-b03) Java HotSpot(TM) Client VM (build 1.4.0_01-b03, 
> mixed mode)  (Sun Java SDK) mysql  Ver 11.15 Distrib 3.23.41 
> Redhat Linux 7.2 (2.4.7-10) Apache Tomcat/4.0.4
> 
> yes, it's in default. As mentioned, the jsp file is a pure 
> html with jsp extension for testing. I just quickly tried to 
> add a pageEncoding page directive to the jsp and it makes no 
> difference. (well, it shouldn't make any difference) The 
> following is my (new) jsp:
> 
> <%@ page pageEncoding="ISO-8859-1"  %>
> <html>
> 
> <body>
> 
> <p>this is a test</p>
> 
> </body>
> 
> </html>
> 
> Sorry that I've forgotten to provide the Systemerror message 
> in the jsp page. It cannot be copy-and-pasted.
> [CmsException]: 28 Error while launching template class. 
> Detailed Error: ...(same as the previous error message)
> 
> I wonder is it related to jsp template? I read about it in 
> another thread but I didn't use it at all.
> 
> Regards,
> mingfai
> 
> 
> 
> > -----Original Message-----
> > From: owner-opencms-dev at www.opencms.org 
> > [mailto:owner-opencms-dev at www.opencms.org]On Behalf Of Alexander 
> > Kandzior
> > Sent: Friday, September 06, 2002 4:56 PM
> > To: opencms-dev at www.opencms.org
> > Subject: RE: [opencms-dev] jsp "inclusion loop" error
> >
> >
> > mingfai,
> >
> > the inclusion loop error is thrown in case JSP "A" tries to include 
> > JSP "B" which in turn tries to include JSP "A" again, in 
> which case an 
> > endless look would occur.
> >
> > Please supply more information about your envirionment: Java SDK 
> > version, Database, Operation System,  Tomcat Version.
> >
> > What is the charset you write your JSP in? Is it the JSP default 
> > "ISO-8859-1"?
> >
> >
> > Best Regards,
> > Alex.
> >
> > ----------------------------
> > Alexander Kandzior
> > OpenCms Group / Alkacon Software
> >
> >
> > > -----Original Message-----
> > > From: owner-opencms-dev at www.opencms.org 
> > > [mailto:owner-opencms-dev at www.opencms.org] On Behalf Of Ming Fai
> > > Sent: Friday, September 06, 2002 10:48 AM
> > > To: opencms-dev at www.opencms.org
> > > Subject: [opencms-dev] jsp "inclusion loop" error
> > >
> > >
> > > hi,
> > >
> > > I've got an error when I create a new JSP page in 5.0 beta 1 / 
> > > tomcat 4.0.4. The log is attached at the bottom. The jsp 
> > > /test/test.jsp is without any jsp syntax but a plain 
> html. (i.e. sth 
> > > like <html><body><p>no jsp
> > > code</p></body></html>) Does anybody have idea on what wrong?
> > >
> > > I notice there are two related post in May about the 
> flexdemo and in 
> > > early Aug about JSP compilation. It seems to me they are not 
> > > referred to the same problem.
> > >
> > > In fact, I have strange experience in using jsp in OpenCMS. For a 
> > > fresh installed OpenCMS, normally, I can create and load 
> jsp pages. 
> > > However, after I've added other pages and made a couple 
> of changes, 
> > > all jsp cannot be loaded.
> > >
> > > please kindly advise and let me know if I should provide 
> any other 
> > > information to help to troubleshoot.
> > >
> > > regards,
> > > mingfai
> > >
> > >
> > >
> > > Error in CmsJspLoader.load() while loading:
> > > javax.servlet.ServletException: Flex
> > > Dispatcher: Dectected inclusion loop for target /test/test.jsp
> > > javax.servlet.ServletException: FlexDispatcher: Dectected 
> inclusion 
> > > loop for tar get /test/test.jsp
> > >         at 
> > > 
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexReque
> > > s
> > > tDispatcher.java:167)
> > >         at 
> com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:242)
> > >         at
> > > com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:121)
> > >         at com.opencms.core.OpenCms.showResource(OpenCms.java:653)
> > >         at
> > > 
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:231
> > > )
> > >         at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > >
> >
> >
> 





More information about the opencms-dev mailing list