Update of /var/cvs/contributions/CMSContainer_Portlets/portlets-jforum In directory james.mmbase.org:/tmp/cvs-serv24310/portlets-jforum
Modified Files: README.txt Log Message: CMSC-1104 - Improve install script and steps. See also: http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-jforum See also: http://www.mmbase.org/jira/browse/CMSC-1104 Index: README.txt =================================================================== RCS file: /var/cvs/contributions/CMSContainer_Portlets/portlets-jforum/README.txt,v retrieving revision 1.14 retrieving revision 1.15 diff -u -b -r1.14 -r1.15 --- README.txt 31 Mar 2009 01:24:02 -0000 1.14 +++ README.txt 2 Apr 2009 12:03:14 -0000 1.15 @@ -1,9 +1,9 @@ -DESCRIPTION: -This Portlet integrate JForum to CMSC. +DESCRIPTION +This portlet integrates JForum into CMSC. -INSTALL GUIDE: +INSTALL GUIDE -To install JForum Portlet, there are three steps you should do. +To install JForum Portlet, there are a few steps you should do. Step 1 : Add the dependencies below to your maven project.xml. @@ -153,6 +153,15 @@ <war.bundle>${war.bundle}</war.bundle> </properties> </dependency> + <dependency> + <groupId>htmlparser</groupId> + <artifactId>htmlparser</artifactId> + <version>1.5</version> + <type>jar</type> + <properties> + <war.bundle>${war.bundle}</war.bundle> + </properties> + </dependency> <dependency> <groupId>quartz</groupId> @@ -235,6 +244,7 @@ <war.bundle>${war.bundle}</war.bundle> </properties> </dependency> + <!-- jboss --> <dependency> <groupId>jboss</groupId> @@ -313,7 +323,7 @@ Step 2: Add below elements to web.xml -<listener> + <listener> <listener-class>net.jforum.ForumSessionListener</listener-class> </listener> @@ -341,7 +351,7 @@ </servlet-mapping> - Step 3 : Configure DataSouce +Step 3 : Configure DataSouce Add DataSouce in the context xml file,e.g.: the name should be "jdbc/jforum",create database "jforum" @@ -363,8 +373,8 @@ - configure it into a view at a page -Step 5: If you run CMSc applicaiton in the Staging/Live mode. - 5.1. add a DataSource in live context xml file. same to staging +Step 5: If you run CMSc application in the Staging/Live mode. +5.1. Add a DataSource in both Staging and Live context.xml files. They are equal. <Resource name="jdbc/jforum" auth="Container" type="javax.sql.DataSource" removeAbandoned="true" removeAbandonedTimeout="60" @@ -375,11 +385,17 @@ username="root" password="1234" driverClassName="com.mysql.jdbc.Driver" + factory="org.apache.commons.dbcp.BasicDataSourceFactory" url="jdbc:mysql://localhost:3306/jforum" /> -5.2 Add a property named "system.stagingpath" in live .the value is the url of staging + + +5.2 Add a property named "system.stagingpath" in live. The value is the url of staging like http://localhost:8080/cmsc-demo-staging -5.3 Check the WEB-INF/config/SystemGlobals.properties,be sure that - database.connection.implementation is net.jforum.DataSourceConnection ,not net.jforum.PooledConnection -5.4 Deploy successfully,it will create a new file jforum-custom.conf under WEB-INF\config +5.3 Check the WEB-INF/config/SystemGlobals.properties, be sure that + database.connection.implementation is "net.jforum.DataSourceConnection", + and not "net.jforum.PooledConnection" (without the quotes) + +5.4 Deploy it. If successful, it will create a new file jforum-custom.conf in WEB-INF/config + It should have read/write access to that directory. _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs