Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorials fails because of lack of java.xml.bind #474

Open
introom opened this issue Jul 11, 2020 · 2 comments
Open

Tutorials fails because of lack of java.xml.bind #474

introom opened this issue Jul 11, 2020 · 2 comments

Comments

@introom
Copy link

introom commented Jul 11, 2020

The tutorial fails because verschlimmbesserung depends on java.xml.bind, however later java verions has ditched it.

We may either update verschlimmbesserung or update the project.clj with java.xml.bind, e.g., #244

@aphyr
Copy link
Collaborator

aphyr commented Jul 12, 2020

That's a great idea--want to make a PR against verschlimmbesserung?

@introom
Copy link
Author

introom commented Jul 12, 2020

Looked into it a little bit, it's not about verschlimmbesserung.

I bumped the version of jepsen from 0.1.13 (as in the tutorial) to 0.2.0, the problem disappears.

For jepsen 0.1.13, it fails because it depends on http-kit, which requires j.x.b, cf. http-kit/http-kit#356

Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:427)
        at clojure.lang.RT.classForName(RT.java:2207)
        at clojure.lang.RT.classForNameNonLoading(RT.java:2220)
        at org.httpkit.server$loading__6706__auto____6135.invoke(server.clj:1)
        at org.httpkit.server__init.load(Unknown Source)
        at org.httpkit.server__init.<clinit>(Unknown Source)

In jepsen 0.2.0, while it still depends on http kit 2.3.0, somehow the problem disappears. Maybe some other dependency has pulled in the j.x.b.

I've created pr to bump the jepsen version in the tutorial.
#475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants