You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2019/01/25 14:52:00 UTC

[jira] [Commented] (KARAF-5925) Error while installing custom feature

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

Jean-Baptiste Onofré commented on KARAF-5925:
---------------------------------------------

In your application context, you are using {{spring-dm}} (it's the {{osgi:*}} related namespace in Spring).

{{spring-dm}} is deprecated and it doesn't work with Spring 5.x. So, you have to use "old" spring version or upgrade to blueprint (spring-dm replacement).

> Error while installing custom feature
> -------------------------------------
>
>                 Key: KARAF-5925
>                 URL: https://issues.apache.org/jira/browse/KARAF-5925
>             Project: Karaf
>          Issue Type: Question
>          Components: karaf
>    Affects Versions: 4.2.1
>         Environment: OS: CentOS 7 (64-bit)
> Java: 1.8
> Karaf-4.2.1
>            Reporter: Gaurav Patil
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: features, spring
>             Fix For: 4.2.3
>
>         Attachments: exception_log.txt, module_context.xml, pom.xml
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> I've created a OSGi bundle for handling the database utilities. I tried to install this bundle in karaf-3.0.0 running on java 1.7 where it is installed correctly and the bundle was in ACTIVE state.
>  But, when I tried to install the same feature in karaf-4.2.1 with Java 1.8 then the bundle is throwing an exception. The details about the exception are added to the attached file (exception_log.txt) [^exception_log.txt].
> I've also attached the pom.xml file [^pom.xml] and the spring bean xml file (module_context.xml).[^module_context.xml]
> ========================================================================
>  The spring feature installed is:
> spring │ 5.0.8.RELEASE_1 │ x │ Started │ spring-4.2.1 │ Spring 5.0.x support
>  spring-jdbc │ 5.0.8.RELEASE_1 │ │ Started │ spring-4.2.1 │ Spring 5.0.x JDBC support
>  spring-jms │ 5.0.8.RELEASE_1 │ x │ Started │ spring-4.2.1 │ Spring 5.0.x JMS support
>  spring-test │ 5.0.8.RELEASE_1 │ x │ Started │ spring-4.2.1 │ Spring 5.0.x Test support
>  spring-oxm │ 5.0.8.RELEASE_1 │ │ Started │ spring-4.2.1 │ Spring 5.0.x OXM support
>  spring-tx │ 5.0.8.RELEASE_1 │ x │ Started │ spring-4.2.1 │ Spring 5.0.x Transaction (TX) support
>  spring-web │ 5.0.8.RELEASE_1 │ x │ Started │ spring-4.2.1 │ Spring 5.0.x Web support
> =======================================================================
>  
> Can you please help me out to understand and resolve this issue?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)