|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/FusionChart/Code/J2EE/ |
Upload File : |
This version works with MySQL database whose database-creation scripts are provided along with the web application in the DB folder. We have used JSP 2.0 and jdk1.5 for the development of this demo. Prerequisites: 1. Java version - jdk1.5 or above 2. Apache Tomcat version - jakarta-tomcat-5.0.25 or above 3. MySQL 5.0 Installation Instructions: 1. Java version - jdk6 which can be downloaded from the following link: http://java.sun.com/javase/downloads/index.jsp 2. After downloading and installing java,JAVA_HOME environment variable has to be set to the base path of the JDK. To set this variable on Windows do the following: Go to MyComputer, right click to view properties -> advanced tab ->environment variables Set a new Variable name: JAVA_HOME with Value as the installation directory. For eg: C:\jdk1.5 3. Apache Tomcat version - tomcat6.0 which can be downloaded from the following link: http://tomcat.apache.org/download-60.cgi Click on the core zip file. Download it.Extract it to some folder. Configure tomcat as per the tomcat docs. 4. Copy the FusionCharts_J2EE.war present in Deployable folder to "CATALINA_HOME"/webapps folder when the tomcat server is running. 5. In order to configure the MySQL database: Open the file "CATALINA_HOME"/webapps/FusionCharts_J2EE/META-INF/context.xml. In this xml,please change the username,password,url according to your database. context.xml also contains the web application context, please modify it if you have changed the context. Run the scripts FactoryDBCreation.sql and UTFExampleTablesCreation.sql to create the required tables and sample data. 6.If you are using MySQL as the database, please start your MySQL instance. 7.Start the tomcat server. 8.Access the application by opening the browser window with the following address: http://localhost:8080/FusionCharts_J2EE/JSP/index.html Note: "CATALINA_HOME" refers to the installation directory of Tomcat --- For source code of the java files please see the folder SourceCode. --- If you do not want to use the war file (as described above), you can use deploy all the folders and files in your tomcat. For this, 1. Create a folder in "CATALINA_HOME"/webapps say FusionCharts_J2EE and a sub-folder JSP. 2. Copy the Download Package > Code > J2EE folder into "CATALINA_HOME"/webapps/FusionCharts_J2EE/JSP folder. 3. Move the WEB-INF folder present in Code/J2EE folder to "CATALINA_HOME"/webapps/FusionCharts_J2EE folder. 4. Move the META-INF folder present in Code/J2EE folder to "CATALINA_HOME"/webapps/FusionCharts_J2EE folder. 5. Finally, copy the FusionCharts folder from Download Package > Code to "CATALINA_HOME"/webapps/FusionCharts_J2EE folder. 6. Start the tomcat server and access the application by opening the browser window with the following address: http://localhost:8080/FusionCharts_J2EE/JSP/index.html