jamesnetherton opened a new issue, #6940:
URL: https://github.com/apache/camel-quarkus/issues/6940

   ### 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 not match is found for BC.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to