Installing the Books for Geeks Example in Windows

I l @ ve RuBoard

  1. Follow the instructions in the previous two appendixes to install JDK, Ant, Tomcat, MySQL, and MM.MySQL for your appropriate operating system.

  2. Go to http://jakarta.apache.org/log4j/jakarta-log4j-1.1.3.zip, open the archive using WinZip, and extract the archive to C:\temp\log4j. Find the dist/lib subdirectory, and copy log4j.jar to C:\JAKARTA-TOMCAT-4.0.1\LIB.

  3. Go to http://jakarta.apache.org/builds/jakarta-turbine/archive/ turbine .old/2.1b4/, click tdk-3.0a4.zip , and open the archive extract to C:\TEMP . Copy velocity-1.2-dev.jar and turbine-2.1b4.jar from the tdk\share\lib subdirectory to C:\JAKARTA-TOMCAT-4.0.1\LIB . Be sure that you do not use the later releases because it doesn't have the turbine-2.1.jar file in it.

  4. Unzip the CARTAPP zip file into C:\TEMP .

  5. Open an editor in C:\TEMP\CARTAPP\bfg\build.xml and change the definition of tomcatdir to C:\JAKARTA-TOMCAT-4.0.1\ .

  6. Do an ant dist in the C:\TEMP\CARTAPP\bfg directory .

  7. Edit the server.xml file in C:\JAKARTA-TOMCAT-4.0.1\CONF by adding the following:

     <! BFG Context > <Context path="/bfg" docBase="bfg" debug="0"          reloadable="true">   <Environment name="maxExemptions" type="java.lang.Integer"               value="15"/>   <Parameter name="context.param.name" value="context.param.value"              override="false"/>   <Resource name="mail/session" auth="CONTAINER"             type="javax.mail.Session"/>   <ResourceParams name="mail/session">     <parameter>       <name>mail.smtp.host</name>       <value>192.168.1.1</value>     </parameter>   </ResourceParams> </Context> 
  8. Change 192.168.1.1 to your SMTP mail server.

  9. Stop Tomcat if it's running, and restart it.

  10. cd to C:\TEMP\SQL\BFG.

  11. Run DATABASE_CREATE.BAT .

  12. Set your browser to http://localhost:8080/bfg/jsp , and you should see the application running. If not, make sure that the basic Tomcat installation is working according to the instructions given in Appendix A,"Getting and Installing JDK, Ant, and Tomcat."

I l @ ve RuBoard


MySQL and JSP Web Applications. Data-Driven Programming Using Tomcat and MySQL
MySQL and JSP Web Applications: Data-Driven Programming Using Tomcat and MySQL
ISBN: 0672323095
EAN: 2147483647
Year: 2002
Pages: 203
Authors: James Turner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net