Thanks Thusitha. Does anyone know how we can add a package to launch.properties in latest Carbon Kernel?
On Tue, Feb 27, 2018 at 2:07 AM, Thusitha Thilina Dayaratne < [email protected]> wrote: > Hi Isuru, > > AFAIK in 4.4.x we used *org.osgi.framework.system.packages* in launch.ini > (repository/conf/etc/launch.ini) file to export core level java packages > through the system bundle. > In C5 that file is no longer exist. But I think you can add > *org.osgi.framework.system.packages* and required packages to > launch.properties file. Then it should work. > > Thanks > Thusitha > > On Mon, Feb 26, 2018 at 8:10 PM, Isuru Perera <[email protected]> wrote: > >> Hi Jayanga, >> >> Following is the output of "mvn -version" >> >> $ mvn -version >> Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; >> 2017-04-04T01:09:06+05:30) >> Maven home: /opt/isuru/apache-maven-3.5.0 >> Java version: 1.8.0_162, vendor: Oracle Corporation >> Java home: /usr/lib/jvm/jdk1.8.0_162/jre >> Default locale: en_US, platform encoding: UTF-8 >> OS name: "linux", version: "4.13.0-36-generic", arch: "amd64", family: >> "unix" >> >> >> >> On Mon, Feb 26, 2018 at 2:34 PM, Jayanga Dissanayake <[email protected]> >> wrote: >> >>> Hi Isuru, >>> >>> What is the JDK and Maven versions you are using? >>> >>> Thanks, >>> Jayanga >>> >>> *Jayanga Dissanayake* >>> Associate Technical Lead >>> WSO2 Inc. - http://wso2.com/ >>> lean . enterprise . middleware >>> email: [email protected] >>> mobile: +94772207259 <077%20220%207259> >>> <http://wso2.com/signature> >>> >>> On Mon, Feb 26, 2018 at 2:26 PM, Isuru Perera <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> I'm trying to upgrade Dropwizard Metrics in Carbon Metrics project to >>>> version 4.0.2. In the metrics JVM bundle, there a new import as follows. >>>> >>>> Import-Package: org.slf4j;version="[1.6.0,2.0.0)",com.codahale.metrics >>>> ;version="[4.0,5)",*com.sun.ma <http://com.sun.ma>nagement* >>>> ,javax.management >>>> >>>> When creating the distribution, I get an error as follows. >>>> >>>> [INFO] --- carbon-feature-plugin:3.1.4:install (feature-installation) >>>> @ wso2carbon-metrics --- >>>> [INFO] Installing a standalone p2 Director... >>>> Installing tycho-standalone-p2-director 0.16.0. >>>> Operation completed in 3263 ms. >>>> [INFO] Updating eclipse.ini >>>> [INFO] Running Equinox P2 Director Application >>>> [INFO] Command line: >>>> [/usr/lib/jvm/jdk1.8.0_162/jre/bin/java, -jar, >>>> /home/isuru/work/git-projects/carbon-metrics/distribution/ta >>>> rget/director/plugins/org.eclipse.equinox.launcher_1.3.200.v20151021-1308.jar, >>>> -metadataRepository, file:/home/isuru/work/git-proj >>>> ects/carbon-metrics/distribution/target/p2-repo, -artifactRepository, >>>> file:/home/isuru/work/git-projects/carbon-metrics/distribution/target/p2-repo, >>>> -destination, /home/isuru/work/git-projects/ >>>> carbon-metrics/distribution/target/WSO2Carbon/wso2/default, >>>> -bundlepool, /home/isuru/work/git-projects/ >>>> carbon-metrics/distribution/target/WSO2Carbon/wso2/lib, -shared, >>>> /home/isuru/work/git-projects/carbon-metrics/distribution/target/WSO2Carbon/wso2/lib/p2, >>>> -profile, default, -profileProperties, >>>> org.eclipse.update.install.features=true, >>>> -roaming, -installIU, org.wso2.carbon.server.feature >>>> .group/5.2.7,org.wso2.carbon.osgi.feature.group/5.2.7,org.ws >>>> o2.carbon.runtime.feature.group/5.2.7,org.wso2.carbon.metric >>>> s.jdbc.core.feature.group/2.4.0.SNAPSHOT,org.wso2.carbon.met >>>> rics.das.core.feature.group/2.4.0.SNAPSHOT,org.wso2.carbon. >>>> secvault.feature.group/5.0.10,org.wso2.carbon.touchpoint. >>>> feature.group/1.1.1,org.wso2.carbon.config.feature.group/2. >>>> 1.5,org.wso2.carbon.utils.feature.group/2.0.5,org.wso2. >>>> carbon.databridge.agent.feature.group/6.0.55,org.wso2. >>>> carbon.databridge.commons.thrift.feature.group/6.0.55, >>>> org.wso2.carbon.databridge.commons.feature.group/6.0.55,] >>>> Installing org.wso2.carbon.server.feature.group 5.2.7. >>>> Installing org.wso2.carbon.osgi.feature.group 5.2.7. >>>> Installing org.wso2.carbon.runtime.feature.group 5.2.7. >>>> Installing org.wso2.carbon.metrics.jdbc.core.feature.group >>>> 2.4.0.SNAPSHOT. >>>> Installing org.wso2.carbon.metrics.das.core.feature.group >>>> 2.4.0.SNAPSHOT. >>>> Installing org.wso2.carbon.secvault.feature.group 5.0.10. >>>> Installing org.wso2.carbon.touchpoint.feature.group 1.1.1. >>>> Installing org.wso2.carbon.config.feature.group 2.1.5. >>>> Installing org.wso2.carbon.utils.feature.group 2.0.5. >>>> Installing org.wso2.carbon.databridge.agent.feature.group 6.0.55. >>>> Installing org.wso2.carbon.databridge.commons.thrift.feature.group >>>> 6.0.55. >>>> Installing org.wso2.carbon.databridge.commons.feature.group 6.0.55. >>>> Installation failed. >>>> Cannot complete the install because one or more required items could >>>> not be found. >>>> Software being installed: WSO2 Carbon Metrics JDBC Core Feature >>>> 2.4.0.SNAPSHOT (org.wso2.carbon.metrics.jdbc.core.feature.group >>>> 2.4.0.SNAPSHOT) >>>> *Missing requirement: JVM Integration for Metrics 4.0.2 >>>> (io.dropwizard.metrics.jvm 4.0.2) requires 'package com.sun.management >>>> 0.0.0' but it could not be found* >>>> Cannot satisfy dependency: >>>> From: org.wso2.carbon.metrics.core 2.4.0.SNAPSHOT >>>> (org.wso2.carbon.metrics.core 2.4.0.SNAPSHOT) >>>> To: package com.codahale.metrics.jvm [4.0.0,5.0.0) >>>> Cannot satisfy dependency: >>>> From: org.wso2.carbon.metrics.jdbc.core 2.4.0.SNAPSHOT >>>> (org.wso2.carbon.metrics.jdbc.core 2.4.0.SNAPSHOT) >>>> To: package org.wso2.carbon.metrics.core [2.4.0,3.0.0) >>>> Cannot satisfy dependency: >>>> From: WSO2 Carbon Metrics JDBC Core Feature 2.4.0.SNAPSHOT >>>> (org.wso2.carbon.metrics.jdbc.core.feature.group 2.4.0.SNAPSHOT) >>>> To: org.wso2.carbon.metrics.jdbc.core [2.4.0.SNAPSHOT] >>>> Application failed, log file location: /home/isuru/work/git-projects/ >>>> carbon-metrics/distribution/target/director/configuration/15 >>>> 19634124196.log >>>> >>>> How can I solve this issue? >>>> >>>> -- >>>> Isuru Perera >>>> Technical Lead | WSO2, Inc. | http://wso2.com/ >>>> Lean . Enterprise . Middleware >>>> >>>> about.me/chrishantha >>>> Contact: +IsuruPereraWSO2 >>>> <https://www.google.com/+IsuruPereraWSO2/about> >>>> >>> >>> >> >> >> -- >> Isuru Perera >> Technical Lead | WSO2, Inc. | http://wso2.com/ >> Lean . Enterprise . Middleware >> >> about.me/chrishantha >> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Thusitha Thilina Dayaratne* > PhD Student - Cybersecurity Lab > Monash University > > -- Isuru Perera Technical Lead | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
