You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/06/23 12:37:42 UTC

[jira] [Created] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Claus Ibsen created KARAF-1585:
----------------------------------

             Summary: Installing using wrap protocol fails when specifying bundle version
                 Key: KARAF-1585
                 URL: https://issues.apache.org/jira/browse/KARAF-1585
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 2.2.7
            Reporter: Claus Ibsen


I follow the docs at
http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html

at the section _Creating bundles for third party dependencies_

I try to execute as documented
{code}
karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
{code}

But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399907#comment-13399907 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

I think the doc is wrong, it should now be a semi colon instead
{code}
karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4;Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
Bundle ID: 78
commons-lang&Bundle-Version=2.4
{code}

Which then works
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399913#comment-13399913 ] 

Guillaume Nodet commented on KARAF-1585:
----------------------------------------

The $ sign is used for substitution in the shell, so you need to escape it, or to disable substitution using simple quotes:

{code}
karaf@root>  osgi:install 'wrap:mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2$Bundle-SymbolicName=Foo&Bundle-Version=1.2'
Bundle ID: 181
karaf@root> headers 181

Foo (181)
---------
Archiver-Version = Plexus Archiver
Specification-Title = leveldbjni-all
Tool = Bnd-0.0.357
Specification-Version = 1.2
Specification-Vendor = FuseSource, Corp.
Implementation-Version = 1.2
Build-Jdk = 1.6.0_29
Generated-By-Ops4j-Pax-From = wrap:mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2$Bundle-SymbolicName=Foo&Bundle-Version=1.2
Implementation-Vendor-Id = org.fusesource.leveldbjni
Created-By = 1.6.0_31 (Apple Inc.)
Implementation-Title = leveldbjni-all
Manifest-Version = 1.0
Bnd-LastModified = 1340449217352
Originally-Created-By = Apache Maven
Built-By = chirino
Implementation-Vendor = FuseSource, Corp.

Bundle-Name = Foo
Bundle-SymbolicName = Foo
Bundle-Version = 1.2
Bundle-ManifestVersion = 2

Import-Package = 
	org.fusesource.hawtjni.runtime;resolution:=optional,
	org.fusesource.leveldbjni;resolution:=optional,
	org.fusesource.leveldbjni.internal;resolution:=optional,
	org.iq80.leveldb;resolution:=optional
Export-Package = 
	org.fusesource.hawtjni.runtime,
	org.fusesource.leveldbjni;uses:="org.iq80.leveldb,org.fusesource.leveldbjni.internal,org.fusesource.hawtjni.runtime",
	org.fusesource.leveldbjni.internal;uses:="org.iq80.leveldb,org.fusesource.hawtjni.runtime",
	org.iq80.leveldb

{code}
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399930#comment-13399930 ] 

Claus Ibsen edited comment on KARAF-1585 at 6/23/12 12:21 PM:
--------------------------------------------------------------

Thanks from the shell the single quotes works. But from a features file its not possible.
{code}
karaf@root> features:install camel-leveldb 
Error executing command: no protocol: 'wrap:mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2$Bundle-Version=1.2'
{code}
                
      was (Author: davsclaus):
    Thanks from the shell it may be possible. But from a features file its not possible.
                  
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400313#comment-13400313 ] 

Guillaume Nodet commented on KARAF-1585:
----------------------------------------

Claus, the url remains the same in both the shell and xml, it's just those two environments do need different escaping.  $ needs to be escaped in the shell and & in the xml.  That's what we need to put in the manual I guess.
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Assignee: Freeman Fang
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399909#comment-13399909 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

Ah its a $ sign instead.

No wonder ppl think this is hard.
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399910#comment-13399910 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

Well dont work either with $. 

Instructions from here
http://karaf.922171.n3.nabble.com/Arguments-to-wrap-protocol-in-a-feature-definition-td3807247.html


                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400237#comment-13400237 ] 

Freeman Fang commented on KARAF-1585:
-------------------------------------

Hi Claus,

The wrap url in features should be like

<bundle dependency='true'>wrap:mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2$Bundle-Version=1.2&amp;Export-Package=*;-noimport:=true;version="1.2"</bundle>
This way it can specify the export package version like

Export-Package = 
	org.fusesource.hawtjni.runtime;version=1.2,
	org.fusesource.leveldbjni;uses:="org.iq80.leveldb,org.fusesource.leveldbjni.internal,org.fusesource.hawtjni.runtime";version=1.2,
	org.fusesource.leveldbjni.internal;uses:="org.iq80.leveldb,org.fusesource.hawtjni.runtime";version=1.2,
	org.iq80.leveldb;version=1.2

