Re: [equinox-dev] Disabling the LogService
I got it working, but here's a caveat. Equinox forces some of its log messages to its log in some way which ignore your class, namely, exception backtraces from failures in bundle activators. On Fri, Aug 12, 2016 at 8:35 AM, Benson Margulies wrote: > What is an 'Embedded-Activator'? > > I tried to borrow your class via a pax-exam tiny bundle, and it is > never activated. I wondered about that declaration in the bnd.bnd. > > > bundle() > .add(HideEquinoxLog.class) > .set(Constants.BUNDLE_SYMBOLICNAME, "hide-equinox-log") > .set(Constants.BUNDLE_ACTIVATOR, HideEquinoxLog.class.getName()) > .build(withBnd())) > > > On Fri, Aug 12, 2016 at 7:42 AM, Benson Margulies > wrote: >> On Fri, Aug 12, 2016 at 7:39 AM, Peter Kriens wrote: >>> Should happen before the end of next month. We’re working on making ALL >>> OSGi enRoute bundles available in Maven Central. >>> >>> In this case you might want to copy the source code since the bundle is so >>> trivial. >> >> Yes, I can do that. >> >>> >>> Kind regards, >>> >>> Peter Kriens >>> >>>> On 12 aug. 2016, at 13:32, Benson Margulies wrote: >>>> >>>> Peter, >>>> >>>> Thanks. I don't suppose you've published this thing to Maven Central? >>>> >>>> --benson >>>> >>>> >>>> On Fri, Aug 12, 2016 at 2:33 AM, Peter Kriens >>>> wrote: >>>>> For OSGi enRoute I wrote a simple adapter that hides the Equinox log: >>>>> >>>>> https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.equinox.log.adapter >>>>> https://oss.sonatype.org/content/repositories/osgi/org/osgi/osgi.enroute.equinox.log.adapter/ >>>>> >>>>> Kind regards, >>>>> >>>>> Peter Kriens >>>>> >>>>> On 11 aug. 2016, at 22:42, Benson Margulies wrote: >>>>> >>>>> I'd like to use the SLF4J log services instead of the built-in Equinox >>>>> log service. >>>>> >>>>> When I just add the SLF4J bundle to my container, the Equinox >>>>> LogService still ends up being the official log service. >>>>> >>>>> Is there some framework property I can set or something else i can do >>>>> to turn it off? >>>>> ___ >>>>> equinox-dev mailing list >>>>> equinox-dev@eclipse.org >>>>> To change your delivery options, retrieve your password, or unsubscribe >>>>> from >>>>> this list, visit >>>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev >>>>> >>>>> >>>>> >>>>> ___ >>>>> equinox-dev mailing list >>>>> equinox-dev@eclipse.org >>>>> To change your delivery options, retrieve your password, or unsubscribe >>>>> from >>>>> this list, visit >>>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev >>>> ___ >>>> equinox-dev mailing list >>>> equinox-dev@eclipse.org >>>> To change your delivery options, retrieve your password, or unsubscribe >>>> from this list, visit >>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev >>> >>> >>> ___ >>> equinox-dev mailing list >>> equinox-dev@eclipse.org >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/equinox-dev ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Disabling the LogService
What is an 'Embedded-Activator'? I tried to borrow your class via a pax-exam tiny bundle, and it is never activated. I wondered about that declaration in the bnd.bnd. bundle() .add(HideEquinoxLog.class) .set(Constants.BUNDLE_SYMBOLICNAME, "hide-equinox-log") .set(Constants.BUNDLE_ACTIVATOR, HideEquinoxLog.class.getName()) .build(withBnd())) On Fri, Aug 12, 2016 at 7:42 AM, Benson Margulies wrote: > On Fri, Aug 12, 2016 at 7:39 AM, Peter Kriens wrote: >> Should happen before the end of next month. We’re working on making ALL OSGi >> enRoute bundles available in Maven Central. >> >> In this case you might want to copy the source code since the bundle is so >> trivial. > > Yes, I can do that. > >> >> Kind regards, >> >> Peter Kriens >> >>> On 12 aug. 2016, at 13:32, Benson Margulies wrote: >>> >>> Peter, >>> >>> Thanks. I don't suppose you've published this thing to Maven Central? >>> >>> --benson >>> >>> >>> On Fri, Aug 12, 2016 at 2:33 AM, Peter Kriens >>> wrote: >>>> For OSGi enRoute I wrote a simple adapter that hides the Equinox log: >>>> >>>> https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.equinox.log.adapter >>>> https://oss.sonatype.org/content/repositories/osgi/org/osgi/osgi.enroute.equinox.log.adapter/ >>>> >>>> Kind regards, >>>> >>>> Peter Kriens >>>> >>>> On 11 aug. 2016, at 22:42, Benson Margulies wrote: >>>> >>>> I'd like to use the SLF4J log services instead of the built-in Equinox >>>> log service. >>>> >>>> When I just add the SLF4J bundle to my container, the Equinox >>>> LogService still ends up being the official log service. >>>> >>>> Is there some framework property I can set or something else i can do >>>> to turn it off? >>>> ___ >>>> equinox-dev mailing list >>>> equinox-dev@eclipse.org >>>> To change your delivery options, retrieve your password, or unsubscribe >>>> from >>>> this list, visit >>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev >>>> >>>> >>>> >>>> ___ >>>> equinox-dev mailing list >>>> equinox-dev@eclipse.org >>>> To change your delivery options, retrieve your password, or unsubscribe >>>> from >>>> this list, visit >>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev >>> ___ >>> equinox-dev mailing list >>> equinox-dev@eclipse.org >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/equinox-dev >> >> >> ___ >> equinox-dev mailing list >> equinox-dev@eclipse.org >> To change your delivery options, retrieve your password, or unsubscribe from >> this list, visit >> https://dev.eclipse.org/mailman/listinfo/equinox-dev ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Disabling the LogService
On Fri, Aug 12, 2016 at 7:39 AM, Peter Kriens wrote: > Should happen before the end of next month. We’re working on making ALL OSGi > enRoute bundles available in Maven Central. > > In this case you might want to copy the source code since the bundle is so > trivial. Yes, I can do that. > > Kind regards, > > Peter Kriens > >> On 12 aug. 2016, at 13:32, Benson Margulies wrote: >> >> Peter, >> >> Thanks. I don't suppose you've published this thing to Maven Central? >> >> --benson >> >> >> On Fri, Aug 12, 2016 at 2:33 AM, Peter Kriens wrote: >>> For OSGi enRoute I wrote a simple adapter that hides the Equinox log: >>> >>> https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.equinox.log.adapter >>> https://oss.sonatype.org/content/repositories/osgi/org/osgi/osgi.enroute.equinox.log.adapter/ >>> >>> Kind regards, >>> >>> Peter Kriens >>> >>> On 11 aug. 2016, at 22:42, Benson Margulies wrote: >>> >>> I'd like to use the SLF4J log services instead of the built-in Equinox >>> log service. >>> >>> When I just add the SLF4J bundle to my container, the Equinox >>> LogService still ends up being the official log service. >>> >>> Is there some framework property I can set or something else i can do >>> to turn it off? >>> ___ >>> equinox-dev mailing list >>> equinox-dev@eclipse.org >>> To change your delivery options, retrieve your password, or unsubscribe from >>> this list, visit >>> https://dev.eclipse.org/mailman/listinfo/equinox-dev >>> >>> >>> >>> ___ >>> equinox-dev mailing list >>> equinox-dev@eclipse.org >>> To change your delivery options, retrieve your password, or unsubscribe from >>> this list, visit >>> https://dev.eclipse.org/mailman/listinfo/equinox-dev >> ___ >> equinox-dev mailing list >> equinox-dev@eclipse.org >> To change your delivery options, retrieve your password, or unsubscribe from >> this list, visit >> https://dev.eclipse.org/mailman/listinfo/equinox-dev > > > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Disabling the LogService
Peter, Thanks. I don't suppose you've published this thing to Maven Central? --benson On Fri, Aug 12, 2016 at 2:33 AM, Peter Kriens wrote: > For OSGi enRoute I wrote a simple adapter that hides the Equinox log: > > https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.equinox.log.adapter > https://oss.sonatype.org/content/repositories/osgi/org/osgi/osgi.enroute.equinox.log.adapter/ > > Kind regards, > > Peter Kriens > > On 11 aug. 2016, at 22:42, Benson Margulies wrote: > > I'd like to use the SLF4J log services instead of the built-in Equinox > log service. > > When I just add the SLF4J bundle to my container, the Equinox > LogService still ends up being the official log service. > > Is there some framework property I can set or something else i can do > to turn it off? > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev > > > > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
[equinox-dev] Disabling the LogService
I'd like to use the SLF4J log services instead of the built-in Equinox log service. When I just add the SLF4J bundle to my container, the Equinox LogService still ends up being the official log service. Is there some framework property I can set or something else i can do to turn it off? ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] What's special about the felix bundles in the mars distro
So, I made it all work by adding an explicit @start to the felix bundles. It works, by the way, with much newer Felix bundles that do OBR a lot better. On Mon, Jul 20, 2015 at 5:37 PM, Raymond Auge wrote: > Actually, maybe not since you get a prompt... > > - Ray > > > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] What's special about the felix bundles in the mars distro
Is there any way to get some logging out of the startup process? On Mon, Jul 20, 2015 at 4:58 PM, Thomas Watson wrote: > If I recall correctly the orbit gogo org.apache.felix.gogo.shell bundle has > a custom gosh_profile file in it. But I'm not sure what it does special > other than make the prompt use "osgi>" instead of "g!" > > Tom > > > > > > From:Benson Margulies > To:Equinox development mailing list > Date:07/20/2015 01:33 PM > Subject:[equinox-dev] What's special about the felix bundles in the > marsdistro > Sent by:equinox-dev-boun...@eclipse.org > > > > > If I substitute plain vanilla Apache Felix gogo bundles for version > 0.10.0 for the bundles included in mars, the shell does not start > properly. It gets a g! prompt and complains that the commands bundle > has not been started. > > Is there a way to set up config.ini so that I can drop in the Felix > gogo bundles? I'd like to experiment with using newer versions. > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev > > > > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
[equinox-dev] What's special about the felix bundles in the mars distro
If I substitute plain vanilla Apache Felix gogo bundles for version 0.10.0 for the bundles included in mars, the shell does not start properly. It gets a g! prompt and complains that the commands bundle has not been started. Is there a way to set up config.ini so that I can drop in the Felix gogo bundles? I'd like to experiment with using newer versions. ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Getting equinox artifacts using maven
I have a good deal of experience in pushing things to Maven Central via OSSRH, and I would not see it as especially difficult for Equinox. One strategy is to build a project that unpacks an SDK zip file and then tees it back up as a collection of Maven artifacts; it's trivial (if a trifle laborious) to do this with one-pom-per bundle in Maven itself. I bet gradle or something could be notationally more concise. Can I help? On Mon, Jul 20, 2015 at 8:39 AM, Thomas Watson wrote: > I think it would be great if we could make this happen for all of Equinox. > > BTW jobs is not part of Equinox, it is part of the Eclipse project. What > are the next steps? > > Tom > > > > > > From:Raymond Auge > To:Equinox development mailing list > Date:07/17/2015 01:42 PM > Subject:Re: [equinox-dev] Getting equinox artifacts using maven > Sent by:equinox-dev-boun...@eclipse.org > > > > > I have interest! > > On Fri, Jul 17, 2015 at 2:27 PM, Scott Lewis wrote: > On 7/3/2015 5:14 AM, Mikael Barbero wrote: > Hi Christian, > > There is a bug about this issue > https://bugs.eclipse.org/bugs/show_bug.cgi?id=471373 > > From the message > https://dev.eclipse.org/mhonarc/lists/dash-dev/msg01348.html, you will > understand why synchronization from repo.eclipse.org to maven central is in > a stale state. > > However, it is perfectly possible for a project to publish directly to Maven > central. Californium project is about to do that > (https://bugs.eclipse.org/bugs/show_bug.cgi?id=468448) > > If the equinox devs would like to publish their bits to repo.eclipse.org or > gpg sign their artifacts to publish them to maven central, I can help with > that. > > Is there any interest from equinox team in publishing bits to maven repos? > > As Christian said, ECF is providing an R6 OSGi Remote Services/RSA > distribution for Apache Karaf [1]. We currently create a maven repo > ourselves as part of our releases [2]. > > ECF RS/RSA has deps on 4 equinox bundles, however: > > o.e.equinox.common > o.e.equinox.concurrent > o.e.core.jobs > o.e.equinox.supplement > > As I understand, these are part of the equinox sdk. Given this, I suppose > we are asking to publish the equinox sdk as maven repo, ideally through > maven central but repo.eclipse.org would be ok too. > > Thanks, > > Scott > > [1] https://wiki.eclipse.org/EIG:Install_into_Apache_Karaf > [2] http://build.ecf-project.org/maven/3.10.0/ > > > > HTH > > Mikael > > Le 3 juil. 2015 à 12:34, Christian Schneider a > écrit : > > I am currently helping Scott Lewis to bring ECF to Apache Karaf. > > Our biggest problem with this is that ECF needs a bunch of equinox bundles > that are not available in maven central. > See this > http://download.eclipse.org/rt/ecf/3.10.0/site.p2/karaf4-min-features.xml > > At the moment we use http urls to be able to get at least started. These > urls are not really good for people inside bigger companies though. > Often these companies do not allow direct access to the internet even for > developers and especially for production machines. So accessing the urls is > not possible. > Additionally they are not cached like mvn urls. So every clean startup of > karaf hits the p2 repo server again. > > It also makes it very hard for people to use these artifacts in non tycho > builds which are very common outside the eclipse world. > > I have noticed that eclipse already hosts several maven repositories for > other projects. Would it be possible to also deploy equinox bundles into > such a repository or even better into maven central? > > At apache this is very convenient. We have a nexus server at apache and the > project poms are set up to deploy their for snapshots and releases there. > Releases go to a staging repo automatically and after the vote you just need > to press a publish button and the artifacts go to maven central. > > I am pretty sure we can organize to help with this if eclipse would be > interested to also get such a setup. > > The collaboration between eclipse projects and apache projects is still > quite slim unfortunately. I think one big reason for this is the separate > repository systems that make it very difficult to use projects from each > other. So I think tackling this problem would help a lot to improve > collaboration. > > I have read in another thread that this would be a "complicated" problem. > Unfortunately there is no further information what the obstacles are. I > spoke to quite some people at eclipse about this and they are all quite > interested in maven deployments. So I think at the minimum there should be > an open discussion so people understand where we are with this. Is there > some place maybe on bugzilla where I can read into what was discussed about > this? > > Christian > > > > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > http://www.talend.com > > ___ > equinox-
Re: [equinox-dev] What version of the OSGi stock framework jar corresponds to equinox 3.10.0-v20140606-1445?
On Thu, Jul 16, 2015 at 2:24 PM, Neil Bartlett wrote: > Benson, you don't need to put the OSGi core jar on your runtime classpath if > you already have an implementation (such as Equinox or Felix) on there. > > The OSGi core spec jar is only intended to be used as a compile-time > dependency. Neil, I understand that, but due to a combination of stupidity in an IDE and Maven, I'm having trouble getting rid of it. I don't do it in production, it's a problem when running a test from the IDE. > > Neil > > -- > Neil Bartlett > Sent from a phone > > On Thursday, 16 July 2015 at 18:11, Benson Margulies wrote: > > I have ended up with a classpath that contains both the version of > equinox in the subject and also version 5.0.0 of the OSGi core API > jar, and I get stomped on by an incompatibility. It's somewhat > difficult to avoid this state of affairs; can you clue me in on what > version of the OSGi core I need to avoid trouble? > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev > > > > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
[equinox-dev] What version of the OSGi stock framework jar corresponds to equinox 3.10.0-v20140606-1445?
I have ended up with a classpath that contains both the version of equinox in the subject and also version 5.0.0 of the OSGi core API jar, and I get stomped on by an incompatibility. It's somewhat difficult to avoid this state of affairs; can you clue me in on what version of the OSGi core I need to avoid trouble? ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Can I get logging corresponding to 'diag'?
Well, I've made my own copies of the native container factory that add a listener and print nice errors. On Fri, Jul 10, 2015 at 9:34 AM, Cristiano Gavião wrote: > Hi, > > The best workaround I've found in order to discover what is going wrong in a > test with a paxexam running with equinox due this missing logging > information was to setup a remote debugging. > > That way you can connect into the running equinox and use some console > commands as "ss" and "bundle" to discover which bundles are in trouble. > > in order to do that you need add the proper vmOption in your test > configuration method: > > @Configuration > public Option[] config() { > return options( > > vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"), > ... > > and add a breakpoint into any test code to give you time to connect to > equinox before test to end. > > regards, > > Cristiano > > 2015-07-10 8:42 GMT-03:00 Benson Margulies : >> >> http://www.eclipse.org/equinox/documents/quickstart-framework.php is a >> bit misleading, I submit, as it seems to suggest that you can just >> download the jar and run it without any configuration. >> >> Also, for those of you interesting in the logging question, see: >> >> https://ops4j1.jira.com/browse/PAXEXAM-726 >> >> On Thu, Jul 9, 2015 at 10:10 PM, Thomas Watson >> wrote: >> > To use the console you need the following 4 bundles from the Equinox >> > SDK: >> > >> > org.apache.felix.gogo.command >> > org.apache.felix.gogo.runtime >> > org.apache.felix.gogo.shell >> > org.eclipse.equinox.console >> > >> > You will need a file located next to the equinox jar >> > configuration/config.ini and place the following in it: >> > >> > osgi.bundles=org.apache.felix.gogo.command, \ >> > org.apache.felix.gogo.runtime, \ >> > org.apache.felix.gogo.shell, \ >> > org.eclipse.equinox.console >> > >> > Then put these 4 bundles also next to the equinox framework jar from the >> > Equinox SDK: >> > >> > http://download.eclipse.org/equinox/drops/R-Mars-201506032000/download.php?dropFile=equinox-SDK-Mars.zip >> > >> > Tom >> > >> > >> > >> > >> > >> > From:Benson Margulies >> > To:Equinox development mailing list >> > Date:07/09/2015 08:52 PM >> > Subject:Re: [equinox-dev] Can I get logging corresponding to >> > 'diag'? >> > Sent by:equinox-dev-boun...@eclipse.org >> > >> > >> > >> > >> > Either that or some piece of pax-exam is filter-feeding log messages. >> > I found a way to customize it to just install a framework listener to >> > get the data. >> > >> > Meanwhile, could you possibly deconfuse me about starting up the shell >> > with java -jar? I assume that I'm missing something pretty minimal. >> > >> > >> > On Thu, Jul 9, 2015 at 9:48 PM, Thomas Watson >> > wrote: >> >> Perhaps the Felix implementation of Bundle.toString displays resolution >> >> results? >> >> >> >> Tom >> >> >> >> >> >> >> >> >> >> >> >> From:Benson Margulies >> >> To:Equinox development mailing list >> >> Date:07/09/2015 06:03 PM >> >> Subject:Re: [equinox-dev] Can I get logging corresponding to >> >> 'diag'? >> >> Sent by:equinox-dev-boun...@eclipse.org >> >> ________ >> >> >> >> >> >> >> >> I built a test case. What it proves is that there is no Equinox problem >> >> here, there's a pax-exam problem. >> >> >> >> When I run Equinox directly from my own code, I get: >> >> >> >> org.osgi.framework.BundleException: Could not resolve module: >> >> com.basistech.equinox-logging-demo-problem [2] >> >> Unresolved requirement: Import-Package: org.apache.commons.io; >> >> version="[1.4.0,1.4.1)" >> >> >> >> which is perfectly fine. >> >> >> >> pax-exam manages to obfuscate this to: >> >> >> >> 1065 [main] ERROR org.ops4j.pax.exam.nat.internal.NativeTestContainer >> >> - >> >>
Re: [equinox-dev] Can I get logging corresponding to 'diag'?
http://www.eclipse.org/equinox/documents/quickstart-framework.php is a bit misleading, I submit, as it seems to suggest that you can just download the jar and run it without any configuration. Also, for those of you interesting in the logging question, see: https://ops4j1.jira.com/browse/PAXEXAM-726 On Thu, Jul 9, 2015 at 10:10 PM, Thomas Watson wrote: > To use the console you need the following 4 bundles from the Equinox SDK: > > org.apache.felix.gogo.command > org.apache.felix.gogo.runtime > org.apache.felix.gogo.shell > org.eclipse.equinox.console > > You will need a file located next to the equinox jar > configuration/config.ini and place the following in it: > > osgi.bundles=org.apache.felix.gogo.command, \ > org.apache.felix.gogo.runtime, \ > org.apache.felix.gogo.shell, \ > org.eclipse.equinox.console > > Then put these 4 bundles also next to the equinox framework jar from the > Equinox SDK: > http://download.eclipse.org/equinox/drops/R-Mars-201506032000/download.php?dropFile=equinox-SDK-Mars.zip > > Tom > > > > > > From:Benson Margulies > To:Equinox development mailing list > Date:07/09/2015 08:52 PM > Subject:Re: [equinox-dev] Can I get logging corresponding to 'diag'? > Sent by:equinox-dev-boun...@eclipse.org > > > > > Either that or some piece of pax-exam is filter-feeding log messages. > I found a way to customize it to just install a framework listener to > get the data. > > Meanwhile, could you possibly deconfuse me about starting up the shell > with java -jar? I assume that I'm missing something pretty minimal. > > > On Thu, Jul 9, 2015 at 9:48 PM, Thomas Watson wrote: >> Perhaps the Felix implementation of Bundle.toString displays resolution >> results? >> >> Tom >> >> >> >> >> >> From:Benson Margulies >> To:Equinox development mailing list >> Date:07/09/2015 06:03 PM >> Subject:Re: [equinox-dev] Can I get logging corresponding to >> 'diag'? >> Sent by:equinox-dev-boun...@eclipse.org >> >> >> >> >> I built a test case. What it proves is that there is no Equinox problem >> here, there's a pax-exam problem. >> >> When I run Equinox directly from my own code, I get: >> >> org.osgi.framework.BundleException: Could not resolve module: >> com.basistech.equinox-logging-demo-problem [2] >> Unresolved requirement: Import-Package: org.apache.commons.io; >> version="[1.4.0,1.4.1)" >> >> which is perfectly fine. >> >> pax-exam manages to obfuscate this to: >> >> 1065 [main] ERROR org.ops4j.pax.exam.nat.internal.NativeTestContainer - >> Bundle [com.basistech.equinox-logging-demo-problem_0.0.1.SNAPSHOT [14]] is >> not resolved >> >> So, I'll be taking this up with them. >> >> >> On Thu, Jul 9, 2015 at 3:49 PM, Benson Margulies >> wrote: >> In an effort to get a clearer picture, I tried: >> >> java -jar >> >> ~/.m2/repository/org/eclipse/osgi/3.10.0-v20140606-1445/osgi-3.10.0-v20140606-1445.jar >> -console >> >> as per the getting started page, but it just sits there. I am sure this is >> density on my part. >> >> >> On Thu, Jul 9, 2015 at 3:01 PM, Benson Margulies >> wrote: >> Tom, >> >> I can do that. >> >> Thanks. >> >> >> >> On Thu, Jul 9, 2015 at 2:58 PM, Thomas Watson wrote: >> I suggest you open a bug against Equinox with step you used to launch the >> framework and install/start the bundles. I'm still a bit confused by how >> the errors are being logged. Clearly a better error message should be >> getting logged that describes the unsatisfied requirement. >> >> Tom >> >> >> >> >> >> From:Benson Margulies >> To:Equinox development mailing list >> Date:07/09/2015 01:46 PM >> Subject:Re: [equinox-dev] Can I get logging corresponding to >> 'diag'? >> Sent by:equinox-dev-boun...@eclipse.org >> >> >> >> >> >> >> On Thu, Jul 9, 2015 at 2:39 PM, Thomas Watson wrote: >> What version of Equinox are you using? Can you give the example of the >> error message equinox does give you? >> Tom >> >> I'm embarrassed to report that I've misplaced the log. I can, however, >> try >> to surround the question, as f
Re: [equinox-dev] Can I get logging corresponding to 'diag'?
Either that or some piece of pax-exam is filter-feeding log messages. I found a way to customize it to just install a framework listener to get the data. Meanwhile, could you possibly deconfuse me about starting up the shell with java -jar? I assume that I'm missing something pretty minimal. On Thu, Jul 9, 2015 at 9:48 PM, Thomas Watson wrote: > Perhaps the Felix implementation of Bundle.toString displays resolution > results? > > Tom > > > > > > From:Benson Margulies > To:Equinox development mailing list > Date:07/09/2015 06:03 PM > Subject:Re: [equinox-dev] Can I get logging corresponding to 'diag'? > Sent by:equinox-dev-boun...@eclipse.org > > > > > I built a test case. What it proves is that there is no Equinox problem > here, there's a pax-exam problem. > > When I run Equinox directly from my own code, I get: > > org.osgi.framework.BundleException: Could not resolve module: > com.basistech.equinox-logging-demo-problem [2] > Unresolved requirement: Import-Package: org.apache.commons.io; > version="[1.4.0,1.4.1)" > > which is perfectly fine. > > pax-exam manages to obfuscate this to: > > 1065 [main] ERROR org.ops4j.pax.exam.nat.internal.NativeTestContainer - > Bundle [com.basistech.equinox-logging-demo-problem_0.0.1.SNAPSHOT [14]] is > not resolved > > So, I'll be taking this up with them. > > > On Thu, Jul 9, 2015 at 3:49 PM, Benson Margulies > wrote: > In an effort to get a clearer picture, I tried: > > java -jar > ~/.m2/repository/org/eclipse/osgi/3.10.0-v20140606-1445/osgi-3.10.0-v20140606-1445.jar > -console > > as per the getting started page, but it just sits there. I am sure this is > density on my part. > > > On Thu, Jul 9, 2015 at 3:01 PM, Benson Margulies > wrote: > Tom, > > I can do that. > > Thanks. > > > > On Thu, Jul 9, 2015 at 2:58 PM, Thomas Watson wrote: > I suggest you open a bug against Equinox with step you used to launch the > framework and install/start the bundles. I'm still a bit confused by how > the errors are being logged. Clearly a better error message should be > getting logged that describes the unsatisfied requirement. > > Tom > > > > > > From:Benson Margulies > To:Equinox development mailing list > Date:07/09/2015 01:46 PM > Subject:Re: [equinox-dev] Can I get logging corresponding to 'diag'? > Sent by:equinox-dev-boun...@eclipse.org > > > > > > > On Thu, Jul 9, 2015 at 2:39 PM, Thomas Watson wrote: > What version of Equinox are you using? Can you give the example of the > error message equinox does give you? > Tom > > I'm embarrassed to report that I've misplaced the log. I can, however, try > to surround the question, as follows. > > > I am using, in Maven terms: > > org.eclipse:osgi:jar:3.10.0-v20140606-1445 > > The problem was the following. > > Bundle 'fred' imports com.basistech.george;version=[34.0.0,35.0.0) > > I stupidly included bundle 'george' with version 35.0.0. > > The error message simply said that 'fred' could not be resolved, and cited a > number in [] brackets. > > Later on I can reconstruct this stupidity by checking out from the right > (wrong) commit and running the build, but perhaps this is helpful? > > In comparison, when I swapped in Felix, I got a lengthy diagnosis that the > problem was the lack of com.basistech.george at the required version. > > > > > > > > > > From:Benson Margulies > To:equinox-dev@eclipse.org > Date:07/09/2015 12:31 PM > Subject:[equinox-dev] Can I get logging corresponding to 'diag'? > Sent by:equinox-dev-boun...@eclipse.org > > > > > When I make a mistake in a manifest, and a bundle has unresolvable > dependencies, the error message logged is not detailed. (For comparison > purposes, felix will log the whole story.) The shell command does not help > me; the situation is failing pax-exam tests, and while I could load up in > the shell, I'd rather just get the sad story when the test fails. > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev > > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To ch
Re: [equinox-dev] Can I get logging corresponding to 'diag'?
I built a test case. What it proves is that there is no Equinox problem here, there's a pax-exam problem. When I run Equinox directly from my own code, I get: org.osgi.framework.BundleException: Could not resolve module: com.basistech.equinox-logging-demo-problem [2] Unresolved requirement: Import-Package: org.apache.commons.io; version="[1.4.0,1.4.1)" which is perfectly fine. pax-exam manages to obfuscate this to: 1065 [main] ERROR org.ops4j.pax.exam.nat.internal.NativeTestContainer - Bundle [com.basistech.equinox-logging-demo-problem_0.0.1.SNAPSHOT [14]] is not resolved So, I'll be taking this up with them. On Thu, Jul 9, 2015 at 3:49 PM, Benson Margulies wrote: > In an effort to get a clearer picture, I tried: > > java -jar > ~/.m2/repository/org/eclipse/osgi/3.10.0-v20140606-1445/osgi-3.10.0-v20140606-1445.jar > -console > > as per the getting started page, but it just sits there. I am sure this is > density on my part. > > > On Thu, Jul 9, 2015 at 3:01 PM, Benson Margulies > wrote: > >> Tom, >> >> I can do that. >> >> Thanks. >> >> >> >> On Thu, Jul 9, 2015 at 2:58 PM, Thomas Watson >> wrote: >> >>> I suggest you open a bug against Equinox with step you used to launch >>> the framework and install/start the bundles. I'm still a bit confused by >>> how the errors are being logged. Clearly a better error message should be >>> getting logged that describes the unsatisfied requirement. >>> >>> Tom >>> >>> >>> >>> >>> >>> From:Benson Margulies >>> To:Equinox development mailing list >>> Date:07/09/2015 01:46 PM >>> Subject:Re: [equinox-dev] Can I get logging corresponding to >>> 'diag'? >>> Sent by:equinox-dev-boun...@eclipse.org >>> -- >>> >>> >>> >>> >>> >>> On Thu, Jul 9, 2015 at 2:39 PM, Thomas Watson <*tjwat...@us.ibm.com* >>> > wrote: >>> What version of Equinox are you using? Can you give the example of the >>> error message equinox does give you? >>> Tom >>> >>> I'm embarrassed to report that I've misplaced the log. I can, however, >>> try to surround the question, as follows. >>> >>> >>> I am using, in Maven terms: >>> >>> org.eclipse:osgi:jar:3.10.0-v20140606-1445 >>> >>> The problem was the following. >>> >>> Bundle 'fred' imports com.basistech.george;version=[34.0.0,35.0.0) >>> >>> I stupidly included bundle 'george' with version 35.0.0. >>> >>> The error message simply said that 'fred' could not be resolved, and >>> cited a number in [] brackets. >>> >>> Later on I can reconstruct this stupidity by checking out from the right >>> (wrong) commit and running the build, but perhaps this is helpful? >>> >>> In comparison, when I swapped in Felix, I got a lengthy diagnosis that >>> the problem was the lack of com.basistech.george at the required version. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> From:Benson Margulies <*ben...@basistech.com* >>> > >>> To:*equinox-dev@eclipse.org* >>> Date:07/09/2015 12:31 PM >>> Subject:[equinox-dev] Can I get logging corresponding to 'diag'? >>> Sent by:*equinox-dev-boun...@eclipse.org* >>> >>> -- >>> >>> >>> >>> When I make a mistake in a manifest, and a bundle has unresolvable >>> dependencies, the error message logged is not detailed. (For comparison >>> purposes, felix will log the whole story.) The shell command does not help >>> me; the situation is failing pax-exam tests, and while I could load up in >>> the shell, I'd rather just get the sad story when the test fails. >>> ___ >>> equinox-dev mailing list >>> *equinox-dev@eclipse.org* >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> *https://dev.eclipse.org/mailman/listinfo/equinox-dev* >>> <https://dev.eclipse.org/mailman/listinfo/equinox-dev> >>> >>> ___ >>> equinox-dev mailing list >>> *equinox-dev@eclipse.org* >>> To
Re: [equinox-dev] Can I get logging corresponding to 'diag'?
In an effort to get a clearer picture, I tried: java -jar ~/.m2/repository/org/eclipse/osgi/3.10.0-v20140606-1445/osgi-3.10.0-v20140606-1445.jar -console as per the getting started page, but it just sits there. I am sure this is density on my part. On Thu, Jul 9, 2015 at 3:01 PM, Benson Margulies wrote: > Tom, > > I can do that. > > Thanks. > > > > On Thu, Jul 9, 2015 at 2:58 PM, Thomas Watson wrote: > >> I suggest you open a bug against Equinox with step you used to launch the >> framework and install/start the bundles. I'm still a bit confused by how >> the errors are being logged. Clearly a better error message should be >> getting logged that describes the unsatisfied requirement. >> >> Tom >> >> >> >> >> >> From:Benson Margulies >> To:Equinox development mailing list >> Date:07/09/2015 01:46 PM >> Subject:Re: [equinox-dev] Can I get logging corresponding to >> 'diag'? >> Sent by:equinox-dev-boun...@eclipse.org >> -- >> >> >> >> >> >> On Thu, Jul 9, 2015 at 2:39 PM, Thomas Watson <*tjwat...@us.ibm.com* >> > wrote: >> What version of Equinox are you using? Can you give the example of the >> error message equinox does give you? >> Tom >> >> I'm embarrassed to report that I've misplaced the log. I can, however, >> try to surround the question, as follows. >> >> >> I am using, in Maven terms: >> >> org.eclipse:osgi:jar:3.10.0-v20140606-1445 >> >> The problem was the following. >> >> Bundle 'fred' imports com.basistech.george;version=[34.0.0,35.0.0) >> >> I stupidly included bundle 'george' with version 35.0.0. >> >> The error message simply said that 'fred' could not be resolved, and >> cited a number in [] brackets. >> >> Later on I can reconstruct this stupidity by checking out from the right >> (wrong) commit and running the build, but perhaps this is helpful? >> >> In comparison, when I swapped in Felix, I got a lengthy diagnosis that >> the problem was the lack of com.basistech.george at the required version. >> >> >> >> >> >> >> >> >> >> From:Benson Margulies <*ben...@basistech.com* >> > >> To:*equinox-dev@eclipse.org* >> Date:07/09/2015 12:31 PM >> Subject:[equinox-dev] Can I get logging corresponding to 'diag'? >> Sent by:*equinox-dev-boun...@eclipse.org* >> >> -- >> >> >> >> When I make a mistake in a manifest, and a bundle has unresolvable >> dependencies, the error message logged is not detailed. (For comparison >> purposes, felix will log the whole story.) The shell command does not help >> me; the situation is failing pax-exam tests, and while I could load up in >> the shell, I'd rather just get the sad story when the test fails. >> ___ >> equinox-dev mailing list >> *equinox-dev@eclipse.org* >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> *https://dev.eclipse.org/mailman/listinfo/equinox-dev* >> <https://dev.eclipse.org/mailman/listinfo/equinox-dev> >> >> ___ >> equinox-dev mailing list >> *equinox-dev@eclipse.org* >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> *https://dev.eclipse.org/mailman/listinfo/equinox-dev* >> <https://dev.eclipse.org/mailman/listinfo/equinox-dev> >> ___ >> equinox-dev mailing list >> equinox-dev@eclipse.org >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/equinox-dev >> >> ___ >> equinox-dev mailing list >> equinox-dev@eclipse.org >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/equinox-dev >> > > ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Can I get logging corresponding to 'diag'?
Tom, I can do that. Thanks. On Thu, Jul 9, 2015 at 2:58 PM, Thomas Watson wrote: > I suggest you open a bug against Equinox with step you used to launch the > framework and install/start the bundles. I'm still a bit confused by how > the errors are being logged. Clearly a better error message should be > getting logged that describes the unsatisfied requirement. > > Tom > > > > > > From:Benson Margulies > To:Equinox development mailing list > Date:07/09/2015 01:46 PM > Subject:Re: [equinox-dev] Can I get logging corresponding to > 'diag'? > Sent by:equinox-dev-boun...@eclipse.org > -- > > > > > > On Thu, Jul 9, 2015 at 2:39 PM, Thomas Watson <*tjwat...@us.ibm.com* > > wrote: > What version of Equinox are you using? Can you give the example of the > error message equinox does give you? > Tom > > I'm embarrassed to report that I've misplaced the log. I can, however, > try to surround the question, as follows. > > > I am using, in Maven terms: > > org.eclipse:osgi:jar:3.10.0-v20140606-1445 > > The problem was the following. > > Bundle 'fred' imports com.basistech.george;version=[34.0.0,35.0.0) > > I stupidly included bundle 'george' with version 35.0.0. > > The error message simply said that 'fred' could not be resolved, and cited > a number in [] brackets. > > Later on I can reconstruct this stupidity by checking out from the right > (wrong) commit and running the build, but perhaps this is helpful? > > In comparison, when I swapped in Felix, I got a lengthy diagnosis that the > problem was the lack of com.basistech.george at the required version. > > > > > > > > > > From:Benson Margulies <*ben...@basistech.com* > > > To:*equinox-dev@eclipse.org* > Date:07/09/2015 12:31 PM > Subject:[equinox-dev] Can I get logging corresponding to 'diag'? > Sent by:*equinox-dev-boun...@eclipse.org* > > -- > > > > When I make a mistake in a manifest, and a bundle has unresolvable > dependencies, the error message logged is not detailed. (For comparison > purposes, felix will log the whole story.) The shell command does not help > me; the situation is failing pax-exam tests, and while I could load up in > the shell, I'd rather just get the sad story when the test fails. > ___ > equinox-dev mailing list > *equinox-dev@eclipse.org* > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > *https://dev.eclipse.org/mailman/listinfo/equinox-dev* > <https://dev.eclipse.org/mailman/listinfo/equinox-dev> > > ___ > equinox-dev mailing list > *equinox-dev@eclipse.org* > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > *https://dev.eclipse.org/mailman/listinfo/equinox-dev* > <https://dev.eclipse.org/mailman/listinfo/equinox-dev> > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev > > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev > ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
Re: [equinox-dev] Can I get logging corresponding to 'diag'?
On Thu, Jul 9, 2015 at 2:39 PM, Thomas Watson wrote: > What version of Equinox are you using? Can you give the example of the > error message equinox does give you? > Tom > I'm embarrassed to report that I've misplaced the log. I can, however, try to surround the question, as follows. I am using, in Maven terms: org.eclipse:osgi:jar:3.10.0-v20140606-1445 The problem was the following. Bundle 'fred' imports com.basistech.george;version=[34.0.0,35.0.0) I stupidly included bundle 'george' with version 35.0.0. The error message simply said that 'fred' could not be resolved, and cited a number in [] brackets. Later on I can reconstruct this stupidity by checking out from the right (wrong) commit and running the build, but perhaps this is helpful? In comparison, when I swapped in Felix, I got a lengthy diagnosis that the problem was the lack of com.basistech.george at the required version. > > > > > From:Benson Margulies > To:equinox-dev@eclipse.org > Date:07/09/2015 12:31 PM > Subject:[equinox-dev] Can I get logging corresponding to 'diag'? > Sent by:equinox-dev-boun...@eclipse.org > -- > > > > When I make a mistake in a manifest, and a bundle has unresolvable > dependencies, the error message logged is not detailed. (For comparison > purposes, felix will log the whole story.) The shell command does not help > me; the situation is failing pax-exam tests, and while I could load up in > the shell, I'd rather just get the sad story when the test fails. > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev > > ___ > equinox-dev mailing list > equinox-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/equinox-dev > ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev
[equinox-dev] Can I get logging corresponding to 'diag'?
When I make a mistake in a manifest, and a bundle has unresolvable dependencies, the error message logged is not detailed. (For comparison purposes, felix will log the whole story.) The shell command does not help me; the situation is failing pax-exam tests, and while I could load up in the shell, I'd rather just get the sad story when the test fails. ___ equinox-dev mailing list equinox-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/equinox-dev