How to build the DMQ customized news site

 

Step 1 - Set up the web server and the Java Servlet container

The web server we used is Apache and the Java Servlet container we used is Tomcat.  Both these applications can be downloaded for free from http://www.apache.org.

For instructions on how to install Apache and Tomcat please visit http://www.apache.org and http://jakarta.apache.org respectively.

Tomcat's configuration needs to be updated so that Tomcat knows where to find the scraper servlet stuff.  This can be done by adding the following to the configuration file in the section that contains other context settings:

<Context path="/scraper"

docBase="webapps/scraper"

reloadable="true" >

</Context>

 

Step 2 - Copy the web files to the web server

Copy all of the files underneath the folder "htdocs" in the zip file to the root of the Apache web server.  The root of an Apache web server is by default underneath the folder "htdocs."

 

Step 3 - Copy the Servlet files to the Servlet container

Copy all of the files underneath the folder "webapps" in the zip file to the "webapps" folder of the Servlet container

 

Step 4 - Set up an ODBC connection

Set up an ODBC connection to the Microsoft Access database located at "webapps/scraper/web-inf/data store/scraper.mdb" in the Servlet container.  Name the ODBC connection "links."  Assign the user name "medved84" and the password "bear84" to the database.  If you want to change this you will also need to change this in the CustomDatabase.java file.

 

Step 5 - Build the Visual J++ project

Open the Visual J++ project located at "webapps/scraper/web-inf/classes/customservlet.vjp."  In order to get this to build correctly you need to have Java 2 SDK Enterprise Edition version 1.3 installed on your machine ( this package from Sun contains the Servlet API and implementation ).  Java 2 SDK Enterprise Edition version 1.3 can be downloaded for free from http://java.sun.com.  You may need to update the classpath of the project in the project properties to match the installation directory on your computer.  Also, the project uses the Java Virtual Machine provided by Sun, so you may need to update the path to "java.exe" in the project properties window to match the installation on your computer.  If you want to use Microsoft's Java Virtual Machine, go to the project properties window and under the launch tab select the "Default" radio button.

Once the project has been configured for your computer, you just need to hit the build menu option.

 

Step 6 - That's it

That should be it.

The front end of the web site is located at http://"your web server's name or IP address"/cs4500/ and the back end can be found at http://"your web server's name or IP address"/scraper/