Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 576006

Summary: [Tools] Error reading target definition: element type "hr" must be terminated...
Product: [RT] RAP Reporter: Markus Knauer <mknauer>
Component: ToolsAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: enesaktepe78
Version: unspecified   
Target Milestone: 3.19   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/c/rap/org.eclipse.rap.tools/+/185489
https://git.eclipse.org/c/rap/org.eclipse.rap.tools.git/commit/?id=8c086be77307dcdfdcb9a14d6437d855a6f22f8b
Whiteboard:
Attachments:
Description Flags
error dialogue showing "Error reading target definition" none

Description Markus Knauer CLA 2021-09-15 12:35:41 EDT
Created attachment 287135 [details]
error dialogue showing "Error reading target definition"

When the RAP Tools are installed in the Eclipse IDE it is possible to create exemplary RAP plugins as projects. During project creation the plugin wizard checks that a valid RAP target platform is set, and allows to download/resolve/activate such a platform in all other cases.

Downloading the RAP target definition with the RAP Tools fails with the error message

  'Installing RAP target platform' has encountered a problem.
  Error reading target definition

  The element type "hr" must be terminated by the matching end tag "</hr>"

RAP Tools are trying to download the target definition by HTTP, the server sends a HTTP "301 Moved Permanently" with a new https URL which is not understood by the underlying Java implementation.


*** WORKAROUND ***

As a temporary workaround I suggest to select and download a matching target definition file from https://download.eclipse.org/rt/rap/targets/ into the workspace, and resolve and load this manually.
Comment 1 Eclipse Genie CLA 2021-09-15 14:14:22 EDT
New Gerrit change created: https://git.eclipse.org/r/c/rap/org.eclipse.rap.tools/+/185489
Comment 3 Markus Knauer CLA 2021-10-18 16:53:37 EDT
*** Bug 576699 has been marked as a duplicate of this bug. ***