Skip to content

Commit

Permalink
Temporary workaround for quarkusio/quarkus#31646 IllegalAnnotationsEx…
Browse files Browse the repository at this point in the history
…ception Two classes have the same XML type name thrown at build time by quarkus-jaxb
  • Loading branch information
ppalaga committed Mar 9, 2023
1 parent 24ef9b3 commit e7cdfe9
Show file tree
Hide file tree
Showing 20 changed files with 79 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ quarkus.cxf.client.codeFirstClient.client-endpoint-url=${cxf.it.calculator.baseU
quarkus.cxf.client.codeFirstClient.service-interface=io.quarkiverse.cxf.client.it.CodeFirstClient
quarkus.cxf.client.codeFirstClient.endpoint-namespace=http://www.jboss.org/eap/quickstarts/wscalculator/Calculatorrr
quarkus.cxf.client.codeFirstClient.endpoint-name=CalculatorService

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ quarkus.cxf.client."greeting".service-interface=io.quarkiverse.cxf.it.server.Gre
quarkus.cxf.client."greetingclient".client-endpoint-url=http://localhost:8081/soap/greeting
quarkus.cxf.client."greetingclient".service-interface=io.quarkiverse.cxf.it.server.GreetingClientWebService

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ public class NamedInterceptorBeanTest {
.overrideConfigKey("quarkus.cxf.endpoint.\"/fruit\".implementor",
"io.quarkiverse.cxf.deployment.test.FruitWebServiceImpl")
.overrideConfigKey("quarkus.cxf.endpoint.\"/fruit\".handlers", "#barDescriptionAppender,#fooDescriptionAppender")
.overrideConfigKey("quarkus.cxf.client.\"fruitClient\".client-endpoint-url", "http://localhost:8081/fruit");
.overrideConfigKey("quarkus.cxf.client.\"fruitClient\".client-endpoint-url", "http://localhost:8081/fruit")
// Workaround for https://github.com/quarkusio/quarkus/issues/31646
// Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
.overrideConfigKey("quarkus.jaxb.validate-jaxb-context", "false");

@Inject
@CXFClient("fruitClient")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public static Asset applicationProperties() {
Properties props = new Properties();
props.setProperty("quarkus.cxf.endpoint.\"/fruit\".implementor",
io.quarkiverse.cxf.deployment.test.FruitWebServiceImpl.class.getName());
// Workaround for https://github.com/quarkusio/quarkus/issues/31646
// Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
props.setProperty("quarkus.jaxb.validate-jaxb-context", "false");
try {
props.store(writer, "");
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class UberJarMergedResourcesTest {
.setRun(true)
.setExpectExit(true)
.overrideConfigKey("quarkus.package.type", "uber-jar")
// Workaround for https://github.com/quarkusio/quarkus/issues/31646
// Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
.overrideConfigKey("quarkus.jaxb.validate-jaxb-context", "false")
.setLogRecordPredicate(r -> "io.quarkiverse.cxf.deployment.QuarkusCxfProcessor".equals(r.getLoggerName()) ||
"io.quarkus.deployment.pkg.steps.JarResultBuildStep".equals(r.getLoggerName()));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
quarkus.cxf.endpoint."/fruit".implementor=io.quarkiverse.cxf.deployment.test.FruitWebServiceImpl
quarkus.cxf.endpoint."/fruit".published-endpoint-url=https://io.quarkus-cxf.com/fruit
quarkus.cxf.endpoint."/fruit".published-endpoint-url=https://io.quarkus-cxf.com/fruit

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ quarkus.cxf.client."fruitclient".service-interface=io.quarkiverse.cxf.deployment
quarkus.cxf.client."foo".client-endpoint-url=http://localhost:8081/fruit
quarkus.cxf.client."foo".features=org.apache.cxf.feature.LoggingFeature

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public class DefaultLoggingFeatureTest {
.overrideConfigKey("quarkus.cxf.endpoint.\"/hello\".features", "org.apache.cxf.ext.logging.LoggingFeature")
.overrideConfigKey("quarkus.cxf.client.hello.service-interface", HelloService.class.getName())
.overrideConfigKey("quarkus.cxf.client.hello.client-endpoint-url", "http://localhost:8081/hello")
// Workaround for https://github.com/quarkusio/quarkus/issues/31646
// Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
.overrideConfigKey("quarkus.jaxb.validate-jaxb-context", "false")
.setLogRecordPredicate(logRecord -> logRecord.getLoggerName().contains("org.apache.cxf.services.HelloService.RE")) // REQ_IN or RESP_OUT
.assertLogRecords(records -> assertThat(records)
.extracting(LogRecord::getMessage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public class NamedLoggingFeatureTest {
.overrideConfigKey("quarkus.cxf.endpoint.\"/hello\".features", "#namedLoggingFeature")
.overrideConfigKey("quarkus.cxf.client.hello.service-interface", HelloService.class.getName())
.overrideConfigKey("quarkus.cxf.client.hello.client-endpoint-url", "http://localhost:8081/hello")
// Workaround for https://github.com/quarkusio/quarkus/issues/31646
// Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
.overrideConfigKey("quarkus.jaxb.validate-jaxb-context", "false")
.setLogRecordPredicate(logRecord -> logRecord.getLoggerName().contains("org.apache.cxf.services.HelloService.RE")) // REQ_IN or RESP_OUT
.assertLogRecords(records -> assertThat(records)
.extracting(LogRecord::getMessage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public class UnnamedLoggingFeatureTest {
.overrideConfigKey("quarkus.cxf.endpoint.\"/hello\".features", "org.apache.cxf.ext.logging.LoggingFeature")
.overrideConfigKey("quarkus.cxf.client.hello.service-interface", HelloService.class.getName())
.overrideConfigKey("quarkus.cxf.client.hello.client-endpoint-url", "http://localhost:8081/hello")
// Workaround for https://github.com/quarkusio/quarkus/issues/31646
// Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
.overrideConfigKey("quarkus.jaxb.validate-jaxb-context", "false")
.setLogRecordPredicate(logRecord -> logRecord.getLoggerName().contains("org.apache.cxf.services.HelloService.RE")) // REQ_IN or RESP_OUT
.assertLogRecords(records -> assertThat(records)
.extracting(LogRecord::getMessage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ quarkus.cxf.client.codeFirstClient.client-endpoint-url=${cxf.it.calculator.baseU
quarkus.cxf.client.codeFirstClient.service-interface=io.quarkiverse.cxf.client.it.CodeFirstClient
quarkus.cxf.client.codeFirstClient.endpoint-namespace=http://www.jboss.org/eap/quickstarts/wscalculator/Calculatorrr
quarkus.cxf.client.codeFirstClient.endpoint-name=CalculatorService

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ quarkus.cxf.client."logging-client".service-interface=org.jboss.eap.quickstarts.
quarkus.cxf.client."logging-client".endpoint-namespace=http://www.jboss.org/eap/quickstarts/wscalculator/Calculator
quarkus.cxf.client."logging-client".endpoint-name=Calculator
quarkus.cxf.client."logging-client".features=org.apache.cxf.ext.logging.LoggingFeature

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ quarkus.cxf.client.imageServiceClient.client-endpoint-url=http://localhost:${qua
quarkus.cxf.client.imageServiceClient.service-interface=io.quarkiverse.cxf.it.ws.mtom.awt.server.ImageService
quarkus.cxf.client.imageServiceClient.endpoint-namespace="https://quarkiverse.github.io/quarkiverse-docs/quarkus-cxf/test/mtom-awt"
quarkus.cxf.client.imageServiceClient.endpoint-name=ImageService

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ quarkus.cxf.endpoint."/mtom".features=org.apache.cxf.ext.logging.LoggingFeature
quarkus.cxf.endpoint."/mtom".handlers=io.quarkiverse.cxf.it.ws.mtom.server.MtomEnforcer

quarkus.native.resources.includes=*.properties,*.jks,*.wsdl,*.xml

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ quarkus.cxf.client."greeting".service-interface=io.quarkiverse.cxf.it.server.Gre
quarkus.cxf.client."greetingclient".client-endpoint-url=http://localhost:8081/soap/greeting
quarkus.cxf.client."greetingclient".service-interface=io.quarkiverse.cxf.it.server.GreetingClientWebService

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false

Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ quarkus.cxf.endpoint."/addressing-anonymous".implementor=io.quarkiverse.cxf.it.w
quarkus.cxf.endpoint."/addressing-decoupled".implementor=io.quarkiverse.cxf.it.ws.addressing.server.decoupled.WsAddressingImpl

quarkus.native.resources.includes=wsdl/*.wsdl

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ quarkus.cxf.endpoint."/wsrm".features=org.apache.cxf.ext.logging.LoggingFeature
quarkus.datasource.db-kind = derby
quarkus.datasource.jdbc.url=jdbc:derby://localhost:1527/memory:testDB;create=true
quarkus.datasource.jdbc.max-size=8

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ quarkus.cxf.client."wss-client".service-interface=org.jboss.as.quickstarts.wssca
quarkus.cxf.client."wss-client".endpoint-namespace=http://www.jboss.org/eap/quickstarts/wscalculator/WssCalculator
quarkus.cxf.client."wss-client".endpoint-name=WssCalculator
quarkus.cxf.client."wss-client".out-interceptors=org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ quarkus.cxf.endpoint."/rounder".in-interceptors=org.apache.cxf.ws.security.wss4j

quarkus.cxf.endpoint."/security-policy-hello".implementor=io.quarkiverse.cxf.it.ws.securitypolicy.server.WssSecurityPolicyHelloServiceImpl

quarkus.native.resources.includes=bob.properties,alice.properties,alice.jks,bob.jks,encrypt-sign-policy.xml
quarkus.native.resources.includes=bob.properties,alice.properties,alice.jks,bob.jks,encrypt-sign-policy.xml

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ quarkus.cxf.endpoint."/jaxws-samples-wsse-policy-trust".implementor=io.quarkiver
quarkus.cxf.endpoint."/jaxws-samples-wsse-policy-trust".features=org.apache.cxf.ext.logging.LoggingFeature

quarkus.native.resources.includes=*.properties,*.jks,*.wsdl,*.xml

# Workaround for https://github.com/quarkusio/quarkus/issues/31646
# Should not be needed with the Quarkus release coming after 3.0.0.Alpha5
quarkus.jaxb.validate-jaxb-context = false

0 comments on commit e7cdfe9

Please sign in to comment.