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

transit-clj required dependency ? #37

Open
clyfe opened this issue Feb 25, 2015 · 7 comments
Open

transit-clj required dependency ? #37

clyfe opened this issue Feb 25, 2015 · 7 comments

Comments

@clyfe
Copy link
Member

clyfe commented Feb 25, 2015

In the example app, it seems to me that transit-clj is a required dependency.
Without it I get:

Exception in thread "main" java.io.FileNotFoundException: Could not locate cognitect/transit__init.class or cognitect/transit.clj on classpath: , compiling:(ring/middleware/format_params.clj:1:1)

Working project.clj (note the last line):

(defproject rook-example "0.0.1"
            :description "An example rook resource"
            :main rook_test.core/main
            :dependencies [
                           [org.clojure/clojure "1.6.0"]
                           [io.aviso/rook "0.1.21"]
                           [ring "1.3.2"]
                           [com.cognitect/transit-clj "0.8.267"]])
@clyfe clyfe changed the title transit-clj required deendency ? transit-clj required dependency ? Feb 25, 2015
@clyfe
Copy link
Member Author

clyfe commented Feb 25, 2015

https://github.com/dakrone/clj-http also needed, used in the test at the bottom.

@clyfe
Copy link
Member Author

clyfe commented Feb 25, 2015

Oh, I just realized it's intentionally minimal, but the transit-clj thing still stands.

@hlship
Copy link
Collaborator

hlship commented Apr 14, 2015

Sorry for the delay in responding; noise vs. signal and all.

I've been doing quite a bit of work resolving the dependencies and excluding as many as possible, I'll take another look at this.

@jjjjw
Copy link

jjjjw commented Aug 17, 2015

+1

With this setup:

(ns example.server
  (:gen-class)
  (:import
    [org.eclipse.jetty.server Server])
  (:require
    [clojure.tools.logging :as l]
    [io.aviso.rook :as rook]
    [ring.adapter.jetty :as jetty]
    ))

I get the following error:

Exception in thread "main" java.io.FileNotFoundException: Could not locate cognitect/transit__init.class or cognitect/transit.clj on classpath: , compiling:(ring/middleware/format_params.clj:1:1)

It seems that transit-clj is required.

@hlship
Copy link
Collaborator

hlship commented Aug 17, 2015

What version of Rook, and what else is in your project.clj?

@jjjjw
Copy link

jjjjw commented Aug 17, 2015

Ah

Here are the dependencies:

  :dependencies [
    [io.aviso/rook "0.1.36"]
    [org.clojure/clojure "1.6.0"]
    [ring "1.4.0"]
  ]

@jjjjw
Copy link

jjjjw commented Aug 17, 2015

Adding [com.cognitect/transit-clj "0.8.281"] does work.

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

3 participants