Hi,

In order to enable worker profile for WSO2 ES clustering, I have looked
into WSO2-AS implementation and added below executors in
*<ES_SOURCE>/modules/p2-profile-gen/pom.xml*

<execution>
   <id>creating-worker-profile</id>
   .......
</execution>

and

<execution>
   <id>p2-profile-generation-for-worker-profile</id>
   .......
</execution>

as mentioned in [1].

I also placed carbon.product file [2] into
*<ES_SOURCE>/modules/p2-profile-gen* directory.

When I build the source, it fails at p2-profile-gen giving below error.

[INFO] Command line:
    /bin/sh -c cd
/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen
&& /usr/lib/jvm/jdk1.6.0_31/jre/bin/java -jar
/home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application org.eclipse.equinox.p2.director -metadataRepository
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
-artifactRepository
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
-installIU carbon.product.id -profileProperties
org.eclipse.update.install.features=true -profile worker -bundlepool
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
-shared
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
-destination
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/worker
-p2.os linux -p2.ws gtk -p2.arch x86 -roaming
[INFO] Command line:
    /bin/sh -c cd
/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen
&& /usr/lib/jvm/jdk1.6.0_31/jre/bin/java -jar
/home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application org.eclipse.equinox.p2.director -metadataRepository
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
-artifactRepository
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/p2-repo
-installIU carbon.product.id -profileProperties
org.eclipse.update.install.features=true -profile worker -bundlepool
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components
-shared
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/p2
-destination
file:/home/ayesha/WORK/ES/SOURCE/product-es/enterprise-store/modules/p2-profile-gen/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/worker
-p2.os linux -p2.ws gtk -p2.arch x86 -roaming

Installation failed.
The installable unit carbon.product.id has not been found.
Application failed, log file location:
/home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1420474389637.log

I couldn't figure out what is "carbon.product.id" mentioned in [2], which
causes the build error.

Can someone point out whether I am following a correct approach or what
might be going wrong here?

[1]
https://github.com/wso2-dev/product-as/blob/master/modules/p2-profile-gen/pom.xml
[2]
https://github.com/wso2-dev/product-as/blob/master/modules/p2-profile-gen/carbon.product


Thanks!
- Ayesha
-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: [email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to