Steps to be followed for deploying the war file using Tomcat.#

Prerequisite:-
  1. Oracle as a database should be available.
    1. Also corresponding data model has already been created in database.
      This can be done executing SQL-queries present name is "Oracle_SQL_Script.txt" download and run in the Oracle.
    2. Along with this please ensure that corresponding classes12.jar, classes12.zip, & classes111.jar files are available in SYSTEM CLASSPATH.
      Because these will be required at the time of running the application to register JDBC driver. These files can be found under following directory: -
      %ORACLE_HOME%/oracle/ora90/jdbc/lib
  2. Tomcat as a application server (Tomcat 5.0 or Tomcat 4.0)
  3. JDK 1.4 or 1.5 should be installed.
    (Because source code present in current application is being compiled using jdk1.4’s compiler. So it can run in both Tomcat 4.x with jdk1.4 as well as Tomcat 5.x with jdk1.5)
    If any other lower java (jdk) version is being used then source code could be required to be re-compiled.

Steps to be followed to deploy the application: -

  1. Dump the attached inventory.war file (to be deployed) in standard webapps folder (available under %TOMCAT_HOME%) of tomcat.
  2. Start the server. (Starting tomcat server will result in creation of inventory folder corresponding to the inventory.war application deployed).
  3. Stop server.
  4. Navigate to folder inventory (%TOMCAT_HOME%/webapps/inventory/WEB-INF).
  5. Edit the file “connection.properties” available in above-mentioned path. Change settings (values) available for various key properties (Host, Port, SID, Username & Password) corresponding to the TNS-ENTRY for the connection where data model (tables, sequences etc.) has been created.
    A Sample “connection.properties” files is embedded as below, and can be seen as a simple text file using notepad.
  6. Re-start the server after changing the connection settings corresponding to following: - Host, Port, SID, Username & Password.
  7. After re-starting the server application can be tested navigation to following URL in a browser.
http://systemIP(e.g 127.0.0.1):port(default 8080)/inventory

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
txt
Oracle_SQL_Script.txt 1.9 kB 1 22-Aug-2006 13:14 202.153.35.12
war
inventory.war 124.5 kB 1 22-Aug-2006 13:16 202.153.35.12
« This page (revision-8) was last changed on 22-Aug-2006 14:01 by inspira