Chapter 9
275
If you don't nd these JAR les in the lib folder, you shall be able to nd them in the
WEB-INF\lib folder after extracting the downloaded zipped le, the mondrian.war
le, which can be found in the lib folder. You may have to copy the PostgreSQL JAR
le from its website or from the <ADEMPIERE_SVN>\tags\ adempiere360lts\
tools\lib
folder.
6. Add the above mentioned JAR les in the CLASSPATH.
7. Run the following command:
java mondrian.test.loader.MondrianFoodMartLoader -verbose -tables
-data -indexes -jdbcDrivers="org.postgresql.Driver,sun.jdbc.odbc.
JdbcOdbcDriver" -inputFile=C:\mondrian\demo\FoodMartCreateData.
sql -outputJdbcURL="jdbc:postgresql://localhost/foodmart"
-outputJdbcUser=adempiere360 -outputJdbcPassword=adempiere.
8. After the successful execution of the command, you shall see the following indicating
everything went well:
Finished load at: Thu Oct 9 13:32:39 GMT+05:30 2010.
9. Extract MONDRIAN_INSTALL_DIR\lib\mondrian.war to TOMCAT_HOME\
webapps\mondrian.
10. Copy postgresql.jar from the <ADEMPIERE_SVN>\tags\ adempiere360lts\
tools\lib
to WEB-INF\lib folder.
11. Open the mondrian.properties le in TOMCAT_HOME\webapps\mondrian\
WEB-INF
and change the following properties:
Jdbc= jdbc:postgres://localhost/foodmart?user=adempiere&#
38;password=adempiere
JdbcDrivers=org.postgresql.Driver
12. Go to the TOMCAT_HOME/webapps/mondrian/WEB-INF/queries folder and
change the following properties:
jdbcDriver="org.postgresql.Driver"
jdbcUrl="jdbc:postgresql://localhost/foodmart?user=ademp
iere&password=adempiere"
jdbcUser="adempiere"
jdbcPassword="ipgplprod"
13. In the following les:
mondrian.jsp
arrows.jsp
colors.jsp
fourhier.jsp