jst j2ee
test plan: Java Jar Dependencies
WTP LogoWTP Home

This test plan walks you through the scenario of how to set up j2ee jar dependencies between modules in an Enterprise Application module (EAR) that is used for application development and deployment. The jar dependencies can only be set within the boundaries of an Enterprise Application.

Web modules are an exception where utility jar dependencies can be set on standalone web modules too which is explained in Web Utility Jars test plan.


This test plan scenario works on WTP 0.7 M5 or later milestone releases.


    The Java Jar Dependencies properties page is used to setup jar dependencies between modules in an EAR. To launch this properties page right click on any j2ee module project (application client, web, ejb, connector) and select Properties-> J2EE Module Dependencies--> J2EE Modules

  1. Create an EAR with all the default modules (Application Client, Web, EJB, Connector) by going through the second page in the EAR creation wizard.

  2. Right click on the Web module created and select Properties-> J2EE Module Dependencies--> J2EE Modules

  3. The EJB and Connector modules show up as the available modules that the web module can have dependency on in the EAR. Select the ejb module and click OK or Apply

    Result: The following changes occur on setting the jar dependency of the ejb module on the web module.
    The MANIFEST.MF file gets an entry for each selected module.
    The .classpath file of the module gets updated with an entry for the selected modules.
    The .project files gets updated with the project dependency.
  4. The Manifest Class-Path non editable text area show the list of select modules that are added on to the Manifest.

  5. The Up and Down buttons are used to move the order or the selected modules that are added on to the Web Module in this case.

  6. The 3 radio buttons Use EJB JARS, UseEJB Client JARs and Allow both are used for filtration of having only client jars or EJB Jars or both as the available modules for dependency.

  7. Right click on Java project to invoke this property page, verify that no errors are thrown.