Disable Stupid Eclipse JSP Validation Errors
The Fix
If you use Eclipse to develop Java web applications, you may encounter a seemingly serious JSP validation error similar to the following:
An error occurred at line: 459 in the generated java file
Duplicate local variable configurationExists
An error occurred at line: 576 in the generated java file
Duplicate local variable configurationExists
An error occurred at line: 693 in the generated java file
Duplicate local variable configurationExists
...
Based on online discussions, it appears that JSP validation in Eclipse is actually throwing an error for a perfectly valid JSP syntax. So the recommended fix is to simply disable the validation check on Eclipse.
- Go to “Project->Properties->Validation”.
- Click “Configure Workspace Settings…”.
- Unselect options for JSP Syntax Validator. You need to uncheck both manual and build.
References
- Mysterious Eclipse JSP Validation Errors
- Struts 1.2 and bean:define tag throws jsp 1.1 regression exception