I already saw this stackoverflow post, but it does not help, because it's spring boot (you can control by yourself, which libs go the classpath), while in karaf, you install a feature and depend on the transitive features ________________________________ Von: Maurice Betzel <[email protected]> Gesendet: Montag, 7. November 2022 09:24 An: [email protected] <[email protected]> Betreff: RE: cxf / camel-blueprint stax2 classloading issue
Seems this was an issue more often, please research the following: https://stackoverflow.com/questions/53990175/cxfservlet-throws-java-lang-nosuchmethoderror-org-codehaus-stax2-ri-emptyiterat Met vriendelijke groet / Mit freundlichen Grüßen / Kind regards, Maurice Betzel Principal Software Engineer Gaston Schul Group Department ICT Kazernestraat 10 5928 NL Venlo Phone: +31 77 32 460 26 Mobile Phone: +31 6 10 37 58 03 Website: www.gaston-schul.com<https://www.gaston-schul.com/> [cid:[email protected]] ________________________________ [cid:[email protected]] From: Björn Konrad <[email protected]> Sent: 07 November 2022 09:17 To: [email protected] Subject: AW: cxf / camel-blueprint stax2 classloading issue CAUTION: This email originated from outside of Gaston Schul. Do not click links or open attachments unless you recognize the sender and know the content is safe. This does not help (I have no unresolved bundles). I reproduced the problem with some simple steps: 1. downloaded karaf 4.4.2 2. I added the mentioned feature repos (mvn:org.apache.cxf.karaf/apache-cxf/3.5.4/xml/features, mvn:org.apache.camel.karaf/apache-camel/3.19.0/xml/features) 3. feature:install cxf aries-blueprint camel-blueprint 4. I deployed a simple webservice bundle blueprint.xml: <jaxws:endpoint id="my-service" implementor="#my-service-impl" address="/my-service" wsdlLocation="/META-INF/wsdl/my-service.wsdl" /> <bean id="my-service-impl" class="de....MyServiceImpl" /> 1. Accessing http://localhost:8181/cxf/my-service?wsdl gives me the mentioned error Any help would be great! Kind regards ________________________________ Von: Maurice Betzel <[email protected]<mailto:[email protected]>> Gesendet: Freitag, 4. November 2022 13:24 An: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> Betreff: RE: cxf / camel-blueprint stax2 classloading issue Download the correct jar from Maven central and drop it in the Karaf deploy folder to see if the other bundles are now resolving and / or not throwing an error. Met vriendelijke groet / Mit freundlichen Grüßen / Kind regards, Maurice Betzel Principal Software Engineer Gaston Schul Group Department ICT Kazernestraat 10 5928 NL Venlo Phone: +31 77 32 460 26 Mobile Phone: +31 6 10 37 58 03 Website: www.gaston-schul.com<https://www.gaston-schul.com/> [cid:[email protected]] ________________________________ [cid:[email protected]] From: Björn Konrad <[email protected]<mailto:[email protected]>> Sent: 04 November 2022 13:13 To: [email protected]<mailto:[email protected]> Subject: cxf / camel-blueprint stax2 classloading issue CAUTION: This email originated from outside of Gaston Schul. Do not click links or open attachments unless you recognize the sender and know the content is safe. I include the features mvn:org.apache.cxf.karaf/apache-cxf/3.5.2/xml/features, \ mvn:org.apache.camel.karaf/apache-camel/3.18.0/xml/features in karaf 4.4.1 (org.apache.karaf.features.cfg) and configured 'cxf' and 'camel-blueprint' as featuresBoot. Accessing the wsdl (e.g. /cxf/my-service?wsdl) gives me following error: java.lang.NoSuchMethodError: 'org.codehaus.stax2.ri.EmptyIterator org.codehaus.stax2.ri.EmptyIterator.getInstance() As it turns out, following bundles are installed: 233 │ Active │ 20 │ 4.2.1 │ mvn:org.codehaus.woodstox/stax2-api/4.2.1 (installed by cxf) 318 │ Active │ 10 │ 3.1.4 │ mvn:org.codehaus.woodstox/stax2-api/3.1.4 (installed by camel-blueprint) So, it seems like cxf is wired to the wrong version auf stax2-api. Any ideas how to solve this? Der Inhalt dieser E-Mail stellt keine rechtsverbindliche Erklärung des Absenders dar. Zur rechtsgeschäftlichen Vertretung des hr sind neben dem Intendanten als seinem gesetzlichen Vertreter grundsätzlich nur zwei bevollmächtigte Personen gemeinsam berechtigt. Auskünfte über den Umfang der Vollmachten erteilt die Justiziarin des hr. Der Inhalt dieser E-Mail (einschließlich beigefügter Dateien) ist vertraulich und nur für den Empfänger bestimmt; dies gilt nicht für Mails der Pressestelle oder für Newsletter. Wenn Sie nicht der bestimmungsgemäße Empfänger dieser E-Mail sind, informieren Sie bitte sofort den Absender und löschen Sie diese Mail von Ihrem System. Beachten Sie, dass die Verbreitung, das Kopieren sowie die Weitergabe der E-Mail nicht gestattet sind; dies gilt nicht für Mails der Pressestelle oder für Newsletter. Al onze verrichtingen geschieden op basis van de Algemene voorwaarden der Expediteurs van België, gepubliceerd in de bijlage tot het Belgisch Staatsblad dd. 24 juni 2005 onder nr. 0090237. De tekst van deze voorwaarden wordt op uw verzoek gratis toegezonden. All our transactions are subject to the General Conditions of the Belgian Forwarders Association which have been published under nr. 0090237 in the "Bijlage tot het Belgisch Staatsblad" dated June 24th, 2005, and is available free of charge upon request. Toutes nos opérations se font sur base des Conditions Générales des Expéditeurs de Belgique. Le texte en a été publié dans l' Annexe au Moniteur Belge du 24 juin 2005 sous le n° 0090237. Ce texte sera vous envoyé gratuitment sur demande. Email confidentiality notice: This email and any files transmitted with it are confidential and intended only for the use of the recipient. If you have received this email in error please notify its sender. Der Inhalt dieser E-Mail stellt keine rechtsverbindliche Erklärung des Absenders dar. Zur rechtsgeschäftlichen Vertretung des hr sind neben dem Intendanten als seinem gesetzlichen Vertreter grundsätzlich nur zwei bevollmächtigte Personen gemeinsam berechtigt. Auskünfte über den Umfang der Vollmachten erteilt die Justiziarin des hr. Der Inhalt dieser E-Mail (einschließlich beigefügter Dateien) ist vertraulich und nur für den Empfänger bestimmt; dies gilt nicht für Mails der Pressestelle oder für Newsletter. Wenn Sie nicht der bestimmungsgemäße Empfänger dieser E-Mail sind, informieren Sie bitte sofort den Absender und löschen Sie diese Mail von Ihrem System. Beachten Sie, dass die Verbreitung, das Kopieren sowie die Weitergabe der E-Mail nicht gestattet sind; dies gilt nicht für Mails der Pressestelle oder für Newsletter. Al onze verrichtingen geschieden op basis van de Algemene voorwaarden der Expediteurs van België, gepubliceerd in de bijlage tot het Belgisch Staatsblad dd. 24 juni 2005 onder nr. 0090237. De tekst van deze voorwaarden wordt op uw verzoek gratis toegezonden. All our transactions are subject to the General Conditions of the Belgian Forwarders Association which have been published under nr. 0090237 in the "Bijlage tot het Belgisch Staatsblad" dated June 24th, 2005, and is available free of charge upon request. Toutes nos opérations se font sur base des Conditions Générales des Expéditeurs de Belgique. Le texte en a été publié dans l' Annexe au Moniteur Belge du 24 juin 2005 sous le n° 0090237. Ce texte sera vous envoyé gratuitment sur demande. Email confidentiality notice: This email and any files transmitted with it are confidential and intended only for the use of the recipient. If you have received this email in error please notify its sender. Der Inhalt dieser E-Mail stellt keine rechtsverbindliche Erklärung des Absenders dar. Zur rechtsgeschäftlichen Vertretung des hr sind neben dem Intendanten als seinem gesetzlichen Vertreter grundsätzlich nur zwei bevollmächtigte Personen gemeinsam berechtigt. Auskünfte über den Umfang der Vollmachten erteilt die Justiziarin des hr. Der Inhalt dieser E-Mail (einschließlich beigefügter Dateien) ist vertraulich und nur für den Empfänger bestimmt; dies gilt nicht für Mails der Pressestelle oder für Newsletter. Wenn Sie nicht der bestimmungsgemäße Empfänger dieser E-Mail sind, informieren Sie bitte sofort den Absender und löschen Sie diese Mail von Ihrem System. Beachten Sie, dass die Verbreitung, das Kopieren sowie die Weitergabe der E-Mail nicht gestattet sind; dies gilt nicht für Mails der Pressestelle oder für Newsletter.
