These steps are necessary only if you work with a WebSphere® Portal
test environment server and you want to run or debug portlet projects which
refer to other projects in your workspace.
Add required projects to the Java™ Build Path and Project References.
In the Project Explorer view, right-click the portlet project
and select Properties.
In the left pane, select Java Build Path.
Select the Projects tab.
Select all required projects.
In the left pane, select Project References.
Select the projects that are referenced by the other projects.
Note: Indirect or nested project references are not supported. That
is, if a portlet project references a Java project, and the Java project
references a second Java project, the portlet project will not
have access to the second Java project unless you also include the
second Java project in the list of Project References.
Click OK.
If the required projects are EJB projects, follow these steps:
Add all required projects to the EAR project for the portlet
project.
In the Project Explorer view, expand the EAR project.
Double-click the EAR Deployment Descriptor to open its editor.
Select the Module tab.
In the Modules section, click Add to add a project
to use.
Click Finish.
Add other required projects by following the steps above.
Press Ctrl + S to save the data.
Click OK if the Repair Server Configuration
dialog box appears.
Add Java JAR dependencies:
In the Project Explorer view, right-click the portlet project and select
Properties.
Select the Java JAR Dependencies page.
Select Use EJB JARs or Use EJB client
JARs or Allow both.
Select the JAR files from the list and click OK.
Add all required projects to the server:
In the Servers view, right-click the server and select Add
and remove projects.
Remove unneeded projects from the Configured projects list box using the Remove or Remove
All buttons.
Move the appropriate projects from the Available projects list
to the Configured projects list using the Add or Add
All buttons.