Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Configure Tomcat 7

  1. Configure tomcat-users.xml
    Open ${CATALINA_HOME}/conf/tomcat-users.xml with a text editor.  Create the following 2 uses:
    Code Block
    <user username="script" password="XXXXXXXX" roles="manager-script,admin"/>
    <user username="gui" password="YYYYYYYY" roles="manager-gui,admin"/>
    
    The script user will be used to deploy your application to the Tomcat server.
    The gui user will be used to access the Tomcat Manager.
    Be sure to change the passwords to passwords of your choice.
    When you are satisified that everything is correct, save your changes.
  2. Install the ojdbc14-10.2.0.5.jar
    Install the ojdbc14-10.2.0.5.jar to either the ${CATALINA_HOME}/lib or the ${CATALINA_HOME}/common/lib directory.  The ojdbc14-10.2.0.5.jar has to go into only one directory.  If you do not have the ojdbc14-10.2.0.5.jar, you can download the ojdbc14-10.2.0.5.jar now and save it to your workstation.
  3. Configure context.xml
    Open ${CATALINA_HOME}/conf/context.xml with a text editor.  
    1. change the <context> tag to the following:
      Code Block
      <Context useHttpOnly="false">
      
    2. add the following anywhere beteen the <context> ans and </context> tags:
      Code Block
      <Resource name="jdbc/MitsisDs"
         auth="Container"
         type="javax.sql.DataSource"
         driverClassName="oracle.jdbc.OracleDriver"
         url="jdbc:oracle:thin:@//earth-vault-2.mit.edu:1523/sundev2"
         username="XXXXXXXX"
         password="YYYYYYYY"
         maxActive="20"
         maxIdle="10"
         maxWait="-1"
         removeAbandoned="true"
         removeAbandonedTimeout="30"
         logAbandoned="true" />
      
      If your project's JNDI name is something other than MitsisDS, then you must change MitsisDS in the above to your project's JNDI name.  If you don't know what JNDI name to use, your team leader can get it for you.
      Be sure to change the username and password.
      When you are satisified that everything is correct, save the changes.
  4. Test the Tomcat installation
    1. Open a cmd window, cd to ${CATALINA_HOME}/bin and start the tomcat server.
    2. Open a browse and go to the URL: http://localhost:8080/manager/html.
    3. When prompted for the username and password, use gui for the user name and enter the password that you choose in Step 1 above.
      If everything was done correctly, you will have the following page displayed:

Configure Tomcat 7 is now complete