Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by
edited by

I was following the Datomic tutorial, got everything set up on AWS and a succesful response from the curl {:s3-auth-path [bucket-name]}

After that I think that a client was created successfully:

(ns try-datomic.db
  (:require [datomic.client.api :as d]))

(def cfg {:server-type :cloud
          :region "eu-central-1"
          :system "db-learn"
          :creds-profile "default"
          :endpoint "http://entry.db-learn.eu-central-1.datomic.net:8182/"
          :proxy-port 8182})

(def client (d/client cfg))

Response from declaring a client is:

2021-02-17 17:48:24.708:INFO::nRepl-session-6***6: Logging initialized @13975ms to org.eclipse.jetty.util.log.StdErrLog

After that when trying to create a database with:

(d/create-database client {:db-name "movies"})

I get this error:

Execution error (ExceptionInfo) at datomic.client.api.async/ares (async.clj:58). java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter

Please help.

1 Answer

0 votes
by

Figured it out. It comes out that the per this StackOverflow question the JAXB API are no longer part of java. So All I did was add this dependency to project.clj to make it work.

[javax.xml.bind/jaxb-api "2.4.0-b180830.0359"]

by
FYI, Datomic questions may be better asked at https://ask.datomic.com !
...