Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Problem running P2 director application

Thanks Nick. Yes, I was able to successfully run the generator app
from the p2-agent archive I downloaded, but not the director app. I
want to install features using the director app for the moment.
Eventually, I would have to install features by programmatically
calling the relevant P2 APIs, but as a start, I'm just trying to run
director standalone. This is for the purpose of enabling of runtime
provisioning in the WSO2 Carbon (http://wso2.org/projects/carbon)
platform which is based on OSGi.

I would definitely would like to know how to run generator in other
ways and would appreciate it if you could share your materials with
me.

Thanks
Azeez

On Tue, Apr 28, 2009 at 12:20 AM, Nick Boldt <nickboldt@xxxxxxxxx> wrote:
> The p2 director != p2 metadata generator. They perform two different
> functions. Director is for installing software; generator is for turning an
> update site into a p2 repo (with artifacts.jar and content.jar).
>
> See:
>
> http://wiki.eclipse.org/Equinox_p2_Metadata_Generator
> http://wiki.eclipse.org/Equinox_p2_director_application
>
> If you want examples of how to use the generator beyond what's in the wiki,
> let me know - I have several, including a script to generate site.xml so
> your features are in a category.
>
> Nick
>
> Afkham Azeez wrote:
>>
>> Hi Folks,
>> I tried to run the director app as outlined in
>>
>> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_metadata_generator.html
>>
>> However, I got the following  error
>>
>> ------------------------------------------------------
>> !SESSION 2009-04-27 17:08:58.378
>> -----------------------------------------------
>> eclipse.buildId=unknown
>> java.version=1.5.0_08
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
>> Framework arguments:  -application
>> org.eclipse.equinox.p2.director.app.application -metadataRepository
>> http://download.eclipse.org/releases/ganymede/ -artifactRepository
>> http://download.eclipse.org/releases/ganymede/ -installIU
>> org.eclipse.cdt.feature.group -version 5.0.2.200902130801
>> Command-line arguments:  -os linux -ws gtk -arch x86 -application
>> org.eclipse.equinox.p2.director.app.application -metadataRepository
>> http://download.eclipse.org/releases/ganymede/ -artifactRepository
>> http://download.eclipse.org/releases/ganymede/ -installIU
>> org.eclipse.cdt.feature.group -version 5.0.2.200902130801
>>
>> !ENTRY org.eclipse.osgi 4 0 2009-04-27 17:08:59.251
>> !MESSAGE Application error
>> !STACK 1
>> java.lang.RuntimeException: Application
>> "org.eclipse.equinox.p2.director.app.application" could not be found
>> in the registry. The applications available are:
>> org.eclipse.equinox.app.error,
>> org.eclipse.equinox.p2.artifact.repository.mirrorApplication,
>> org.eclipse.equinox.p2.garbagecollector.application,
>> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator,
>> org.eclipse.equinox.p2.metadata.repository.mirrorApplication,
>> org.eclipse.equinox.p2.reconciler.application,
>> org.eclipse.equinox.p2.ui.admin.rcp.application.
>>        at
>> org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
>>        at
>> org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
>>        at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>        at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>        at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
>>        at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
>>        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>>        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>>
>> --------------------------------------------------------
>>
>> It seems that the director app cannot be  found in my P2 installation.
>> I'm using P2 equinox-p2-agent-3.5M2-linux.tar.gz.
>>
>> Do I have to separately download the director app?
>>
>>
>
> --
> Nick Boldt :: http://wiki.eclipse.org/User:Nickb
> Release Engineer :: Eclipse Modeling & Dash Athena
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev
>



-- 
Thanks
Afkham Azeez

Blog: http://afkham.org
Developer Portal: http://www.wso2.org
WSAS Blog: http://wso2wsas.blogspot.com
Company: http://wso2.com
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760


Back to the top