Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This page serves as additional release notes about 2.6.0 GA. It is intended as a supplement to the releaseNotes.html accompanying the release.

Problems developing uPortal 2.6.0 GA on Netbeans using ANY OS (was Mac OS X)

uPortal 2.6.0 requires Xalan 2.7.0. (This isn't actually a particularly strong requirement – you could retrofit it to use a different Xalan relatively easily, at the cost of no longer being on the default and preferred Xalan.) Apparently it is difficult to get NetBeans to cope with Xalan 2.7.0.

Netbeans 5.5(.1) comes with a bundled version of Tomcat (5.5.17). This is convenient as it offers developers an easy out-of-the-box solution for developing web applications. However it is problematic with uPortal 2.6.0 GA. Netbeans includes 2 additional jars in the common/endorsed directory in the bundled Tomcat (xml-apis.jar and xercesImpl.jar) that are not included with Tomcat as it is downloaded from Apache.

The Work-Around

You can use Netbeans 5.5.1 with uPortal 2.6.0 on JDK 1.5 by following these steps:

  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:
    <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).
    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.
    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"

From here, you can start using uPortal as usual.

Netbeans Response

An issue was filed with the Netbeans development team regarding this. As it turns out, the extra jar files are in the common/endorsed directory for backward compatibility with JDK 1.4 and below. When Netbeans is used with a JDK newer than 1.4, the endorsed directory is not being read, hence the error message that Xalan 2.7.0 can't be found. Netbeans 6.0 comes with an unmodified Tomcat 6 meaning that there is no undocumented or unexpected behavior like this to maintain any kind of backward compatibility. You will need to follow the work-around steps if you want to use Netbeans with uPortal.

  • No labels