karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Commented: (KARAF-239) Equinox Framework Extensions
Date Tue, 05 Oct 2010 07:42:32 GMT

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

Guillaume Nodet commented on KARAF-239:

The reason for the failure is that the framework classes are not loaded anymore from the same
classloader than the one containing the lib classes.
The change has been done as part of KARAF-26 (see http://svn.apache.org/viewvc/karaf/trunk/main/src/main/java/org/apache/karaf/main/Main.java?r1=991865&r2=991864&pathrev=991865).

The reason for the change was the introduction of the restart command which needs the framework
to be loaded from a different classloader to allow switching.

I guess a possible fix would be to have the lib/* jars added to the classloader of the framework
instead of the jvm app classloader.

> Equinox Framework Extensions
> ----------------------------
>                 Key: KARAF-239
>                 URL: https://issues.apache.org/jira/browse/KARAF-239
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Linux (Ubuntu 10.04), Java 1.6.0_20, equinox
>            Reporter: Joachim B├Ąck
>         Attachments: 1285688419852.log, org.eclipse.equinox.weaving.hook_1.0.0.jar
> Installing the Equinox Aspects Framework Extension [1] into Equinox fails in 2.1.0 with
an error in KARAF_HOME/data/cache/xxx.log
> This was possible in 2.0.0 by simply putting the jar containing the extension into the
lib folder of Karaf (the documentation states that the system property: "osgi.framework.extensions=org.eclipse.equinox.weaving.hook"
must be set in order for equinox to load the extension - this however was not needed). 
> [1] http://www.eclipse.org/equinox/incubator/aspects/index.php

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message