+1 for looking at alternative/improved mechanisms to deploy new bundles. On a related note: I was looking at ways of implementing the carbon bootup self-test component as per: https://wso2.org/jira/browse/CARBONROADMAP-15 Found some interesting and related research material on the topic : "Resource monitoring and visualization of OSGi-based software components"
Maybe deploying new bundles in carbon can be an extended feature/sub-component of this new component; or it could be a separate one. Regards, Dileepa On Tue, Jan 10, 2012 at 1:07 PM, Pradeep Fernando <[email protected]> wrote: > > > On Tue, Jan 10, 2012 at 12:53 PM, Sameera Jayasoma <[email protected]>wrote: > >> Hi Dileepa, >> >> In order to reproduce the mysle drive CNF, you need to update the >> registry.xml or user-mgt.xml to point to mysql DB. >> >> But if you can see the mysql connector is installed into the system, it >> also indicates that dropins functionality works fine. But with all these >> complains, It seems like this issue is an intermittent issue. >> >> AFAIK, Pradeep has reported these issues to the P2-dev mailing list. >> They've said that, they are no longer planning to support dropins >> functionality. They might even drop this support in future P2 releases. >> > > > it was Dileepa > >> >> How about we writing our own bundle deployer like dropins? Or we can look >> for some other open source projects like Apache Karaf, felix and how they >> have solved this problem. >> >> Thanks, >> Sameera. >> >> Thanks, >> Sameera. >> >> >> On Mon, Jan 9, 2012 at 10:17 AM, Dileepa Jayakody <[email protected]>wrote: >> >>> Hi AmilaM, >>> >>> I built stratos-manager with a svn update today and tried installing >>> mysql-connector-java-5.1.12-bin.jar from repository/components/lib to >>> reproduce the error you have mentioned. >>> >>> I could not reproduce this CNF error. The mysql jar was successfully >>> converted to a bundle and therefore installed in ACTIVE state in the osgi >>> framework. >>> The bundle data I got for the mysql bundle are as below. >>> >>> No registered services. >>> No services in use. >>> Exported packages >>> com.mysql.jdbc; version="0.0.0"[exported] >>> com.mysql.jdbc.exceptions; version="0.0.0"[exported] >>> com.mysql.jdbc.exceptions.jdbc4; version="0.0.0"[exported] >>> com.mysql.jdbc.integration.c3p0; version="0.0.0"[exported] >>> com.mysql.jdbc.integration.jboss; version="0.0.0"[exported] >>> com.mysql.jdbc.interceptors; version="0.0.0"[exported] >>> com.mysql.jdbc.jdbc2.optional; version="0.0.0"[exported] >>> com.mysql.jdbc.log; version="0.0.0"[exported] >>> com.mysql.jdbc.profiler; version="0.0.0"[exported] >>> com.mysql.jdbc.util; version="0.0.0"[exported] >>> org.gjt.mm.mysql; version="0.0.0"[exported] >>> *; version="0.0.0"<unwired><dynamic> >>> No fragment bundles >>> Named class space >>> mysql_connector_java_5.1.12_bin; bundle-version="1.0.0"[provided] >>> No required bundles >>> >>> >>> These are the logs entries I got from the dropins installation by >>> p2-reconciler. >>> >>> ------------------------------------------------------------------------------------------------------------------------------------------------------------------ >>> Trying to resume bundle >>> org.eclipse.equinox.p2.reconciler.dropins_1.1.100.v20110510 [101] >>> Bundle: Active sl = 4; Bundle 101 sl = 4 >>> [p2] Mon Jan 09 15:24:55 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Cached timestamp file empty. >>> [p2] Mon Jan 09 15:24:55 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Performing reconciliation. >>> Bundle: Active sl = 4; Bundle 110 sl = 4 >>> ->started org.eclipse.equinox.security_1.1.0.v20110502 [110] >>> Bundle: Active sl = 4; Bundle 107 sl = 4 >>> ->started org.eclipse.equinox.p2.updatesite_1.0.300.v20110510 [107] >>> [p2] Mon Jan 09 15:24:55 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] [dropins] Interesting feature or bundle added: >>> /home/dileepa/work/carbon/products/manager/modules/distribution/service/target/wso2stratos-manager-1.1.0-SNAPSHOT/repository/components/dropins/mysql_connector_java_5.1.12_bin_1.0.0.jar >>> Bundle: Active sl = 4; Bundle 104 sl = 4 >>> ->started >>> org.eclipse.equinox.p2.touchpoint.eclipse_2.1.0.v20110511-wso2v1 [104] >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Timestamp file does not exist. >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Performing reconciliation. >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Profile timestamp not found in cache. >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Performing reconciliation. >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Adding IU: mysql_connector_java_5.1.12_bin 1.0.0 >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Adding IU property: mysql_connector_java_5.1.12_bin >>> 1.0.0->{org.eclipse.equinox.p2.type.lock=1, >>> org.eclipse.equinox.p2.internal.inclusion.rules=OPTIONAL, >>> org.eclipse.equinox.p2.reconciler.dropins=true} >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] No installable units to remove. >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] No IU properties to remove. >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] No installable units to move. >>> [p2] Mon Jan 09 15:24:56 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] No extra requirements. >>> [p2] Mon Jan 09 15:24:57 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] [plan] Plan matches the request. >>> Bundle: Active sl = 4; Bundle 111 sl = 4 >>> ->started >>> org.eclipse.equinox.simpleconfigurator.manipulator_2.0.0.v20110502-1955 >>> [111] >>> Saving framework data ... >>> Saving bundle data ... >>> Saving resolver state data ... >>> [p2] Mon Jan 09 15:25:43 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] Writing timestamp file to : >>> /home/dileepa/work/carbon/products/manager/modules/distribution/service/target/wso2stratos-manager-1.1.0-SNAPSHOT/repository/components/configuration/org.eclipse.osgi/bundles/101/data/timestamps-909091811 >>> [p2] Mon Jan 09 15:25:43 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] >>> file:/home/dileepa/work/carbon/products/manager/modules/distribution/service/target/wso2stratos-manager-1.1.0-SNAPSHOT/repository/components/.eclipseextension=1326102895709 >>> [p2] Mon Jan 09 15:25:43 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] PROFILE=1326102909237 >>> [p2] Mon Jan 09 15:25:43 IST 2012 - [Start Level Event Dispatcher] >>> [reconciler] >>> file:/home/dileepa/work/carbon/products/manager/modules/distribution/service/target/wso2stratos-manager-1.1.0-SNAPSHOT/repository/components/configuration/org.eclipse.osgi/bundles/101/data/listener_1925729951/=1326102895691 >>> install from inputstream: >>> reference:file:dropins/mysql_connector_java_5.1.12_bin_1.0.0.jar, null >>> >>> Regards, >>> Dileepa >>> >>> On Wed, Jan 4, 2012 at 5:25 PM, Amila Maha Arachchi <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> We experience this in the Mananger also. Although we copy the >>>> mysql-connector jar to repo/components/lib it complains a CNF error. We can >>>> see the bundle created in the dropins folder, but keeps getting the CNF. >>>> >>>> Thanks, >>>> AmilaM. >>>> >>>> >>>> On Wed, Jan 4, 2012 at 4:45 PM, Dileepa Jayakody <[email protected]>wrote: >>>> >>>>> FYI >>>>> >>>>> *osgi-debug.options* file is found >>>>> @Carbon_Home/lib/core/WEB-INF/eclipse >>>>> >>>>> You may enable/add required debug-options and turn on osgi debugging >>>>> for carbon by either; >>>>> *Starting carbon server as : sh wso2server.sh -DosgiDebugOptions >>>>> OR >>>>> * Uncommenting >>>>> osgi.debug=./lib/core/WEB-INF/eclipse/osgi-debug.options found in >>>>> launch.ini >>>>> >>>>> Regards, >>>>> Dileepa >>>>> >>>>> >>>>> On Tue, Jan 3, 2012 at 12:47 PM, Dileepa Jayakody <[email protected]>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> We looked into this matter with the same dropins bundle in the latest >>>>>> carbon-core trunk build. The bundle seems to be installed and activated >>>>>> without an issue. >>>>>> >>>>>> If you have problems with dropins not been picked-up, you can debug >>>>>> dropins installation process by adding the following debug options into >>>>>> osgi.debug.options and starting carbon-server in debug-mode. >>>>>> org.eclipse.equinox.p2.core/debug=true >>>>>> org.eclipse.equinox.p2.core/reconciler=true >>>>>> >>>>>> Regards, >>>>>> Dileepa >>>>>> >>>>>> On Tue, Jan 3, 2012 at 11:16 AM, Dileepa Jayakody >>>>>> <[email protected]>wrote: >>>>>> >>>>>>> Hi Nuwan, >>>>>>> >>>>>>> We will look into this matter, can you please attach the sample >>>>>>> bundle you used to install via dropins? >>>>>>> >>>>>>> Thanks, >>>>>>> Dileepa >>>>>>> >>>>>>> >>>>>>> On Tue, Jan 3, 2012 at 10:49 AM, Nuwan Bandara <[email protected]>wrote: >>>>>>> >>>>>>>> Its seems its not intermittent anymore >>>>>>>> >>>>>>>> On Tue, Jan 3, 2012 at 10:35 AM, Muhammed Shariq >>>>>>>> <[email protected]>wrote: >>>>>>>> >>>>>>>>> Yes copying to dropins does not work in trunk, I have sent a >>>>>>>>> couple of mails regarding this and the explanation was that its >>>>>>>>> an intermittent issue. I however saw the issue regularly in trunk >>>>>>>>> Manager >>>>>>>>> build ... >>>>>>>>> >>>>>>>>> On Tue, Jan 3, 2012 at 10:30 AM, Nuwan Bandara <[email protected]>wrote: >>>>>>>>> >>>>>>>>>> The bundle installs fine if I do it via OSGI console. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Tue, Jan 3, 2012 at 10:06 AM, Nuwan Bandara <[email protected]>wrote: >>>>>>>>>> >>>>>>>>>>> Hi Guys, >>>>>>>>>>> >>>>>>>>>>> I tried in Carbon, AS and GS in Trunk, but no luck with the >>>>>>>>>>> subject. When I copy an osgi bundle to the dropins directory, it >>>>>>>>>>> wont get >>>>>>>>>>> picked up. there are also no relevant entries written in >>>>>>>>>>> bundle.info too. >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> *Thanks & Regards, >>>>>>>>>>> >>>>>>>>>>> Nuwan Bandara >>>>>>>>>>> Senior Software Engineer >>>>>>>>>>> WSO2 Inc. | http://wso2.com >>>>>>>>>>> lean . enterprise . middleware >>>>>>>>>>> >>>>>>>>>>> http://nuwan.bandara.co >>>>>>>>>>> * >>>>>>>>>>> <http://www.nuwanbando.com/> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> *Thanks & Regards, >>>>>>>>>> >>>>>>>>>> Nuwan Bandara >>>>>>>>>> Senior Software Engineer >>>>>>>>>> WSO2 Inc. | http://wso2.com >>>>>>>>>> lean . enterprise . middleware >>>>>>>>>> >>>>>>>>>> http://nuwan.bandara.co >>>>>>>>>> * >>>>>>>>>> <http://www.nuwanbando.com/> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> Carbon-dev mailing list >>>>>>>>>> [email protected] >>>>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Thanks, >>>>>>>>> Shariq. >>>>>>>>> Phone: +94 777 202225 >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Carbon-dev mailing list >>>>>>>>> [email protected] >>>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *Thanks & Regards, >>>>>>>> >>>>>>>> Nuwan Bandara >>>>>>>> Senior Software Engineer >>>>>>>> WSO2 Inc. | http://wso2.com >>>>>>>> lean . enterprise . middleware >>>>>>>> >>>>>>>> http://nuwan.bandara.co >>>>>>>> * >>>>>>>> <http://www.nuwanbando.com/> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Carbon-dev mailing list >>>>>>>> [email protected] >>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Dileepa Jayakody, >>>>>>> Software Engineer, WSO2 Inc. >>>>>>> Lean . Enterprise . Middleware >>>>>>> >>>>>>> Mobile : +94777-857616 >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Dileepa Jayakody, >>>>>> Software Engineer, WSO2 Inc. >>>>>> Lean . Enterprise . Middleware >>>>>> >>>>>> Mobile : +94777-857616 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Dileepa Jayakody, >>>>> Software Engineer, WSO2 Inc. >>>>> Lean . Enterprise . Middleware >>>>> >>>>> Mobile : +94777-857616 >>>>> >>>>> >>>>> _______________________________________________ >>>>> Carbon-dev mailing list >>>>> [email protected] >>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Amila Maharachchi* >>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com >>>> >>>> Blog: http://maharachchi.blogspot.com >>>> Mobile: +94719371446 >>>> >>>> >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> [email protected] >>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>>> >>> >>> >>> -- >>> Dileepa Jayakody, >>> Software Engineer, WSO2 Inc. >>> Lean . Enterprise . Middleware >>> >>> Mobile : +94777-857616 >>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> >> >> >> -- >> Sameera Jayasoma >> Technical Lead and Product Manager, WSO2 Carbon >> >> WSO2, Inc. (http://wso2.com) >> email: [email protected] >> blog: http://tech.jayasoma.org >> >> >> Lean . Enterprise . Middleware >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > -- > Pradeep Fernando > Software Engineer > WSO2 Inc; http://wso2.com/ > > blog: http://pradeepfernando.blogspot.com/ > m: +94776603662 > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Dileepa Jayakody, Software Engineer, WSO2 Inc. Lean . Enterprise . Middleware Mobile : +94777-857616
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
