Struts tools Release Notes

© Copyright International Business Machines Corporation 2006. All rights reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM® Corp.

Release notes

1.0 Known problems and workarounds
   1.1 Errors In Struts Sample Applications
   1.2 Problem drawing link in Web Diagram Editor when Struts Configuration File Editor is open
   1.3 When a Struts sample is imported, the target runtime may be undefined

1.0 Known problems and workarounds

1.1 Errors In Struts Sample Applications

If you import the "Example Application" (struts-example) or the "Upload Example" (struts-upload) sample application from the Struts samples in the Samples Gallery (in the "Technology samples" category), you will probably see some error markers in the Problems view.  The Struts samples are from the Struts distribution of the Apache Struts project.  The samples are included verbatim in the Samples Gallery for your convenience.  They do contain a few errors.
 

1.2 Problem drawing link in Web Diagram Editor when Struts Configuration File Editor is open

If you draw a link in the Web diagram editor when the Struts configuration file editor is open, the product may log an error: org.eclipse.core.commands.ExecutionException, java.lang.reflect.InvocationTargetException, or both.  If one of these errors is logged, restart your workbench and close the Struts configuration file editor, and then resume using the Web diagram editor.  Of one of these errors is logged and you do not follow the preceding steps, any changes that you make to the Web diagram, the Struts configuration file, or both may be lost or contain errors.

To avoid this problem, close all Struts configuration file editors when you use the Web diagram editor.

1.3 When a Struts sample is imported, the target runtime may be undefined

Problem :
When you import a Struts sample into your workspace, the project may show an error,  "Target runtime WebSphere® Application Server V6.1 stub is not defined."  This error occurs when the workbench's server list does not contain 'WebSphere Application Server V6.1 stub'. Whether this error occurs depends on your workbench configuration, as well as the servers that are installed on your computer.

Workaround:
Before using the sample, set up the target server for your project:

  1. To view or modify the list of available servers:
  2. In the Project Explorer view, right-click the Struts sample project that you imported and click Properties.
  3. Click Targeted Runtimes and select a check box for one of the servers.
  4. Click OK.
  5. Repeat steps 2-4 with the Struts sample EAR project that you imported.

 After setting up the target server, rebuild and deploy the Struts sample project:

  1. To rebuild the project, click Project > Clean ...  on the main menu. In the Clean window, select Clean all projects or Clean projects selected below.  Click OK.
  2. If the sample that you imported contains errors, click Windows > Preferences ... > Server > WebSphere on the main menu, and then select Allow applications containing errors to be published on a server.  Click OK.
  3. To deploy the project, right-click it in the Project Explorer and click Run As > Run on Server...  (Verify that the correct target server is selected.)