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

Bug 352340

Summary: P2 Console: No metadata repository manager found
Product: [Eclipse Project] Equinox Reporter: mmr
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: funsheep, pascal
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description mmr CLA 2011-07-18 07:52:53 EDT
Build Identifier: I20110613-1736

Iam try to use p2 console to add a repository. I've exported a deployable feature and want to install this unit with p2 console. The repository can be added by eclipse (Install new Software...) and the feature can also be installed. But it doesnt working with console.

This error occurs:

osgi> provaddrepo http://localhost/shk
java.lang.IllegalStateException: No metadata repository manager found
	at org.eclipse.equinox.internal.p2.console.ProvisioningHelper.addMetadataRepository(ProvisioningHelper.java:40)
	at org.eclipse.equinox.internal.p2.console.ProvCommandProvider._provaddrepo(ProvCommandProvider.java:80)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:209)
	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:155)
	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:140)
	at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:104)
	at java.lang.Thread.run(Unknown Source)


Reproducible: Always

Steps to Reproduce:
1. Create a new run configuration for osgi framework. Select org.eclipse.equinox.p2.console and all required Bundles.
2. Start this new Framework
3. Type into console (fill <URL>): provaddrepo <URL>
Comment 1 DJ Houghton CLA 2011-07-18 16:55:02 EDT
is org.eclipse.equinox.ds part of your configuration? A lot of the p2 bundles use DS for discovery and registration of services.
Comment 2 Pascal Rapicault CLA 2011-09-25 15:47:41 EDT
No answer closing.