Frequently Asked Questions Support Page
for "Web Content Mining with Java"

If you're having problems configuring and running the download software for this book you might find the answer here.

Chapter 2

Q 2.1 I can't get the HTTPApplet to work

The applet is known to fail in some browser / Java Plug-in combinations, but you should be able to run it using the Java SDK AppletViewer. At the command prompt type:

appletviewer http://localhost:8080/JWebData/HTTPApplet.html

Figure A.2 (Appendix A, page 247) implies that you need only the applet directory deployed in the Tomcat webapps/JWebData/jwebdata directory. In fact you need the parsing, portal, and query directories deployed there too. For convenience a ready-made Tomcat application directory structure is available for download.

Chapter 5

Q 5.1 I can't get the PortalApplet to work

The applet is known to fail in some browser / Java Plug-in combinations, but you should be able to run it using the Java SDK AppletViewer. At the command prompt type:

appletviewer http://localhost:8080/JWebData/PortalApplet.html

The filters used in the PortalApplet have changed since the book was printed. Please refer to the new code in the download.

Figure A.2 (Appendix A, page 247) implies that you need only the applet directory deployed in the Tomcat webapps/JWebData/jwebdata directory. In fact you need the parsing, portal, and query directories deployed there too. For convenience a ready-made Tomcat application directory structure is available for download.

Q 5.2 I can't get the PortalServlet to work

The filters used in the PortalServlet have changed since the book was printed. Please refer to the code available in the download.

Appendix A

Q A.1 How do I configure and run the Java SDK and the Tomcat server?

Appendix A assumes that you'll follow the installation and configuration instructions provided with the third-party software. If you're having problems, the following additional information might help.

A JAVA_HOME environment variable must point to the Java SDK installation, e.g. JAVA_HOME=C:\_Apps\Java\j2sdk1.4.0-beta3.
A CATALINA_HOME environment variable must point to the Tomcat installation, e.g. CATALINA_HOME=C:\_Apps\Java\jakarta-tomcat-4.0-b7.

Your PATH environment variable must point to the bin directories PATH=%PATH%;%JAVA_HOME%\bin;%CATALINA_HOME%\bin (windows) or PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin (unix)

The CLASSPATH environment must include all of the the .jar files as shown on page 246 of the book.

You can start the Tomcat server by issuing the command %CATALINA_HOME%\bin\startup from the command line, and stop it with %CATALINA_HOME%\bin\startup.

Q A.2 I'm having problems setting up the Tomcat directory structure and running the SimpleServlet

The Tomcat deployment directory structure shown in Figure A.2 (Appendix A, page 247) is misleading. The correct deployment directory structure is available for download, but don't forget...

As described on page 247 of the book you must include the following lines in the server.xml file within the Tomcat /conf directory. Make sure you include these lines in a section of the file that has similar "context" enteries.

<!-- Tomcat WebMining Context -->
<Context path="/JWebData" docBase="JWebData" debug="0"/>

Now start up Tomcat (see above) and try running the SimpleServlet via URL http://localhost:8080/JWebData/SimpleServlet. If the servlet is not found you can try stopping Tomcat, then remove the forward slash / from the context path shown above, then start up Tomcat again and try the same URL.

END OF QUESTIONS