﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts Free / FusionCharts Free and JSP   / fcgeneral.war / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Tue, 02 Dec 2008 08:07:59 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: fcgeneral.war</title><link>http://www.fusioncharts.com/forum/Topic3708-45-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Please use the following instructions from modified Readme.txt to use JSP blueprint:&lt;br&gt;&lt;br&gt;=========================================&lt;br&gt;This demo application shows the capabilities of FusionCharts by integrating&lt;br&gt;it with JSP and MySQL/Access/SQL. The databases are contained in FusionChartsDB folder.&lt;br&gt;You'll find the Access MDB file and the SQL Database generation script.&lt;br&gt;&lt;br&gt;PLEASE NOTE THAT THIS DEMO APPLICATION JUST USES A HANDFUL OF CHARTS&lt;br&gt;FROM FUSIONCHARTS SUITE FOR DEMO PURPOSE. FUSIONCHARTS OFFERS A LOT&lt;br&gt;MORE VARIETY OF CHARTS, WHICH IS PRESENT IN EVALUATION DOWNLOAD.&lt;br&gt;&lt;br&gt;Troubleshooting&lt;br&gt;==================================================================&lt;br&gt;If for some reason, you do not see the charts, make sure you've&lt;br&gt;Adobe Flash Player 8 (or above) installed on your machine.&lt;br&gt;&lt;br&gt;Support Information&lt;br&gt;==================================================================&lt;br&gt;Website: http://www.InfoSoftGlobal.com/FusionCharts&lt;br&gt;Email: support@infosoftglobal.com&lt;br&gt;&lt;br&gt;Additional Information&lt;br&gt;==================================================================&lt;br&gt;This version works with the Access mdb database which is bundled with the web&lt;br&gt;application or with MySQL whose database-creation scripts are provided along&lt;br&gt;with the web application. We have used JSP 2.0 and j2sdk1.4.2_02 for the development&lt;br&gt;of this demo.&lt;br&gt;&lt;br&gt;Prerequisites:&lt;br&gt;1. Java version - j2sdk1.4.2_02 or higher&lt;br&gt;&lt;br&gt;2. Apache Tomcat version - jakarta-tomcat-5.0.28 or higher&lt;br&gt;&lt;br&gt;3. MySQL 4.X or higher OR MS Access database&lt;br&gt;&lt;br&gt;Installation Instructions:&lt;br&gt;1. Java version - j2sdk1.4.2_02 which can be downloaded from the following link:&lt;br&gt;http://java.sun.com/j2se/1.4.2/download.html&lt;br&gt;&lt;br&gt;2. After downloading and installing java,JAVA_HOME environment variable has to be set to determine the base path of the JDK.&lt;br&gt;To set this variable on Windows do the following:&lt;br&gt;Go to MyComputer, right click to view properties -&gt; advanced tab -&gt;environment variables&lt;br&gt;Set a new Variable name: JAVA_HOME with Value as the installation directory. For eg:&lt;br&gt;C:\j2sdk1.4.2_02&lt;br&gt;&lt;br&gt;3. Apache Tomcat version - jakarta-tomcat-5.0.28 which can be downloaded from the following link:&lt;br&gt;http://tomcat.apache.org/download-55.cgi&lt;br&gt;&lt;br&gt;Click on the core zip file. Download it.Extract it to some folder.&lt;br&gt;&lt;br&gt;4.After downloading and installing tomcat,CATALINA_HOME environment variable has to be set to determine the base path of the tomcat.&lt;br&gt;To set this variable on Windows do the following:&lt;br&gt;Go to MyComputer, right click to view properties -&gt; advanced tab -&gt;environment variables&lt;br&gt;Set a new Variable name: CATALINA_HOME with Value as the installation directory. For eg:&lt;br&gt;C:\jakarta-tomcat-5.0.25&lt;br&gt;&lt;br&gt;5. Copy the code to required place. Copy the App folder present in (FusionCharts_JSP) to the webapps folder of&lt;br&gt;your tomcat and rename it as fcblueprint. We have given that name to the web application. If you are giving a different&lt;br&gt;name, then you will have to make appropriate changes in the following steps also.&lt;br&gt;&lt;br&gt;6. Creation of the database required by FusionCharts:&lt;br&gt;If you are using MSAccess, then copy the FusionChartsDB.mdb present in the FusionChartsDB/MSAccess folder to some location on your hard-drive.&lt;br&gt;If you are using MySQL, then run the FusionChartsDBCreation.sql (present in the FusionChartsDB/MySQL) in your MySQL.&lt;br&gt;This creates the FusionChartsDB database on your machine.&lt;br&gt;&lt;br&gt;7. In order to configure the MySQL database:&lt;br&gt;Open the file "CATALINA_HOME"/conf/server.xml&lt;br&gt;Add the following xml code just before &lt;/Host&gt;&lt;br&gt;&lt;Context path="/fcblueprint" docBase="fcblueprint"&lt;br&gt;debug="5" reloadable="true" crossContext="true"&gt;&lt;br&gt;&lt;br&gt;&lt;Logger className="org.apache.catalina.logger.FileLogger"&lt;br&gt;prefix="localhost_DBTest_log." suffix=".txt"&lt;br&gt;timestamp="true"/&gt;&lt;br&gt;&lt;br&gt;&lt;Resource name="jdbc/FusionChartsDB"&lt;br&gt;auth="Container"&lt;br&gt;type="javax.sql.DataSource"/&gt;&lt;br&gt;&lt;br&gt;&lt;ResourceParams name="jdbc/FusionChartsDB"&gt;&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;factory&lt;/name&gt;&lt;br&gt;&lt;value&gt;org.apache.commons.dbcp.BasicDataSourceFactory&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;&lt;br&gt;&lt;!-- Maximum number of dB connections in pool. Make sure you&lt;br&gt;configure your mysqld max_connections large enough to handle&lt;br&gt;all of your db connections. Set to 0 for no limit.&lt;br&gt;--&gt;&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;maxActive&lt;/name&gt;&lt;br&gt;&lt;value&gt;100&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;&lt;br&gt;&lt;!-- Maximum number of idle dB connections to retain in pool.&lt;br&gt;Set to 0 for no limit.&lt;br&gt;--&gt;&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;maxIdle&lt;/name&gt;&lt;br&gt;&lt;value&gt;30&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;&lt;br&gt;&lt;!-- Maximum time to wait for a dB connection to become available&lt;br&gt;in ms, in this example 10 seconds. An Exception is thrown if&lt;br&gt;this timeout is exceeded. Set to -1 to wait indefinitely.&lt;br&gt;--&gt;&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;maxWait&lt;/name&gt;&lt;br&gt;&lt;value&gt;10000&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;&lt;br&gt;&lt;!-- MySQL dB username and password for dB connections --&gt;&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;username&lt;/name&gt;&lt;br&gt;&lt;value&gt;fcuser&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;password&lt;/name&gt;&lt;br&gt;&lt;value&gt;fcuser&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;&lt;br&gt;&lt;!-- Class name for the old mm.mysql JDBC driver - uncomment this entry and comment next&lt;br&gt;if you want to use this driver - we recommend using Connector/J though&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;driverClassName&lt;/name&gt;&lt;br&gt;&lt;value&gt;org.gjt.mm.mysql.Driver&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;--&gt;&lt;br&gt;&lt;br&gt;&lt;!-- Class name for the official MySQL Connector/J driver --&gt;&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;driverClassName&lt;/name&gt;&lt;br&gt;&lt;value&gt;com.mysql.jdbc.Driver&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;&lt;br&gt;&lt;!-- The JDBC connection url for connecting to your MySQL dB.&lt;br&gt;The autoReconnect=true argument to the url makes sure that the&lt;br&gt;mm.mysql JDBC Driver will automatically reconnect if mysqld closed the&lt;br&gt;connection. mysqld by default closes idle connections after 8 hours.&lt;br&gt;--&gt;&lt;br&gt;&lt;parameter&gt;&lt;br&gt;&lt;name&gt;url&lt;/name&gt;&lt;br&gt;&lt;value&gt;jdbc:mysql://localhost:3306/fusionchartsdb?autoReconnect=true&lt;/value&gt;&lt;br&gt;&lt;/parameter&gt;&lt;br&gt;&lt;/ResourceParams&gt;&lt;br&gt;&lt;/Context&gt;&lt;br&gt;&lt;br&gt;In the above xml,please change the username,password,url according to your database.Optionally, you can change the resource name,resourceparams name which are used to lookup for this database.WHatever values are given here same values should be given in the web.xml of your webapp.&lt;br&gt;&lt;br&gt;8. Changes to web.xml present in "CATALINA_HOME"/webapps/fcblueprint/WEB-INF/ folder:&lt;br&gt;In order to change the database from mysql to access or vice-versa, change the following entry in web.xml.&lt;br&gt;&lt;context-param&gt;&lt;br&gt;&lt;param-name&gt;dbName&lt;/param-name&gt;&lt;br&gt;&lt;param-value&gt;MySQL&lt;/param-value&gt;&lt;br&gt;&lt;description&gt;Database Name&lt;/description&gt;&lt;br&gt;&lt;/context-param&gt;&lt;br&gt;&lt;br&gt;Currently, you can set the param-value to MySQL or MSAccess.(case-sensitive)&lt;br&gt;In the case of Access DB, you have to set the path to the database in the following parameter in web.xml.&lt;br&gt;&lt;context-param&gt;&lt;br&gt;&lt;param-name&gt;AccessDBPath&lt;/param-name&gt;&lt;br&gt;&lt;param-value&gt;C:/tomcat/webapps/fcblueprint/BluePrintApp/FusionChartsDB/FusionChartsDB.mdb&lt;/param-value&gt;&lt;br&gt;&lt;description&gt; Absolute path to the Access DB &lt;/description&gt;&lt;br&gt;&lt;/context-param&gt;&lt;br&gt;In the case of MySQL DB,you have to set the Data Source Name in the following parameter in the web.xml&lt;br&gt;&lt;!-- DataSourceName as given in the resource-ref tag and in server.xml --&gt;&lt;br&gt;&lt;context-param&gt;&lt;br&gt;&lt;param-name&gt;dataSourceName&lt;/param-name&gt;&lt;br&gt;&lt;param-value&gt;jdbc/FusionChartsDB&lt;/param-value&gt;&lt;br&gt;&lt;description&gt;DataSource Name&lt;/description&gt;&lt;br&gt;&lt;/context-param&gt;&lt;br&gt;9.If you are using MySQL as the database, please start your MySQL instance.&lt;br&gt;10.To start the tomcat server,go to the tomcat installation directory ("CATALINA_HOME") and run startup.bat&lt;br&gt;&lt;br&gt;11.Access the FusionCharts website by opening the browser window with the following address:&lt;br&gt;http://localhost:8080/fcblueprint/BluePrintApp/Default.jsp&lt;br&gt;&lt;br&gt;Note: "CATALINA_HOME" refers to the installation directory of Tomcat</description><pubDate>Fri, 11 Jan 2008 08:30:55 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>fcgeneral.war</title><link>http://www.fusioncharts.com/forum/Topic3708-45-1.aspx</link><description>Hi -&lt;br&gt;&lt;br&gt;In the readme.txt file for FusionCharts_Evaluation/Code/JSP it says to install the fcgeneral.war file in your Tomcat webapp dir, but I cannot find the fcgeneral.war file. Can you let me know where I can get this?&lt;br&gt;&lt;br&gt;thanks.&lt;br&gt;ann</description><pubDate>Tue, 08 Jan 2008 17:38:44 GMT</pubDate><dc:creator>anners</dc:creator></item></channel></rss>