Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cxf-soap integration tests fail in the Quarkus Platform #6940

Open
jamesnetherton opened this issue Jan 27, 2025 · 3 comments
Open

cxf-soap integration tests fail in the Quarkus Platform #6940

jamesnetherton opened this issue Jan 27, 2025 · 3 comments

Comments

@jamesnetherton
Copy link
Contributor

jamesnetherton commented Jan 27, 2025

Bug description

@ppalaga Not sure what's going on here. When QCXF & CQ 3.18.0 are aligned in the platform, all of the cxf-soap-grouped tests fail with:

CxfSoapWssServerTest.anonymous » Runtime java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkiverse.cxf.ws.security.deployment.QuarkusCxfWsSecurityProcessor#feature threw an exception: java.lang.IllegalStateException: Bouncy Castle's org.bouncycastle:bcprov-jdk18on artifact found in dependencies. To be able to use it, exclude io.quarkiverse.cxf:quarkus-cxf-bc-stub from io.quarkiverse.cxf:quarkus-cxf-rt-ws-security.
	at io.quarkiverse.cxf.ws.security.deployment.QuarkusCxfWsSecurityProcessor.feature(QuarkusCxfWsSecurityProcessor.java:24)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
	at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
	at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
	at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
	at java.base/java.lang.Thread.run(Thread.java:1583)
	at org.jboss.threads.JBossThread.run(JBossThread.java:499)

Apparently BC is on the classpath in the generated platform test module:

$ mvn dependency:tree -Dincludes=org.bouncycastle

[INFO] --- dependency:3.1.1:tree (default-cli) @ camel-quarkus-integration-test-cxf-soap-grouped ---
[INFO] io.quarkus.platform:camel-quarkus-integration-test-cxf-soap-grouped:jar:999-SNAPSHOT
[INFO] \- org.apache.camel.quarkus:camel-quarkus-integration-test-cxf-soap-grouped:jar:3.18.0:compile
[INFO]    \- io.quarkiverse.cxf:quarkus-cxf-rt-ws-security:jar:3.18.0:compile
[INFO]       \- org.apache.cxf:cxf-rt-ws-security:jar:4.1.0:compile
[INFO]          \- org.apache.wss4j:wss4j-ws-security-common:jar:3.0.4:compile
[INFO]             +- org.opensaml:opensaml-saml-impl:jar:4.3.2:compile
[INFO]             |  \- org.opensaml:opensaml-security-api:jar:4.3.2:compile
[INFO]             |     \- org.bouncycastle:bcpkix-jdk18on:jar:1.79:compile
[INFO]             |        \- org.bouncycastle:bcutil-jdk18on:jar:1.79:compile
[INFO]             \- org.cryptacular:cryptacular:jar:1.2.6:compile
[INFO]                \- org.bouncycastle:bcprov-jdk18on:jar:1.79:compile

But, if I run the same command in CQ in integration-tests/cxf-soap-grouped then no match is found for BC.

@ppalaga
Copy link
Contributor

ppalaga commented Jan 27, 2025

Strange. Let me check where the BC dependency comes from

@jamesnetherton
Copy link
Contributor Author

Something that may be relevant. To save time, I released CQ 3.18.0 aligned with QCXF 3.17.x.

CQ bumped to QCXF 3.18.0 after the release was tagged & staged.

ppalaga added a commit to ppalaga/quarkus-platform that referenced this issue Jan 27, 2025
@jamesnetherton jamesnetherton added this to the 3.19.0 milestone Jan 27, 2025
@jamesnetherton
Copy link
Contributor Author

Note for the 3.19.0 release, we need to remove this dependency override in the Quarkus Platform Camel member configuration:

https://github.com/quarkusio/quarkus-platform/blob/main/pom.xml#L399-L406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants