[opencms-dev] NewsHack.zip Help!!!!

Rene Hinojosa r_hinojosa at cityofsouthfield.com
Tue Oct 21 15:32:01 CEST 2003


Greetings,

Attached is a new News module (2.1) which is which I modified removing 
my original hack(NewsHack) It includes a database modification for 
releasing and expiring new items. I've also removed the need for the 
newsbean and its separate db connection. Read the addendum to the docs.


Rene


-------------- next part --------------
A non-text attachment was scrubbed...
Name: news_2.1.zip
Type: application/zip
Size: 53094 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031021/cb204c9e/attachment.zip>
-------------- next part --------------


On Monday, October 20, 2003, at 11:21 PM, Trevor Lee wrote:

>
>
> Hi,
>
> I have created a file called "my_news.jsp" which is a slightly modified
> version of "default_news.jsp" as contained in NewsHack.zip (downloaded  
> from
> http://opencms.al-arenal.de/). I am using OpenCms 5.0 with the news 2.0
> module on Tomcat4.1.12.
>
> my_news.jsp:
> <%@ page session="false" import="java.util.*" %>
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
> <!doctype html public "-//W3C//DTD HTML 4.01 Translational//EN">
> <html>
> <head>
> <meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;  
> CHARSET=<cms:property
> name="content-encoding" default="ISO-8859-1" />">
> </head>
> <body>
> <!-- Begin Page Content -->
> <div id="content">
> <cms:include element="body" />
> <!-- Test News -->
> <h1>News</h1>
> <cms:include
> file="/system/modules/com.opencms.modules.homepage.news/pages/ 
> news.jsp" />
> </div>
> </body>
> </html>
>
> I have followed the instructions in the readme.rtf contained in
> NewsHack.zip.
>
> 1. how do you use NewsHack's "news.jsp" to view the news articles?
> 2. What is it that needs to be changed in NewsHack.zip's news.jsp,
> news-nav.jsp and NewsItem.jsp? I've modified news.jsp's last line to  
> be:
> out.print("<p><a
> href=\"/system/modules/com.opencms.modules.homepage.news/pages/ 
> NewsItem.jsp?
> id="+newsItem.getID()+"\">"+newsItem.getHeadline()+"</a></p>");
> Is there anything else that needs to be modified in these 3 files?
>
> I get the following error when I try to run my_news.jsp:
> javax.servlet.ServletException: Resource loader error in file
> '/myProject/my_news.jsp'
>
> Root cause:
> org.apache.jasper.JasperException: FlexDispatcher: Dectected inclusion  
> loop
> for target /myProject/my_news.jsp
> 	at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
> ava:2
> 48)
> 	at  
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289 
> )
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat 
> cher.
> java:684)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis 
> patch
> er.java:575)
> 	at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa 
> tcher
> .java:498)
> 	at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestD 
> ispat
> cher.java:180)
> 	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
> 	at
> com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestD 
> ispat
> cher.java:268)
> 	at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
> 	at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
> 	at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
> 	at  
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic 
> ation
> FilterChain.java:247)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil 
> terCh
> ain.java:193)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal 
> ve.ja
> va:260)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
> 480)
> 	at  
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal 
> ve.ja
> va:191)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
> 480)
> 	at  
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 
> 96)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav 
> a:180
> )
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV 
> alve.
> java:170)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav 
> a:172
> )
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:641)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
> 480)
> 	at  
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve 
> .java
> :174)
> 	at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. 
> invok
> eNext(StandardPipeline.java:643)
> 	at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
> 480)
> 	at  
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at  
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4 
> 05)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process 
> Conne
> ction(Http11Protocol.java:380)
> 	at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 
> 08)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo 
> l.jav
> a:533)
> 	at java.lang.Thread.run(Thread.java:536)
>
> --------------- End of root cause.
>
> If anyone that has managed to get the NewsHack.zip stuff going please  
> help.
> Thank you.
>
> Cheers
> Trevor
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please  
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>


More information about the opencms-dev mailing list