I tried it with an absolute path and got the same error. I also tried the mvn format and got the same error. It doesn't seem to be getting past the "wrap:" part. Thanks, Dan
On 2012/5/10 1:31 PM, "Achim Nierbeck" <bcanh...@googlemail.com> wrote: >Hi Dan, > >when using in conjunction with file you need a absolute path. > >Regards, Achim > >2012/5/10 Dan Lipofsky <dlipof...@ften.com>: >> So I added pax-logging and finally got wrap started. >> However it still doesn't work. I still get the following: >> >> osgi> install wrap:file:opencsv-2.3.jar >> org.osgi.framework.BundleException: "wrap:file:opencsv-2.3.jar" is an >> invalid URL >> ... >> Caused by: java.net.MalformedURLException: unknown protocol: wrap >> >> osgi> install wrap:mvn:net.sf.opencsv/opencsv/2.3 >> org.osgi.framework.BundleException: >>"wrap:mvn:net.sf.opencsv/opencsv/2.3" >> is an invalid URL >> ... >> Caused by: java.net.MalformedURLException: unknown protocol: wrap >> >> By the way, to get it started I had to add all the following >> bndlib-1.50.0.jar >> com.springsource.junit-3.8.2.jar (REALLY! yes) >> org.apache.felix.configadmin-1.2.8.jar >> pax-logging-api-1.6.7.jar >> pax-logging-service-1.6.7.jar >> pax-swissbox-bnd-1.5.0.jar >> pax-url-commons-1.4.0.jar >> pax-url-wrap-1.4.0.jar >> (and possible others I am forgetting about) >> >> >> Thanks, >> Dan >> >> >> On 2012/5/10 12:43 PM, "Andreas Pieber" <anpie...@gmail.com> wrote: >> >>>Hey Dan, >>> >>>Have you installed the pax-logging services? >>> >>>Kind regards, >>>Andreas >>> >>>On Thu, May 10, 2012 at 8:34 PM, Dan Lipofsky <dlipof...@ften.com> >>>wrote: >>>> just doing that gives me >>>> >>>> java.net.MalformedURLException: unknown protocol: wrap >>>> >>>> I assume I need org.ops4j.pax.url.wrap_1.4.0 >>>> installed and started. I've got it installed but I am unable to >>>> start it because of dependencies. I've been chasing down the >>>> rabbit hold of dependencies for a few hours now, and I am currently >>>> stuck at >>>> >>>> org.osgi.framework.BundleException: The bundle "slf4j.api_1.5.11 [80]" >>>> could not be resolved. Reason: Missing Constraint: Import-Package: >>>> org.slf4j.impl; version="1.5.5" >>>> >>>> and I'm not sure where to get that at. >>>> >>>> An example config.ini that successfully starts wrap might be helpful. >>>> >>>> Thanks, >>>> Dan >>>> >>>> On 2012/5/10 10:12 AM, "Achim Nierbeck" <bcanh...@googlemail.com> >>>>wrote: >>>> >>>>>Well if you already use the maven-bundle-plugin you don't really need >>>>>this anymore. >>>>>The wrap protocol is supposed to do a runtime conversion of a non OSGi >>>>>jar into a OSGi bundle. >>>>> >>>>>To use it you would do something like the following >>>>> >>>>>some-osgi-shell>install wrap:mvn:group.id/artifact.id/version >>>>> >>>>>Regards, Achim >>>>> >>>>>2012/5/9 Dan Lipofsky <dlipof...@ften.com>: >>>>>> Hi, >>>>>> >>>>>> I'm sorry to send this to such a general list, I didn't see a more >>>>>> specific one for this. >>>>>> I am trying to use the Pax URL Wrap Protocol but I am not >>>>>>succeeding. >>>>>> The wiki page describe some syntax but I can't figure out the usage. >>>>>> In particular where do I put the URL? I tried putting in the >>>>>> Import-Package field >>>>>> of maven-bundle-plugin in my pom.xml but that didn't work. >>>>>> I also tried the osgi.bundles field of the config.ini with >>>>>> the equinox OSGi console but no luck there. >>>>>> >>>>>> Thanks, >>>>>> Dan _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general