Versions Compared

Key

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

...

  1. Download and unzip a 5.5.x version of Tomcat to a directory of your choice (say C:\tomcat\apache-tomcat-5.5.23)
  2. Edit the tomcat-users.xml file in the conf directory to add a manager role and a user for that role. For example, you can add the lines:
    Code Block
    xml
    xml
      <role rolename="manager"/>
      <user username="uportal" password="tomcat" roles="manager"/>
    
  3. In Netbeans, add the tomcat server.
    1. Open the Runtime view (Window | Runtime from the main menu or Ctrl+5).
    2. On the Servers node, right-click and select "Add Server...". This will start the "Add Server Instance" wizard.
    3. In the "Add Server Instance" dialog, choose Tomcat 5.5 from the "Server:" combobox
    4. In the "Name:" field, enter a name for your Tomcat instance (e.g. uPortal 2.6.0GA in Tomcat 5.5.23).
      Image Removed Image Added
    5. Click the "Next > " button.
    6. In the "Add Server Instance" dialog, enter the path to your Tomcat install in the "Catalina Home:" field.
      1. If you want to specify a separate directory for your Catalina Base directory, check the "Use Private Configuration Folder (Catalina Base)" checkbox.
    7. Enter the name of the manager you entered in your tomcat-users.xml file in the "Username:" and "Password:" fields.
      Image Removed Image Added
    8. Click the "Finish" button.
    9. You will see your new server instance under the "Servers" node in the "Runtime" view.
  4. Set up uPortal as a web project in Netbeans. See Gregg Sporar's 4-part series for configuring uPortal to take advantage of Netbeans' IDE features. There are some Tomcat items that don't apply with the current version of uPortal.
  5. Open the Files view (Window | Files from the main menu or Ctrl+2).
  6. Open the build.properties file.
  7. Set the server.home and server.base properties and save the file.
  8. Run the initportal target.
  9. Start the new Tomcat instance in Netbeans from the Runtime view.
  10. Expand the Tomcat instance node and then expand the "Web Applications" node. Right-click on uPortal and select "Open in Browser"

...