swagger-petstore icon indicating copy to clipboard operation
swagger-petstore copied to clipboard

Local docker build throws 500 server errors

Open JenniferKiesel opened this issue 1 year ago • 0 comments

When building the docker image myself the server throws HTTP 500 errors when calling a request with the following error: Implementation of JAXB-API has not been found on module path or classpath.

The following dependencies are missing:

<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.3.0-b170201.1204</version>
</dependency>

<!-- https://mvnrepository.com/artifact/javax.activation/activation -->
<dependency>
    <groupId>javax.activation</groupId>
    <artifactId>activation</artifactId>
    <version>1.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime -->
<dependency>
    <groupId>org.glassfish.jaxb</groupId>
    <artifactId>jaxb-runtime</artifactId>
    <version>2.3.0</version>
</dependency>

Also I got it only running with Java 8. Then it's working as expected.

JenniferKiesel avatar Mar 17 '23 20:03 JenniferKiesel