You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2011/02/24 15:08:38 UTC

[jira] Commented: (SMX4-764) Issues related to Apache Felix Framework 3.0.2

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

Jean-Baptiste Onofré commented on SMX4-764:
-------------------------------------------

>From my mail on the dev mailing list:

Hi guys,

What I did:

1/ in etc/config.properties, I overrided the Felix Framework version:
karaf.framework.felix=${karaf.default.repository}/org/apache/felix/org.apache.felix.framework/3.0.8/org.apache.felix.framework-3.0.8.jar
2/ in the system folder repo, I have added the Felix Framework 3.0.8 jar.

ServiceMix 4.3.0 starts without problem and I haven't the "zip closed" message during features:install camel-nmr.
The features:install camel-cxf also works:

karaf@root> shell:info
[...]
  OSGi Framework              org.apache.felix.framework - 3.0.8
[...]
karaf@root> features:install camel-cxf
karaf@root>

It's something that I can easily do in the ServiceMix assembly.

However, if I try:

features:install examples-cxf-nmr

I got the same error:
Caused by: java.lang.NoClassDefFoundError: javax.xml.namespace.QName not found from bundle [cxf-nmr]
        at $Proxy120.<clinit>(Unknown Source)

So the examples should be fix to add Import-Package javax.xml.namespace statement.

I propose:
1/ I cancel the ServiceMix 4.3.0 release
2/ I update the ServiceMix assembly to override the Felix framework version in ServiceMix
3/ I update the examples/web/pom.xml (correct the parent POM version)
4/ I fix the examples/cxf-nmr with Import-Package: javax.xml.namespace
5/ I resubmit a release tonight 

> Issues related to Apache Felix Framework 3.0.2
> ----------------------------------------------
>
>                 Key: SMX4-764
>                 URL: https://issues.apache.org/jira/browse/SMX4-764
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.3.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.3.0
>
>
> By default, ServiceMix 4.3.0 uses Karaf 2.1.3. The default OSGi framework used is Apache Felix Framework 3.0.2.
> We have two issues using Felix 3.0.2:
> 1/ NoClassDefFoundError: javax.xml.namespace.QName
> The workaround is to add javax.xml.namespace in the Import-Package statement of the bundles (using CXF especially).
> 2/ IllegalStateException: zip file closed
> It's a known Felix bug around refresh.
> We don't have these issues using Equinox (adding karaf.framework=equinox in etc/custom.properties).
> The update to Felix 3.0.8 looks to solve the issue (I perform some tests to validate that).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira