You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jan Filipski (Jira)" <ji...@apache.org> on 2022/10/03 13:17:00 UTC

[jira] [Created] (CAMEL-18579) Missing osgi import for CxfUtils in camel-cxf-rest

Jan Filipski created CAMEL-18579:
------------------------------------

             Summary: Missing osgi import for CxfUtils in camel-cxf-rest
                 Key: CAMEL-18579
                 URL: https://issues.apache.org/jira/browse/CAMEL-18579
             Project: Camel
          Issue Type: Bug
          Components: camel-cxfrs
    Affects Versions: 3.18.2
            Reporter: Jan Filipski


CxfRsConsumer class has a direct dependency to CxfUtils (from another bundle). Osgi import to package org.apache.camel.component.cxf.util is now explicity disabled, so if CxfUtils is called, that cause ClassNotFoundException from runtime.

It's easy reproducable, probably on all versions containing camel-cxf-rest bundle (after CAMEL-9627).

After fault on rest endpoint, outFaultObserver is called and that cause runtime ClassNotFoundException on osgi environments.

 

Fix - not tested yet, but removing explict import removal from pom.xml should be enough (line containing !org.apache.camel.component.cxf.util)



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