The :hoplon: ClojureScript Web Framework - http://hoplon.io/
nuclear_tech_support 2018-08-26T18:30:21.000100Z

I'm using the hoplon-castra template to walk through the tutorial on castra, but I am trying to connect to a localhost oracle xe database. I was able to do this in lein by installing the ojdbc jar to my maven repo and including a dep like [local/ojdbc "12.x.x.x"]. Boot can't seem to find the ojdbc jar.

nuclear_tech_support 2018-08-26T18:30:40.000100Z

What do I have to do to make boot aware of the jar in my maven repo?

flyboarder 2018-08-26T19:31:54.000100Z

@nuclear_tech_support add it to your dependencies

nuclear_tech_support 2018-08-26T19:37:52.000100Z

@flyboarder I added [local/ojdbc8 ""] to my :dependecies in build.boot, but boot doesn't seem to find it on my class path.

flyboarder 2018-08-26T19:38:21.000100Z

is that the correct group?

flyboarder 2018-08-26T19:38:30.000100Z

looks weird

nuclear_tech_support 2018-08-26T19:39:09.000100Z

Well, I installed Oracles ojdbc.jar in my maven repo, and that is how I add it using lein.

flyboarder 2018-08-26T19:39:14.000100Z

try without local/

nuclear_tech_support 2018-08-26T19:40:02.000100Z

Could not find artifact ojdbc8:ojdbc8:jar: in clojars (https://repo.clojars.org/)

flyboarder 2018-08-26T19:43:34.000100Z

Could you post your dependencies vector? Also what is the path you have the package installed at?

flyboarder 2018-08-26T19:44:22.000100Z

That would suggest it cannot be found in the local repo so it is looking at clojars

nuclear_tech_support 2018-08-26T19:45:16.000100Z

:dependencies '[[adzerk/boot-cljs          "1.7.228-2"]
                  [adzerk/boot-reload        "0.5.1"]
                  [compojure                 "1.6.0-beta3"]
                  [hoplon/castra             "3.0.0-alpha7"]
                  [hoplon/hoplon             "6.0.0-alpha17"]
                  [org.clojure/clojure       "1.8.0"]
                  [org.clojure/clojurescript "1.9.495"]
                  [pandeiro/boot-http        "0.7.6"]
                  [ring                      "1.5.1"]
                  [ring/ring-defaults        "0.2.3"]
                  [adzerk/boot-cljs-repl     "0.3.3"]
                  [com.cemerick/piggieback   "0.2.1"  :scope "test"]
                  [weasel                    "0.7.0"      :scope "test"]
                  [org.clojure/tools.nrepl   "0.2.12" :scope "test"]
                  [ojdbc8 ""]]

nuclear_tech_support 2018-08-26T19:47:01.000100Z


flyboarder 2018-08-26T19:47:57.000100Z

oh then try this org.oracle/ojdbc8

nuclear_tech_support 2018-08-26T19:49:15.000200Z

actually, I found the jar file here: C:\Users\xb0g\.m2\repository\com\oracle\ojdbc8\``

flyboarder 2018-08-26T19:49:42.000100Z

ok so try com.oracle/ojdbc8

nuclear_tech_support 2018-08-26T19:59:24.000100Z

That seems to have got it, but I still can't seem to get data from the database to the page. I just get "Server Error" as the error message. Is there a way I can see what's going on in the castra server?

flyboarder 2018-08-26T20:16:10.000100Z

@nuclear_tech_support some well placed prn’s should do it 😉

flyboarder 2018-08-26T20:16:47.000100Z

You should also be able to extract the error from the javelin cell, but I dont use castra myself

nuclear_tech_support 2018-08-26T20:17:39.000100Z

So... What do you use for your server?

flyboarder 2018-08-26T20:17:44.000100Z


nuclear_tech_support 2018-08-26T20:18:17.000100Z

Is there an example of using hoplon with regular REST calls?

flyboarder 2018-08-26T20:18:41.000100Z

Hoplon is unrelated to the transport system

flyboarder 2018-08-26T20:18:47.000100Z

you can use anything

flyboarder 2018-08-26T20:19:05.000100Z

I myself use websockets

flyboarder 2018-08-26T20:19:30.000100Z

via feathersJS

flyboarder 2018-08-26T20:20:18.000100Z

Since Hoplon uses jquery by default you could use that for your rest calls

nuclear_tech_support 2018-08-26T20:22:10.000200Z

Okay, so I can just set up some storage cells, use those in some calculation cells, and deref those in my UI. Then fire off some jquery getJson and give them a callback that mutates the storage cell.

nuclear_tech_support 2018-08-26T20:22:12.000100Z


flyboarder 2018-08-26T20:22:23.000100Z


nuclear_tech_support 2018-08-26T20:22:29.000100Z


flyboarder 2018-08-26T20:22:32.000100Z


flyboarder 2018-08-26T20:23:12.000100Z

@nuclear_tech_support once you figure out how that process works, everything in hoplon gets easier