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

Bug 359037

Summary: No repository found at http://download.eclipse.org/rt/eclipselink/updates/categories.
Product: z_Archived Reporter: Markus Knauer <mknauer>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P2 CC: holger.staudacher, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Markus Knauer CLA 2011-09-27 06:31:02 EDT
I am using the following p2 repository URL in my target definition: 

  http://download.eclipse.org/rt/eclipselink/updates

When p2 tries to load the p2 metadata from this composite repository, it stops with the following error message:

  No repository found at http://download.eclipse.org/rt/eclipselink/updates/categories.
  An exception stack trace is not available.

By looking into the composite repo I found that at least the .../categories is *not* an artifact repository. Maybe that is the problem?
Comment 1 Eric Gwin CLA 2011-09-27 08:45:13 EDT
I don't see the issue with Indigo GA, I'm trying again after updating to SR1.

The categories dir is not an artifact repository. It only contains category metadata.
Comment 2 Markus Knauer CLA 2011-09-27 08:53:49 EDT
(In reply to comment #1)
> I don't see the issue with Indigo GA, I'm trying again after updating to SR1.

Maybe this only occurs if someone is using a target definition file. IMO the strategy by p2 when being used in the IDE is different, i.e. it downloads the metadata in a first step and only then starts to download the artifact.xml/jar files.

> The categories dir is not an artifact repository. It only contains category
> metadata.

Sure, it's not an artifact repository, but compositeArtifacts.xml tells p2 that it is:

<?xml version='1.0' encoding='UTF-8'?>
<?compositeArtifactRepository version='1.0.0'?>
<repository name='&quot;"EclipseLink Release Repository"&quot;' type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository' version='1.0.0'>
  <properties size='1'>
    <property name='p2.timestamp' value='1267023743270'/>
  </properties>
  <children size='13'>
    <child location='categories'/>
    ...
Comment 3 Eric Gwin CLA 2011-09-27 09:22:14 EDT
Ok. Try it again... I've removed the 'categories' child from the compositeArtifacts.xml. The instructions for creating composite repos wasn't clear and either case worked in testing. This is the first time an issue has shown up. If it resolves your issue I'll update the process.
Comment 4 Eric Gwin CLA 2011-09-27 10:58:57 EDT
Modified CompositeP2 generation scripts on all active branches to not include the categories directory in the compositeArtifacts.xml.

Awaiting confirmation this resolves the problem before merging.
Comment 5 Eric Gwin CLA 2011-09-27 11:03:57 EDT
Perhaps for clarity I should note that the compositeContents.xml remains unchanged and does include the "categories" directory (child).

I have also verified (with Indigo SR1) that the modified compositeArtifacts.xml does not cause any problems accessing the repository from within the IDE using either "install new software" (not recommended), or when modifying the target platform.
Comment 6 Markus Knauer CLA 2011-09-27 13:00:56 EDT
(In reply to comment #5)
> Perhaps for clarity I should note that the compositeContents.xml remains
> unchanged and does include the "categories" directory (child).

Yepp, no need to change this since .../categories contains a valid content.xml.

I tried it once again and didn't see the error. From my point of view this bug can be closed but I am never sure whether p2 uses some caches that make this error invisible for the time being. Anyway, if it re-appears I would reopen the bug. Thanks for fixing this!
Comment 7 Eric Gwin CLA 2011-09-27 14:14:02 EDT
merged in 10176-10180 for 2.3, trunk, 2.2, 2.1 and 2.0 branches respectively.
Comment 8 Eclipse Webmaster CLA 2022-06-09 10:22:37 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink