Home » Eclipse Projects » Equinox » Problems with p2-izing a product
Problems with p2-izing a product [message #121587] |
Tue, 25 November 2008 19:19 |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
Hi,
I'm unable to p2-ize a product, after about a week of "monkey see,
monkey do", and I'm convinced that there's something wrong in what I'm
doing.
I'm p2-izing my product using the following command line:
<java
classpath=" ${p2.eclipse.dir}/plugins/org.eclipse.equinox.launcher_${ecl ipse.launcher.version}.jar "
classname="org.eclipse.equinox.launcher.Main" timeout="30000000"
resultproperty="p2.build.exit.code" fork="true">
<arg line="-clean -consoleLog -debug -nosplash -nosplash
--launcher.suppressErrors" />
<arg line="-application org.eclipse.equinox.p2.director.app.application" />
<arg line="-flavor tooling" />
<arg line="-installIU ${p2.IU}" />
<!--arg line="-list" /-->
<arg line="-version ${p2.version}" />
<arg line="-p2.os ${p2.os}" />
<arg line="-p2.ws ${p2.ws}" />
<arg line="-p2.arch ${p2.arch}" />
<arg line="-roaming" />
<arg line="-profile TwistProfile" />
<arg line="-metadataRepository file:${build_directory}/repo/" />
<arg line="-artifactRepository file:${build_directory}/repo/" />
<arg line="-destination ${p2.director.install.path}" />
<arg line="-bundlepool ${p2.director.install.path}" />
<jvmarg line="-Declipse.p2.data.area=${p2.director.install.path}/p2 "/>
</java>
However the exec fails with a lot of errors:
[java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
00:39:55.022
[java] !MESSAGE Error at line 10, column 91: Missing required
attribute in "repository": url
[java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
00:39:55.023
[java] !MESSAGE Error at line 10, column 91: Illegal value for
attribute "url" of element "repository": null
[java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
00:39:55.024
[java] !MESSAGE Error at line 11, column 91: Missing required
attribute in "repository": url
[java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
00:39:55.026
[java] !MESSAGE Error at line 11, column 91: Illegal value for
attribute "url" of element "repository": null
[java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
00:39:55.027
[java] !MESSAGE Error at line 12, column 90: Missing required
attribute in "repository": url
[java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
00:39:55.029
[java] !MESSAGE Error at line 12, column 90: Illegal value for
attribute "url" of element "repository": null
[java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
00:39:55.030
[java] !MESSAGE Error at line 13, column 90: Missing required
attribute in "repository": url
[java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
00:39:55.032
[java] !MESSAGE Error at line 13, column 90: Illegal value for
attribute "url" of element "repository": null
[java]
[java] !ENTRY org.eclipse.equinox.p2.director.app 4 0 2008-11-26
00:41:43.818
[java] !MESSAGE The installable unit
com.thoughtworks.twist.eclipse.ui.product has not been found.
[java] The installable unit
com.thoughtworks.twist.eclipse.ui.product has not been found.
[java] Java Result: 13
The installation unit "com.thoughtworks.twist.eclipse.ui.product"
however does exist and is listed when I use the -list argument.
I'm also not sure why the other errors about illegal values crop up.
-- Ketan
|
|
|
Re: Problems with p2-izing a product [message #121627 is a reply to message #121587] |
Wed, 26 November 2008 14:18 |
Laurent Marchal Messages: 91 Registered: July 2009 |
Member |
|
|
I think the errors you get are because the "update site url" of some
feature are empty.
Maybe these errors are critical, and it's because the installable unit
com.thoughtworks.twist.eclipse.ui.product can not been found.
I encounter the same problems as you, so confirmations are welcome !
Ketan Padegaonkar wrote:
> Hi,
>
> I'm unable to p2-ize a product, after about a week of "monkey see,
> monkey do", and I'm convinced that there's something wrong in what I'm
> doing.
>
> I'm p2-izing my product using the following command line:
>
> <java
> classpath=" ${p2.eclipse.dir}/plugins/org.eclipse.equinox.launcher_${ecl ipse.launcher.version}.jar "
> classname="org.eclipse.equinox.launcher.Main" timeout="30000000"
> resultproperty="p2.build.exit.code" fork="true">
> <arg line="-clean -consoleLog -debug -nosplash -nosplash
> --launcher.suppressErrors" />
> <arg line="-application
> org.eclipse.equinox.p2.director.app.application" />
> <arg line="-flavor tooling" />
> <arg line="-installIU ${p2.IU}" />
> <!--arg line="-list" /-->
> <arg line="-version ${p2.version}" />
> <arg line="-p2.os ${p2.os}" />
> <arg line="-p2.ws ${p2.ws}" />
> <arg line="-p2.arch ${p2.arch}" />
> <arg line="-roaming" />
> <arg line="-profile TwistProfile" />
> <arg line="-metadataRepository file:${build_directory}/repo/" />
> <arg line="-artifactRepository file:${build_directory}/repo/" />
> <arg line="-destination ${p2.director.install.path}" />
> <arg line="-bundlepool ${p2.director.install.path}" />
> <jvmarg line="-Declipse.p2.data.area=${p2.director.install.path}/p2 "/>
> </java>
>
> However the exec fails with a lot of errors:
>
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.022
> [java] !MESSAGE Error at line 10, column 91: Missing required
> attribute in "repository": url
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.023
> [java] !MESSAGE Error at line 10, column 91: Illegal value for
> attribute "url" of element "repository": null
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.024
> [java] !MESSAGE Error at line 11, column 91: Missing required
> attribute in "repository": url
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.026
> [java] !MESSAGE Error at line 11, column 91: Illegal value for
> attribute "url" of element "repository": null
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.027
> [java] !MESSAGE Error at line 12, column 90: Missing required
> attribute in "repository": url
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.029
> [java] !MESSAGE Error at line 12, column 90: Illegal value for
> attribute "url" of element "repository": null
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.030
> [java] !MESSAGE Error at line 13, column 90: Missing required
> attribute in "repository": url
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.032
> [java] !MESSAGE Error at line 13, column 90: Illegal value for
> attribute "url" of element "repository": null
> [java]
> [java] !ENTRY org.eclipse.equinox.p2.director.app 4 0 2008-11-26
> 00:41:43.818
> [java] !MESSAGE The installable unit
> com.thoughtworks.twist.eclipse.ui.product has not been found.
> [java] The installable unit
> com.thoughtworks.twist.eclipse.ui.product has not been found.
> [java] Java Result: 13
>
> The installation unit "com.thoughtworks.twist.eclipse.ui.product"
> however does exist and is listed when I use the -list argument.
>
> I'm also not sure why the other errors about illegal values crop up.
>
> -- Ketan
|
|
|
Re: Problems with p2-izing a product [message #121640 is a reply to message #121587] |
Wed, 26 November 2008 17:44 |
Topher Fangio Messages: 4 Registered: July 2009 |
Junior Member |
|
|
This is a multi-part message in MIME format.
--------------030500030000020105010105
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Ketan Padegaonkar wrote:
> Hi,
>
> I'm unable to p2-ize a product, after about a week of "monkey see,
> monkey do", and I'm convinced that there's something wrong in what I'm
> doing.
>
> I'm p2-izing my product using the following command line:
>
> <java
> classpath=" ${p2.eclipse.dir}/plugins/org.eclipse.equinox.launcher_${ecl ipse.launcher.version}.jar "
> classname="org.eclipse.equinox.launcher.Main" timeout="30000000"
> resultproperty="p2.build.exit.code" fork="true">
> <arg line="-clean -consoleLog -debug -nosplash -nosplash
> --launcher.suppressErrors" />
> <arg line="-application
> org.eclipse.equinox.p2.director.app.application" />
> <arg line="-flavor tooling" />
> <arg line="-installIU ${p2.IU}" />
> <!--arg line="-list" /-->
> <arg line="-version ${p2.version}" />
> <arg line="-p2.os ${p2.os}" />
> <arg line="-p2.ws ${p2.ws}" />
> <arg line="-p2.arch ${p2.arch}" />
> <arg line="-roaming" />
> <arg line="-profile TwistProfile" />
> <arg line="-metadataRepository file:${build_directory}/repo/" />
> <arg line="-artifactRepository file:${build_directory}/repo/" />
> <arg line="-destination ${p2.director.install.path}" />
> <arg line="-bundlepool ${p2.director.install.path}" />
> <jvmarg line="-Declipse.p2.data.area=${p2.director.install.path}/p2 "/>
> </java>
>
> However the exec fails with a lot of errors:
>
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.022
> [java] !MESSAGE Error at line 10, column 91: Missing required
> attribute in "repository": url
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.023
> [java] !MESSAGE Error at line 10, column 91: Illegal value for
> attribute "url" of element "repository": null
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.024
> [java] !MESSAGE Error at line 11, column 91: Missing required
> attribute in "repository": url
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.026
> [java] !MESSAGE Error at line 11, column 91: Illegal value for
> attribute "url" of element "repository": null
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.027
> [java] !MESSAGE Error at line 12, column 90: Missing required
> attribute in "repository": url
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.029
> [java] !MESSAGE Error at line 12, column 90: Illegal value for
> attribute "url" of element "repository": null
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.030
> [java] !MESSAGE Error at line 13, column 90: Missing required
> attribute in "repository": url
> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
> 00:39:55.032
> [java] !MESSAGE Error at line 13, column 90: Illegal value for
> attribute "url" of element "repository": null
> [java]
> [java] !ENTRY org.eclipse.equinox.p2.director.app 4 0 2008-11-26
> 00:41:43.818
> [java] !MESSAGE The installable unit
> com.thoughtworks.twist.eclipse.ui.product has not been found.
> [java] The installable unit
> com.thoughtworks.twist.eclipse.ui.product has not been found.
> [java] Java Result: 13
>
> The installation unit "com.thoughtworks.twist.eclipse.ui.product"
> however does exist and is listed when I use the -list argument.
>
> I'm also not sure why the other errors about illegal values crop up.
>
> -- Ketan
Ketan:
I have been having very similar problems myself. After reading your post
I realized that I did not have the "file:" specified on my repository
arguments. After changing that, I have successfully made it work. Follow
the steps outlined at http://toedter.com/blog/?p=27 up to step 5, except
make the product id be "com.acme.rcp.product".
Then, instead of "running the director app" in step 5, simply run the
attached ant file. You will almost certainly need to change a few of the
properties at the top to be the same as your installation as well as the
p2 params in the p2-install target a few lines below.
Note that I export my files to "C:\test" with a root directory of
"eclipse". Also, the p2Build.xml script seems to take a bleeding
lifetime to run on my machine (about 3 minutes), so if it seems to be
stuck, just give it a bit. I think this is due to me having 1100
plug-ins in my target.
Let me know if you have any trouble! I'm going to work on getting it to
update next!
-TF
--------------030500030000020105010105
Content-Type: text/xml;
name="p2Build.xml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="p2Build.xml"
PHByb2plY3QgbmFtZT0iUDItaXplIHRoZSBleHBvcnRlZCBwcm9kdWN0IiBk ZWZhdWx0PSJi
dWlsZC1hbGwiPg0KDQoJPHByb3BlcnR5IG5hbWU9ImJhc2VMb2NhdGlvbiIg dmFsdWU9IkM6
L3Rlc3QiIC8+DQoJPHByb3BlcnR5IG5hbWU9InJvb3REaXJlY3RvcnkiIHZh bHVlPSJlY2xp
cHNlIiAvPg0KCTxwcm9wZXJ0eSBuYW1lPSJpbnN0YWxsTG9jYXRpb24iIHZh bHVlPSIke2Jh
c2VMb2NhdGlvbn0vJHtyb290RGlyZWN0b3J5fSIgLz4NCgkNCgk8cHJvcGVy dHkgbmFtZT0i
bGF1bmNoZXIudmVyc2lvbiIgdmFsdWU9Il8xLjAuMTAxLlIzNHhfdjIwMDgw ODE5IiAvPg0K
DQoJPHRhcmdldCBuYW1lPSJidWlsZC1hbGwiPg0KDQoJCTxlY2hvIG1lc3Nh Z2U9IkJ1aWxk
IHN0YXJ0aW5nLi4uIiAvPg0KCQk8ZWNobyBtZXNzYWdlPSJJbml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c2UucDIuZGF0YS5hcmVhPSR7aW5zdGFsbExvY2F0aW9u fS9wMiIgLz4N
CgkJPC9qYXZhPg0KDQoJCTxlY2hvIG1lc3NhZ2U9IkJ1aWxkIGZpbmlzaGVk IiAvPg0KDQoJ
PC90YXJnZXQ+DQoNCjwvcHJvamVjdD4=
--------------030500030000020105010105--
|
|
|
Re: Problems with p2-izing a product [message #121654 is a reply to message #121627] |
Wed, 26 November 2008 18:05 |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
Hi,
You are correct about the update site URL being incorrect, the update
site URL is the URL where we'd be publishing the artifacts *after* it
builds.
I'm still in the dark about what is to be done about this, since I do
not wish to change all my feature.xmls to an intermediate update site
and forget about changing it back when it's time to make a release.
The more I look at it, the whole p2 mechanism just looks like black
magic to me :(
-- Ketan
On 26/11/08 19:48, Laurent Marchal wrote:
> I think the errors you get are because the "update site url" of some
> feature are empty.
> Maybe these errors are critical, and it's because the installable unit
> com.thoughtworks.twist.eclipse.ui.product can not been found.
>
> I encounter the same problems as you, so confirmations are welcome !
>
> Ketan Padegaonkar wrote:
>> Hi,
>>
>> I'm unable to p2-ize a product, after about a week of "monkey see,
>> monkey do", and I'm convinced that there's something wrong in what I'm
>> doing.
>>
>> I'm p2-izing my product using the following command line:
>>
>> <java
>> classpath=" ${p2.eclipse.dir}/plugins/org.eclipse.equinox.launcher_${ecl ipse.launcher.version}.jar "
>> classname="org.eclipse.equinox.launcher.Main" timeout="30000000"
>> resultproperty="p2.build.exit.code" fork="true">
>> <arg line="-clean -consoleLog -debug -nosplash -nosplash
>> --launcher.suppressErrors" />
>> <arg line="-application
>> org.eclipse.equinox.p2.director.app.application" />
>> <arg line="-flavor tooling" />
>> <arg line="-installIU ${p2.IU}" />
>> <!--arg line="-list" /-->
>> <arg line="-version ${p2.version}" />
>> <arg line="-p2.os ${p2.os}" />
>> <arg line="-p2.ws ${p2.ws}" />
>> <arg line="-p2.arch ${p2.arch}" />
>> <arg line="-roaming" />
>> <arg line="-profile TwistProfile" />
>> <arg line="-metadataRepository file:${build_directory}/repo/" />
>> <arg line="-artifactRepository file:${build_directory}/repo/" />
>> <arg line="-destination ${p2.director.install.path}" />
>> <arg line="-bundlepool ${p2.director.install.path}" />
>> <jvmarg line="-Declipse.p2.data.area=${p2.director.install.path}/p2 "/>
>> </java>
>>
>> However the exec fails with a lot of errors:
>>
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.022
>> [java] !MESSAGE Error at line 10, column 91: Missing required
>> attribute in "repository": url
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.023
>> [java] !MESSAGE Error at line 10, column 91: Illegal value for
>> attribute "url" of element "repository": null
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.024
>> [java] !MESSAGE Error at line 11, column 91: Missing required
>> attribute in "repository": url
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.026
>> [java] !MESSAGE Error at line 11, column 91: Illegal value for
>> attribute "url" of element "repository": null
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.027
>> [java] !MESSAGE Error at line 12, column 90: Missing required
>> attribute in "repository": url
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.029
>> [java] !MESSAGE Error at line 12, column 90: Illegal value for
>> attribute "url" of element "repository": null
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.030
>> [java] !MESSAGE Error at line 13, column 90: Missing required
>> attribute in "repository": url
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.032
>> [java] !MESSAGE Error at line 13, column 90: Illegal value for
>> attribute "url" of element "repository": null
>> [java]
>> [java] !ENTRY org.eclipse.equinox.p2.director.app 4 0 2008-11-26
>> 00:41:43.818
>> [java] !MESSAGE The installable unit
>> com.thoughtworks.twist.eclipse.ui.product has not been found.
>> [java] The installable unit com.thoughtworks.twist.eclipse.ui.product
>> has not been found.
>> [java] Java Result: 13
>>
>> The installation unit "com.thoughtworks.twist.eclipse.ui.product"
>> however does exist and is listed when I use the -list argument.
>>
>> I'm also not sure why the other errors about illegal values crop up.
>>
>> -- Ketan
|
|
|
Re: Problems with p2-izing a product [message #121693 is a reply to message #121640] |
Wed, 26 November 2008 19:34 |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
Hi TF,
Thanks for the snippet. I've had to make a minor change to what you
suggested here. I've changed the p2.IU to use my feature instead of my
product.
The command still seems to take a very long time while it talks to a lot
of internet servers.
It does manage to create a p2 directory in the install directory, but I
still get the infamous "Cannot launch the Update UI. This installation
has not been properly configured for Software Updates"
-- Ketan
On 26/11/08 23:14, Topher Fangio wrote:
> Ketan Padegaonkar wrote:
>> Hi,
>>
>> I'm unable to p2-ize a product, after about a week of "monkey see,
>> monkey do", and I'm convinced that there's something wrong in what I'm
>> doing.
>>
>> I'm p2-izing my product using the following command line:
>>
>> <java
>> classpath=" ${p2.eclipse.dir}/plugins/org.eclipse.equinox.launcher_${ecl ipse.launcher.version}.jar "
>> classname="org.eclipse.equinox.launcher.Main" timeout="30000000"
>> resultproperty="p2.build.exit.code" fork="true">
>> <arg line="-clean -consoleLog -debug -nosplash -nosplash
>> --launcher.suppressErrors" />
>> <arg line="-application
>> org.eclipse.equinox.p2.director.app.application" />
>> <arg line="-flavor tooling" />
>> <arg line="-installIU ${p2.IU}" />
>> <!--arg line="-list" /-->
>> <arg line="-version ${p2.version}" />
>> <arg line="-p2.os ${p2.os}" />
>> <arg line="-p2.ws ${p2.ws}" />
>> <arg line="-p2.arch ${p2.arch}" />
>> <arg line="-roaming" />
>> <arg line="-profile TwistProfile" />
>> <arg line="-metadataRepository file:${build_directory}/repo/" />
>> <arg line="-artifactRepository file:${build_directory}/repo/" />
>> <arg line="-destination ${p2.director.install.path}" />
>> <arg line="-bundlepool ${p2.director.install.path}" />
>> <jvmarg line="-Declipse.p2.data.area=${p2.director.install.path}/p2 "/>
>> </java>
>>
>> However the exec fails with a lot of errors:
>>
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.022
>> [java] !MESSAGE Error at line 10, column 91: Missing required
>> attribute in "repository": url
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.023
>> [java] !MESSAGE Error at line 10, column 91: Illegal value for
>> attribute "url" of element "repository": null
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.024
>> [java] !MESSAGE Error at line 11, column 91: Missing required
>> attribute in "repository": url
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.026
>> [java] !MESSAGE Error at line 11, column 91: Illegal value for
>> attribute "url" of element "repository": null
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.027
>> [java] !MESSAGE Error at line 12, column 90: Missing required
>> attribute in "repository": url
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.029
>> [java] !MESSAGE Error at line 12, column 90: Illegal value for
>> attribute "url" of element "repository": null
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.030
>> [java] !MESSAGE Error at line 13, column 90: Missing required
>> attribute in "repository": url
>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>> 00:39:55.032
>> [java] !MESSAGE Error at line 13, column 90: Illegal value for
>> attribute "url" of element "repository": null
>> [java]
>> [java] !ENTRY org.eclipse.equinox.p2.director.app 4 0 2008-11-26
>> 00:41:43.818
>> [java] !MESSAGE The installable unit
>> com.thoughtworks.twist.eclipse.ui.product has not been found.
>> [java] The installable unit com.thoughtworks.twist.eclipse.ui.product
>> has not been found.
>> [java] Java Result: 13
>>
>> The installation unit "com.thoughtworks.twist.eclipse.ui.product"
>> however does exist and is listed when I use the -list argument.
>>
>> I'm also not sure why the other errors about illegal values crop up.
>>
>> -- Ketan
>
> Ketan:
>
> I have been having very similar problems myself. After reading your post
> I realized that I did not have the "file:" specified on my repository
> arguments. After changing that, I have successfully made it work. Follow
> the steps outlined at http://toedter.com/blog/?p=27 up to step 5, except
> make the product id be "com.acme.rcp.product".
>
> Then, instead of "running the director app" in step 5, simply run the
> attached ant file. You will almost certainly need to change a few of the
> properties at the top to be the same as your installation as well as the
> p2 params in the p2-install target a few lines below.
>
> Note that I export my files to "C:\test" with a root directory of
> "eclipse". Also, the p2Build.xml script seems to take a bleeding
> lifetime to run on my machine (about 3 minutes), so if it seems to be
> stuck, just give it a bit. I think this is due to me having 1100
> plug-ins in my target.
>
> Let me know if you have any trouble! I'm going to work on getting it to
> update next!
>
> -TF
|
|
|
Re: Problems with p2-izing a product [message #121719 is a reply to message #121693] |
Wed, 26 November 2008 20:53 |
Topher Fangio Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Ketan:
I honestly don't know everything that changes when an app is p2-ized,
so I can't tell you which files get changed (I looked for a few minutes
but didn't figure it out).
The output of the p2Build.xml should say:
...
[java] Installing com.acme.rcp.product 1.0.0.
[java] Operation completed in 68860 ms.
[echo] Build finished
BUILD SUCCESSFUL
Total time: 1 minute 39 seconds
or whatever feature/product you are installing.
Have you been able to get it to work for the standalone test using the
RCP Mail Example? I would give it a try to make sure that it works. If
so, my first guess would be that there might be problems with using a
feature instead of a product. I know that other people have had
difficulty with branding when using a product that used features instead
of one based off of plug-ins.
In any case, I plan on working on a tutorial this weekend (screencast or
something) and I will post it in reply to this thread when I get back on
Monday. I will be out for Thanksgiving until then. Let me know how it
works out for you!
-Topher Fangio
Ketan Padegaonkar wrote:
> Hi TF,
>
> Thanks for the snippet. I've had to make a minor change to what you
> suggested here. I've changed the p2.IU to use my feature instead of my
> product.
>
> The command still seems to take a very long time while it talks to a lot
> of internet servers.
>
> It does manage to create a p2 directory in the install directory, but I
> still get the infamous "Cannot launch the Update UI. This installation
> has not been properly configured for Software Updates"
>
> -- Ketan
>
> On 26/11/08 23:14, Topher Fangio wrote:
>> Ketan Padegaonkar wrote:
>>> Hi,
>>>
>>> I'm unable to p2-ize a product, after about a week of "monkey see,
>>> monkey do", and I'm convinced that there's something wrong in what I'm
>>> doing.
>>>
>>> I'm p2-izing my product using the following command line:
>>>
>>> <java
>>> classpath=" ${p2.eclipse.dir}/plugins/org.eclipse.equinox.launcher_${ecl ipse.launcher.version}.jar "
>>>
>>> classname="org.eclipse.equinox.launcher.Main" timeout="30000000"
>>> resultproperty="p2.build.exit.code" fork="true">
>>> <arg line="-clean -consoleLog -debug -nosplash -nosplash
>>> --launcher.suppressErrors" />
>>> <arg line="-application
>>> org.eclipse.equinox.p2.director.app.application" />
>>> <arg line="-flavor tooling" />
>>> <arg line="-installIU ${p2.IU}" />
>>> <!--arg line="-list" /-->
>>> <arg line="-version ${p2.version}" />
>>> <arg line="-p2.os ${p2.os}" />
>>> <arg line="-p2.ws ${p2.ws}" />
>>> <arg line="-p2.arch ${p2.arch}" />
>>> <arg line="-roaming" />
>>> <arg line="-profile TwistProfile" />
>>> <arg line="-metadataRepository file:${build_directory}/repo/" />
>>> <arg line="-artifactRepository file:${build_directory}/repo/" />
>>> <arg line="-destination ${p2.director.install.path}" />
>>> <arg line="-bundlepool ${p2.director.install.path}" />
>>> <jvmarg line="-Declipse.p2.data.area=${p2.director.install.path}/p2 "/>
>>> </java>
>>>
>>> However the exec fails with a lot of errors:
>>>
>>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>>> 00:39:55.022
>>> [java] !MESSAGE Error at line 10, column 91: Missing required
>>> attribute in "repository": url
>>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>>> 00:39:55.023
>>> [java] !MESSAGE Error at line 10, column 91: Illegal value for
>>> attribute "url" of element "repository": null
>>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>>> 00:39:55.024
>>> [java] !MESSAGE Error at line 11, column 91: Missing required
>>> attribute in "repository": url
>>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>>> 00:39:55.026
>>> [java] !MESSAGE Error at line 11, column 91: Illegal value for
>>> attribute "url" of element "repository": null
>>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>>> 00:39:55.027
>>> [java] !MESSAGE Error at line 12, column 90: Missing required
>>> attribute in "repository": url
>>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>>> 00:39:55.029
>>> [java] !MESSAGE Error at line 12, column 90: Illegal value for
>>> attribute "url" of element "repository": null
>>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>>> 00:39:55.030
>>> [java] !MESSAGE Error at line 13, column 90: Missing required
>>> attribute in "repository": url
>>> [java] !SUBENTRY 1 org.eclipse.equinox.p2.core 2 0 2008-11-26
>>> 00:39:55.032
>>> [java] !MESSAGE Error at line 13, column 90: Illegal value for
>>> attribute "url" of element "repository": null
>>> [java]
>>> [java] !ENTRY org.eclipse.equinox.p2.director.app 4 0 2008-11-26
>>> 00:41:43.818
>>> [java] !MESSAGE The installable unit
>>> com.thoughtworks.twist.eclipse.ui.product has not been found.
>>> [java] The installable unit com.thoughtworks.twist.eclipse.ui.product
>>> has not been found.
>>> [java] Java Result: 13
>>>
>>> The installation unit "com.thoughtworks.twist.eclipse.ui.product"
>>> however does exist and is listed when I use the -list argument.
>>>
>>> I'm also not sure why the other errors about illegal values crop up.
>>>
>>> -- Ketan
>>
>> Ketan:
>>
>> I have been having very similar problems myself. After reading your post
>> I realized that I did not have the "file:" specified on my repository
>> arguments. After changing that, I have successfully made it work. Follow
>> the steps outlined at http://toedter.com/blog/?p=27 up to step 5, except
>> make the product id be "com.acme.rcp.product".
>>
>> Then, instead of "running the director app" in step 5, simply run the
>> attached ant file. You will almost certainly need to change a few of the
>> properties at the top to be the same as your installation as well as the
>> p2 params in the p2-install target a few lines below.
>>
>> Note that I export my files to "C:\test" with a root directory of
>> "eclipse". Also, the p2Build.xml script seems to take a bleeding
>> lifetime to run on my machine (about 3 minutes), so if it seems to be
>> stuck, just give it a bit. I think this is due to me having 1100
>> plug-ins in my target.
>>
>> Let me know if you have any trouble! I'm going to work on getting it to
>> update next!
>>
>> -TF
>
|
|
|
Goto Forum:
Current Time: Tue Mar 19 13:41:54 GMT 2024
Powered by FUDForum. Page generated in 0.01635 seconds
|