NapGen Installation

Apache Tomcat Installation

NapGen's XML validation was written in Java. Tomcat is a way of serving up Java servlet.

Here are the steps setting up Tomcat:

  1. Download Apache Tomcat's 32-bit/64-bit Windows Service Installer (e.g. apache-tomcat-6.0.35.exe) from http://tomcat.apache.org.
  2. Run the installer
    1. In the Choose Components dialog box, select also the item Host Manager.
    2. In the Configuration dialog box, enter the user name and password that will be used for logging into Tomcat as an administrator.

      WARNING: There are server attacks targeting Tomcat to have it running malware. If your Tomcat installation will be visible on the Internet via port scanning, be sure to have the administrator user name and password be very secure, meaning that they are not easily matched using a language dictionary.

    3. In the Java Virtual Machine dialog box:
      • If a Java Virtual Machine has been detected on your system, you will see a folder path pointing to the Virtual Machine. Just click Next to continue.
      • But when a Java Virtual Machine is NOT found on your system, you will have to cancel the Tomcat installation. Go to java.com to download and install Java. After that, go through this Tomcat installation again.
    4. In the Choose Install Location dialog box, specify a directory for installing Tomcat (e.g. c:\bin\ApacheSoftwareFoundation\Tomcat-6.0.35).
  3. Verify that Tomcat is indeed running by going to http://localhost:8080 to see the Tomcat welcome page.

    If nothing shows up, it may be that another software is already using port 8080. Use the DOS command netstat -noa to find out which process/software is using that port.

    WARNING: Do NOT configure Tomcat to listen to a different port. NapGen uses port 8080 to reach Tomcat.

  4. Deploy the XML validator to Tomcat
    1. Copy Xerces2Val.war from this distribution's install\war folder to Tomcat's web application directory (e.g. c:\bin\ApacheSoftwareFoundation\Tomcat-6.0.35\webapps).
    2. Go to Tomcat's Web Application manager: http://localhost:8080/manager/html (you will need to be logged in as administrator).
    3. Locate the row for /Xerces2Val.
    4. Check that its running column shows true. If it is not, click on its start link.