AW: [opencms-dev] NewsBean.properties file in NewsHack.zip

Mark Miller mark.miller at hema.ch
Tue Oct 21 08:49:02 CEST 2003


Mine works fine ... I guess you are using root as username ?

-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von Trevor Lee
Gesendet: 21 October 2003 07:48
An: opencms-dev at opencms.org
Betreff: [opencms-dev] NewsBean.properties file in NewsHack.zip

hi

Further to the problems i've been having with NewsHack.zip, I've noticed
that tomcat is logging the following:
Unable to connect to database jdbc:mysql://localhost/opencms
Unable to connect to database jdbc:mysql://localhost/opencms

I've modified NewsBean.properties with various combinations of
user/password
that is in the cms_users table of opencms as well as logging on as root
to
mysql.

If no user/password is required to access db do i omit the dbUser and
dbPassword fields from the NewsBean.properties file?

Is this a bug in the NewsHack jsps?
Has anyone actually got NewsHack to display articles at all?

Thank you in advance.

Cheers
Trevor

-----Original Message-----
From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]On Behalf Of Trevor Lee
Sent: Tuesday, October 21, 2003 1:21 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] NewsHack.zip Help!!!!




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.ja
va: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(ApplicationDispatc
her.
java:684)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atch
er.java:575)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher
.java:498)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spat
cher.java:180)
	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spat
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(Applica
tion
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
6)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	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.i
nvok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
	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:40
5)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onne
ction(Http11Protocol.java:380)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50
8)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.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


_______________________________________________
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