Freeman
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400316#comment-13400316 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

Yes examples of all 3 uses cases in the manual would be very welcome.

I know wrap is not an ideal solution. But many JARs are not OSGi compliant out of the box.
And ppl need to be able to use them with Karaf anyway.

So if we have a bit better docs and examples, then that would be great.
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Assignee: Freeman Fang
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reopened KARAF-1585:
---------------------------------

      Assignee: Freeman Fang

the manual page need updated accordingly per the discussion here
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Assignee: Freeman Fang
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400301#comment-13400301 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

Can you guys update the documentation with
- the link I provided had a non working example
- you need to use quotes from the shell
- there is no samples how to do this in a features file, which Freeman was the only one who could figure out how to do
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399911#comment-13399911 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

We need this in Camel to support the camel-leveldb feature that needs to be installed as a wrap
karaf@root> osgi:install wrap:mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2$Bundle-SymbolicName=Foo$Bundle-Version=1.2
java.lang.RuntimeException: URL [mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2-SymbolicName=Foo-Version=1.2] could not be resolved.


                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399930#comment-13399930 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

Thanks from the shell it may be possible. But from a features file its not possible.
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399953#comment-13399953 ] 

Guillaume Nodet commented on KARAF-1585:
----------------------------------------

You don't need to quote inside the feature definition. Only from the shell because the shell considers $ a reservers character.

For the metadata, there's an overwrite property which you can use when re-bundling a bundle to define the behavior wrt to the existing metadata.
For example:

{code}
wrap:mvn:tomcat/commons-el/5.5.23$Import-Package=*;resolution:=optional&amp;Export-Package=org.apache.commons.el*;-noimport:=true&amp;overwrite=merge
{code}

The default value is overwrite=keep which iirc keep the existing metadata intact, so only new headers can be added.  Try with merge as shown in the example above.

                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399963#comment-13399963 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

I think there is an issue when using wrap in the features file. As the $ doesnt work, eg without the quotes. Only from the shell it works.
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399931#comment-13399931 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

Also the export packages wont have Bundle-Version in the packages from the bundle itself. They dont carry version=1.2

Bundle-Name = wrap_mvn_org.fusesource.leveldbjni_leveldbjni-all_1.2_Bundle-Version_1.2
Bundle-SymbolicName = wrap_mvn_org.fusesource.leveldbjni_leveldbjni-all_1.2_Bundle-Version_1.2
Bundle-Version = 1.2
Bundle-ManifestVersion = 2
{code}
Import-Package = 
	org.fusesource.hawtjni.runtime;resolution:=optional,
	org.fusesource.leveldbjni;resolution:=optional,
	org.fusesource.leveldbjni.internal;resolution:=optional,
	org.iq80.leveldb;resolution:=optional
Export-Package = 
	org.fusesource.hawtjni.runtime,
	org.fusesource.leveldbjni;uses:="org.iq80.leveldb,org.fusesource.leveldbjni.internal,org.fusesource.hawtjni.runtime",
	org.fusesource.leveldbjni.internal;uses:="org.iq80.leveldb,org.fusesource.hawtjni.runtime",
	org.iq80.leveldb
{code}

                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400305#comment-13400305 ] 

Freeman Fang commented on KARAF-1585:
-------------------------------------

Hi Claus,

Sure,  the manual page need updated per the discussion here.
Reopen this issue until I update the manual page.

Freeman
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Assignee: Freeman Fang
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399908#comment-13399908 ] 

Claus Ibsen commented on KARAF-1585:
------------------------------------

I am not sure if the comma was supported in a previous release and changed to semi colon now.
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated KARAF-1585:
-------------------------------

    Priority: Minor  (was: Major)
    
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved KARAF-1585.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
                   2.3.0
                   2.2.9

commit fix
http://svn.apache.org/viewvc?rev=1355214&view=rev for trunk
http://svn.apache.org/viewvc?rev=1355216&view=rev for 2.3.x branch
http://svn.apache.org/viewvc?rev=1355212&view=rev for 2.2.x branch
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Assignee: Freeman Fang
>            Priority: Minor
>             Fix For: 2.2.9, 2.3.0, 3.0.0
>
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang closed KARAF-1585.
-------------------------------

    Resolution: Not A Problem

close it as "Not A Problem", feel free to reopen it if you have other concerns
                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira