You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/10 10:45:50 UTC

[GitHub] [camel-quarkus] tarilabs opened a new issue #3282: camel-quarkus-atlasmap including xercesImpl problem

tarilabs opened a new issue #3282:
URL: https://github.com/apache/camel-quarkus/issues/3282


   When used on Quarkus, the dependency `org.apache.camel.quarkus:camel-quarkus-atlasmap` also transitively imports `xercesImpl` and that makes my Quarkus app fail on some xml apis; to solve it, I manually exclude xercesImpl from my pom.
   
   ```
   ...
   [INFO] +- org.apache.camel.quarkus:camel-quarkus-atlasmap:jar:2.4.0:compile
   [INFO] |  \- org.apache.camel:camel-atlasmap:jar:3.12.0:compile
   ...
   [INFO] |     \- io.atlasmap:atlas-dfdl-module:jar:2.2.3:compile
   [INFO] |        +- io.atlasmap:atlas-dfdl-model:jar:2.2.3:compile
   [INFO] |        \- io.atlasmap:atlas-dfdl-core:jar:2.2.3:compile
   [INFO] |           \- org.apache.daffodil:daffodil-japi_2.12:jar:3.0.0:compile
   [INFO] |              +- org.scala-lang:scala-library:jar:2.12.13:compile
   [INFO] |              +- org.apache.daffodil:daffodil-core_2.12:jar:3.0.0:compile
   [INFO] |              |  +- org.apache.daffodil:daffodil-runtime1-unparser_2.12:jar:3.0.0:compile
   [INFO] |              |  |  \- org.apache.daffodil:daffodil-runtime1_2.12:jar:3.0.0:compile
   [INFO] |              |  |     \- org.apache.daffodil:daffodil-io_2.12:jar:3.0.0:compile
   [INFO] |              |  |        \- org.apache.daffodil:daffodil-lib_2.12:jar:3.0.0:compile
   [INFO] |              |  \- org.apache.daffodil:daffodil-udf_2.12:jar:3.0.0:compile
   [INFO] |              +- org.scala-lang.modules:scala-xml_2.12:jar:1.3.0:compile
   [INFO] |              +- org.scala-lang.modules:scala-parser-combinators_2.12:jar:1.1.2:compile
   [INFO] |              +- com.ibm.icu:icu4j:jar:67.1:compile
   [INFO] |              +- xerces:xercesImpl:jar:2.12.0:compile
   [INFO] |              |  \- xml-apis:xml-apis:jar:1.4.01:compile
   [INFO] |              +- xml-resolver:xml-resolver:jar:1.2:compile
   [INFO] |              +- commons-io:commons-io:jar:2.11.0:compile
   [INFO] |              +- jline:jline:jar:2.14.6:compile
   [INFO] |              +- org.jdom:jdom2:jar:2.0.6:compile
   [INFO] |              \- com.fasterxml.woodstox:woodstox-core:jar:6.1.1:compile
   [INFO] |                 \- org.codehaus.woodstox:stax2-api:jar:4.2:compile
   ...
   ```
   
   The error relates to missing XSD Validation property:
   ```
   Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized
   ```
   
   Which is expected by _another_ Quarkus extensions in the same Quarkus application which needs to perform XSD Validation.
   
   To solve this issue, I exclude xercesImpl ~like this:
   
   https://github.com/tarilabs/quarkus-content-based-routing/blob/1b21a5359d71cb9a54d4a8ee8d901cac0c53fec6/pom.xml#L82-L91
   
   To reproduce the problem, you can checkout that ^ application locally, elide the `<exclusion>` and running `mvn clean install` will exhibit the problem: another Quarkus extension is performing XSD Validation, but the property is being likely searched on the specific xercesImpl now, instead of relying on the batteries-included JDK xml capabilities?
   
   Can you kindly advise please?
   Thanks!
   /cc @zbendhiba 


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton commented on issue #3282: camel-quarkus-atlasmap including xercesImpl problem

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #3282:
URL: https://github.com/apache/camel-quarkus/issues/3282#issuecomment-966156021


   > if I can just remove dfdl-module altogether already in my quarkus application
   
   You can try to exclude the dfdl module from the dependency tree, but it may not work because there are a few references to the dependency in the AtlasMap Camel Quarkus extension.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] zbendhiba commented on issue #3282: camel-quarkus-atlasmap including xercesImpl problem

Posted by GitBox <gi...@apache.org>.
zbendhiba commented on issue #3282:
URL: https://github.com/apache/camel-quarkus/issues/3282#issuecomment-967110774


   I will look at this. thanks @tarilabs 


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton commented on issue #3282: camel-quarkus-atlasmap including xercesImpl problem

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #3282:
URL: https://github.com/apache/camel-quarkus/issues/3282#issuecomment-965187429


   From Camel 3.13 onwards, this problem likely goes away. `atlas-dfdl-module` is experimental and is no longer included as a direct dependency of `camel-atlasmap` (it's optional).


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] tarilabs commented on issue #3282: camel-quarkus-atlasmap including xercesImpl problem

Posted by GitBox <gi...@apache.org>.
tarilabs commented on issue #3282:
URL: https://github.com/apache/camel-quarkus/issues/3282#issuecomment-966091723


   Thank you for the headsup @jamesnetherton 
   
   I understand AtlasMap works with XSD, JSONSchema, Pojos and CSV.
   I tried to read about DFDL in the AtlasMap User docs but there's no mention. I search DFDL instead in the AtlasMap Dev docs but in `3.3.5. DFDL Service` seems a typo the same description of xml is actually repeated.
   
   My question is: how can I understand if I can just remove dfdl-module altogether already in my quarkus application, please?


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org