![]() |
|||||||||||||
|
This document describes how to install the Dlog4j Version 1.4 on the Tomcat Servlet Engine and assumes the following configuration. What about other servlet containers? These instructions favor Tomcat, but with some expertise you should be able to make Dlog4j work on any Servlet API 2.3 compatible Servlet Container (e.g. Weblogic, WebSphere, Jetty, Resin, ...). What about other databases? These instructions favor MySQL, but Dlog4j also includes database setup scripts for HSQL-DB. With some expertise you should be able to make Dlog4j work on any JDBC accessible database (e.g. Oracle, Informix, Sybase, MS SQL Server, ...). STEP 1: PrerequisitesBefore you install the Dlog4j software you need to make sure you have installed your Java SDK, your Servlet Engine, and your database installed and configured on your system. STEP 2: Unpack or Build the downloaded fileIf you downloaded the source code, you can do like this(and you need ant tool): UNIX/Linux: 1. using "./build.sh" to compile project 2. copy dist/dlog4j.war to {tomcat}/webapps or other application servers Windows: 1. using "build" to compile project 2. copy dist/dlog4j.war to {tomcat}/webapps or other application servers if you downloaded the Binaries,copy the file to {tomcat}/webapps or other application servers. Unzip the file. STEP 3: Create Dlog4j tables in your databaseNow you need to create a new database, create a user with appropriate privileges, and use an SQL script to create the database tables required to run Dlog4j. To do this, login to your database and run one of the Dlog4j database creation scripts located in Dlog4j's doc/database directory. If you use the HSQL DB ,you will do nothing on this step. The examples below show you how you might do this using MySQL, assuming your Dlog4j user will have username dlog4j and password dlog4j. UNIX example
Windows example, from an MS-DOS or Command Prompt window:
STEP 4: Deploy Dlog4j to your application serverDeploy Roller to your J2EE application server. You have to do this: Tell app server where to find Roller's install directory Example: For Tomcat users, this means editing the Tomcat Servlet engine's conf/server.xml (tomcat 4) or conf/Catalina/yourHost/somefile.xml (tomcat 5) configuration file to add a the Dlog4j Servlet Context.
STEP 5: Modify the configure fileSome final steps before you startup... Step 5.1: Configure the Deployment Descriptor ElementsIf you use the tomcat 4.x, you need to uncomment this content.
if you don’t use the HSQL Engine, you must be comment the content, otherwise you can jump to the step6.
Step 5.2: Data Source ConfigurationConfigure a datasource for your database(mysql).
STEP 6: Start Tomcat and Dlog4jStart your Servlet Container, open your web browser, browse to the Dlog4j start page and start using Dlog4j. If you are installing Dlog4j on Tomcat then your Dlog4j start page URL is probably http://localhost:8080/dlog4j. UNIX example:
windows example:
Step 7: optional stepsConfigure the mail sender:In the struts-config.xml.
|
||||||||||||
| Copyright ©2004 Winter Lau, All Rights Reserved | |||||||||||||