Errors in Eclipse when importing the sample applications

When installing the EAServer Web services samples into Eclipse, you may see errors related to the following issues.

(CR #341509) You see several errors caused by the lack of Web service client classes that must be generated after importing. This is expected, since the client classes must be generated for each sample project according to the readme files that accompany each sample.

(CR #341533) You see errors for unresolved javax.ejb dependencies when importing the EJBSample. This sample is not intended to be built or used in Eclipse, but is rather meant to be compiled manually and then deployed to EAServer using EAServer Manager. EJBSample contains the source code for an EJB and requires classes that Eclipse does not have, such as javax.ejb.*. To eliminate error messages caused by the unresolved dependencies:

  1. Right-click the EJBSample node, and choose the Properties menu item.

  2. Choose Java Build Path on the left pane of the resulting dialog.

  3. Select the Libraries tab on the right pane, and click the Add External JARs button.

  4. Choose $JAGUAR/java/lib/easj2ee.jar, which adds the javax.ejb.* classes into the path for that project.