You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/02/07 21:52:00 UTC

[jira] [Commented] (KARAF-5421) Better error while installing non OSGi bundles

    [ https://issues.apache.org/jira/browse/KARAF-5421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17685484#comment-17685484 ] 

ASF GitHub Bot commented on KARAF-5421:
---------------------------------------

awrb opened a new pull request, #1713:
URL: https://github.com/apache/karaf/pull/1713

   …via bundle:install




> Better error while installing non OSGi bundles
> ----------------------------------------------
>
>                 Key: KARAF-5421
>                 URL: https://issues.apache.org/jira/browse/KARAF-5421
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 4.1.2
>            Reporter: Paolo Antinori
>            Priority: Major
>
> I understand installing a non OSGi bundle is wrong at a logical level, but the error message when doing so, it's fairly cryptic:
> {code}
> karaf@root()> install mvn:org.keycloak/keycloak-undertow-adapter/3.3.0.CR2
> Bundle IDs: 
> Error executing command: Error installing bundles:
> 	Unable to install bundle mvn:org.keycloak/keycloak-undertow-adapter/3.3.0.CR2: org.osgi.framework.BundleException: OSGi R3 bundle not supported
> {code}
> Does it make sense for the error message to suggest checking it's a valid bundle?
> Manifest of the above file is:
> {code}
> 14:21 $ unzip -c  ~/.m2/repository/org/keycloak/keycloak-undertow-adapter/3.3.0.CR2/keycloak-undertow-adapter-3.3.0.CR2.jar **MANIFEST.MF
> Archive:  /home/pantinor/.m2/repository/org/keycloak/keycloak-undertow-adapter/3.3.0.CR2/keycloak-undertow-adapter-3.3.0.CR2.jar
>   inflating: META-INF/MANIFEST.MF    
> Manifest-Version: 1.0
> Implementation-Title: Keycloak Undertow Integration
> Implementation-Version: 3.3.0.CR2
> Java-Version: 1.8.0_144
> Built-By: pantinor
> Scm-Connection: scm:git:git://github.com/keycloak/keycloak.git/keycloa
>  k-undertow-adapter
> Specification-Vendor: JBoss by Red Hat
> Os-Arch: amd64
> Specification-Title: Keycloak Undertow Integration
> Implementation-Vendor-Id: org.keycloak
> Java-Vendor: Oracle Corporation
> Os-Name: Linux
> Scm-Url: https://github.com/keycloak/keycloak/tree/master/keycloak-und
>  ertow-adapter/
> Implementation-Vendor: JBoss by Red Hat
> Os-Version: 4.12.14-300.fc26.x86_64
> Scm-Revision: 08d5a7a062fdbf8f2b63ca2a6e14e0fce2d3e3f1
> Created-By: Apache Maven 3.5.0
> Build-Jdk: 1.8.0_144
> Specification-Version: 3.3
> Implementation-URL: http://keycloak.org/keycloak-undertow-adapter
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)