project:
-
-
Save liweinan/549970a8e507e9c287db92eabf9777e8 to your computer and use it in GitHub Desktop.
This project currently does not build with jdk 11. To see the root cause of failure, I ran the following command:
mvn clean install -X -Dmaven.compiler.forceJavacCompilerUse=true
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project jberet-samples-common: Compilation failure: Compilation failure:
[ERROR] bootstrap class path not set in conjunction with -source 8
[ERROR] warning: unknown enum constant XmlAccessType.FIELD
[ERROR] reason: class file for javax.xml.bind.annotation.XmlAccessType not found
[ERROR] /Users/cfang/dev/jberet-wildfly-samples/jberet-samples-common/src/main/java/org/jberet/samples/wildfly/common/Movie.java:[14,32] error: package javax.xml.bind.annotation does not exist
[ERROR] /Users/cfang/dev/jberet-wildfly-samples/jberet-samples-common/src/main/java/org/jberet/samples/wildfly/common/Movie.java:[15,32] error: package javax.xml.bind.annotation does not exist
[ERROR] /Users/cfang/dev/jberet-wildfly-samples/jberet-samples-common/src/main/java/org/jberet/samples/wildfly/common/Movie.java:[25,1] error: cannot find symbol
[ERROR] symbol: class XmlRootElement
[ERROR] /Users/cfang/dev/jberet-wildfly-samples/jberet-samples-common/src/main/java/org/jberet/samples/wildfly/common/Movie.java:[29,5] error: cannot find symbol
[ERROR] symbol: class XmlAttribute
[ERROR] location: class Movie
[ERROR] /Users/cfang/dev/jberet-wildfly-samples/jberet-samples-common/src/main/java/org/jberet/samples/wildfly/common/Movie.java:[32,5] error: cannot find symbol
[ERROR] symbol: class XmlAttribute
[ERROR] location: class Movie
[ERROR] /Users/cfang/dev/jberet-wildfly-samples/jberet-samples-common/src/main/java/org/jberet/samples/wildfly/common/Movie.java:[35,5] error: cannot find symbol
[ERROR] symbol: class XmlAttribute
[ERROR] location: class Movie
[ERROR] /Users/cfang/dev/jberet-wildfly-samples/jberet-samples-common/src/main/java/org/jberet/samples/wildfly/common/Movie.java:[38,5] error: cannot find symbol
[ERROR] symbol: class XmlAttribute
[ERROR] location: class Movie
[ERROR] /Users/cfang/dev/jberet-wildfly-samples/jberet-samples-common/src/main/java/org/jberet/samples/wildfly/common/Movie.java:[41,5] error: cannot find symbol
[ERROR] symbol: class XmlAttribute
[ERROR] location: class Movie
[ERROR] -> [Help 1]
So from the above error message, the jaxb api is not there. It is part of Java 8 but was pruned in Java 9 or 10. So we just need to add jaxb-api dependency to fix the above problem. There may be other issues after that.
I'll try to bring this project up to date, creating a 1.x branch for javax.batch API, and keeping master branch for jakarta.batch API.
Thanks for checking! @chengfang
@chengfang I extracted one of the example and created this project:
I started the server by running:
$ mvn wildfly:run -DskipTests
And then run the test:
Though the test passed however the server throws some error messages:
I'm not sure how to fix it, could you please help to check it? Thanks!
since the error points at line 1 col 0, so it could yasson is expecting some json payload but somehow got empty json object. You may want to check if a json payload is needed in your request.
another possibility is the client side (resteasy, etc) libs may be too old.
Also I've updated https://github.com/jberet/jberet-wildfly-samples project with various lib upgrades and fixes.
@chengfang I'll check the updated examples. thanks for help!
@chengfang After upgrading the jberet-wildfly-samples
project locally, I can build the project now. And I went on running the tests restAPI
example. I run the start()
test and I can reproduce the INVALID TOKEN
problem:
Could you please help to check it? Thanks!
sure, I'll take a look. It could be some problem with jberet-rest-api, which has not been updated for a while. I noticed all rest* sub-modules within jberet-wildfly-samples failed with the above error.
@chengfang thanks!
Currently the examples doesn't support EE9 yet:
So I downgrade my JDK version to build the project:
However the build failed with
Null Pointer
failure: