Closed jrcantador closed 4 months ago
Estou com esse mesmo problema. Para rodar em container adicionei umas libs no pom.xml, não me recordo ao certo qual, mas segue algumas:
`
<!-- The Axiom API -->
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-api</artifactId>
<version>1.2.22</version>
<scope>compile</scope>
</dependency>
<!-- The default implementation of the Axiom API. -->
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-impl</artifactId>
<version>1.2.22</version>
<scope>runtime</scope>
</dependency>
<!-- An implementation of the Axiom API that also implements DOM. -->
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-dom</artifactId>
<version>1.2.22</version>
<scope>runtime</scope>
</dependency>
<!-- Axiom Compatibility Classes -->
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-compat</artifactId>
<version>1.2.22</version>
<scope>runtime</scope>
</dependency>
<!-- Commons XMLSchema is a light weight schema object model that can be used to manipulate or generate a schema -->
<dependency>
<groupId>org.apache.ws.commons.schema</groupId>
<artifactId>XmlSchema</artifactId>
<version>1.4.7</version>
</dependency>
<!-- Apache Neethi provides general framework for the programmers to use WS Policy. -->
<dependency>
<groupId>org.apache.neethi</groupId>
<artifactId>neethi</artifactId>
<version>3.2.0</version>
</dependency>
<!-- Bytes is a utility library that makes it easy to create, parse, transform, validate and convert byte arrays in Java -->
<dependency>
<groupId>at.favre.lib</groupId>
<artifactId>bytes</artifactId>
<version>1.6.1</version>
</dependency>
`
O problema era um conflito entre duas bibliotecas que usava o stax2-api.
Uma usava a 4.1 e a outra a 3.11.
Na maquina local funciona perfeitamente, porem quando rodo no meu container, tomo o seguinte erro:
Caused by: java.lang.NoSuchMethodError: org.codehaus.stax2.ri.EmptyIterator.getInstance()Lorg/codehaus/stax2/ri/EmptyIterator;
Acredito ser algum conflito, mas já tentei remover de tudo aqui e não funcionou