Wednesday, 2015-02-18

*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 245 seconds)00:06
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has joined #immutant00:18
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has quit IRC (Read error: Connection reset by peer)00:21
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has joined #immutant00:22
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)00:34
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has joined #immutant00:56
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has quit IRC (Read error: Connection reset by peer)00:58
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has joined #immutant00:59
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has quit IRC (Client Quit)01:00
*** Guest9000 <Guest9000!~textual@97-97-226-79.res.bhn.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)01:10
*** Guest9000 <Guest9000!~textual@97-97-226-79.res.bhn.net> has joined #immutant01:11
*** Guest9000 <Guest9000!~textual@97-97-226-79.res.bhn.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)01:24
*** Guest9000 <Guest9000!~textual@97-97-226-79.res.bhn.net> has joined #immutant01:27
*** jcrossle_ is now known as jcrossley3-away01:52
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has joined #immutant02:07
*** tcrawley-away is now known as tcrawley02:13
*** tcrawley is now known as tcrawley-away02:15
*** jcrossle_ <jcrossle_!~user@71-90-202-246.dhcp.stls.mo.charter.com> has joined #immutant02:27
*** jcrossley3-away <jcrossley3-away!~user@71-90-202-246.dhcp.stls.mo.charter.com> has quit IRC (Ping timeout: 245 seconds)02:28
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant02:53
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)02:56
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has joined #immutant02:57
*** Guest9000 <Guest9000!~textual@97-97-226-79.res.bhn.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)02:58
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)03:42
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 240 seconds)04:25
*** jcrossle_ is now known as jcrossley3-away04:27
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant06:21
*** _kardan <_kardan!~daniel_ka@c-31-209-39-157.cust.bredband2.com> has joined #immutant06:38
*** conan <conan!~conan@mdproctor.plus.com> has quit IRC (Quit: Computer has gone to sleep.)06:53
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)07:04
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant07:04
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 240 seconds)07:08
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant07:25
*** mgoldmann|away is now known as mgoldmann08:07
*** itruslove_ <itruslove_!~itruslove@ec2-107-20-95-59.compute-1.amazonaws.com> has quit IRC (Ping timeout: 246 seconds)08:38
*** itruslove <itruslove!~itruslove@ec2-107-20-95-59.compute-1.amazonaws.com> has joined #immutant08:41
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant09:10
*** deadghost <deadghost!~deadghost@49.230.144.63> has joined #immutant09:33
*** marianoguerra <marianoguerra!~marianogu@195.245.197.229> has joined #immutant09:39
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant09:39
deadghostI'm getting namespace immutant.web.internal.ring not found09:46
deadghoston org.immutant/web "2.0.0-beta2"09:47
deadghostany idea what might be causing this09:47
deadghostbumped up version from 2.x.incremental.19209:47
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)09:49
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant09:50
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 244 seconds)09:54
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant10:17
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 246 seconds)10:44
*** conan <conan!~conan@176.12.107.140> has joined #immutant10:48
*** qwerty_nor <qwerty_nor!~Thunderbi@5.248.107.224> has joined #immutant11:04
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)11:19
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant11:20
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 246 seconds)11:24
*** deadghost <deadghost!~deadghost@49.230.144.63> has quit IRC (Ping timeout: 256 seconds)11:38
*** conan <conan!~conan@176.12.107.140> has quit IRC (Quit: Computer has gone to sleep.)11:40
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant11:45
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has joined #immutant12:26
*** deadghost <deadghost!~deadghost@49.230.177.62> has joined #immutant12:33
*** tcrawley-away is now known as tcrawley12:39
tcrawleydeadghost: odd. can you share a stack trace?12:42
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 256 seconds)12:47
deadghosttcrawley, https://www.refheap.com/60a8b4d7634ff296a1eaaefcb12:49
jbossbotTitle: anonymous's paste: 60a8b4d7634ff296a1eaaefcb12:49
deadghostit's certainly an odd error12:49
deadghostat first I thought my clojure versions were borked or something12:49
deadghostor that I needed to $ lein clean12:50
deadghostthis errors when I try to evaluate my ns in repl12:52
deadghosttcrawley, https://www.refheap.com/0ee1574e1bb988eb31f5c99ea12:57
jbossbotTitle: anonymous's paste: 0ee1574e1bb988eb31f5c99ea12:57
deadghostmayhaps a bit more clear12:57
tcrawleydeadghost: it's unclear to me why this is happening. what version of lein is this, and are you using any profiles?13:06
tcrawleyI guess a better question is: does target/ still exist after you `lein clean`?13:06
*** bbrowning_away is now known as bbrowning13:07
deadghostlein 2.4.213:08
deadghostyep target gets nuked13:10
tcrawleyhmm, can you do `rm -rf ~/.m2/repository/org/immutant` and try again?13:10
deadghostwill do13:11
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant13:18
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)13:35
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has joined #immutant13:38
*** jcrossley3-away is now known as jcrossley313:50
*** deadghost <deadghost!~deadghost@49.230.177.62> has quit IRC (Ping timeout: 245 seconds)13:56
tcrawleyjcrossley3: did you see the new benchmarks? we do really well if keepalive is on, otherwise, not so great13:58
jcrossley3i rt'd peter but didn't look at the details13:59
jcrossley3at least we're on par with ring-undertow! :)14:01
tcrawleyheh14:01
jcrossley3that looks like an obvious config opportunity. hopefully stuart can suggest something.14:02
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-157-255.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)14:02
jcrossley3ALWAYS_SET_KEEP_ALIVE "If you are writing some kind of super high performance application and are worried about the extra data being sent over the wire this option allows you to turn it off. Defaults to true."14:08
jcrossley3i can't imagine that would explain the huge disparity14:08
*** deadghost <deadghost!~deadghost@49.230.177.62> has joined #immutant14:09
*** jcrossley3 <jcrossley3!~user@71-90-202-246.dhcp.stls.mo.charter.com> has quit IRC (Read error: Connection reset by peer)14:32
*** jcrossley3 <jcrossley3!~user@71-90-202-246.dhcp.stls.mo.charter.com> has joined #immutant14:33
*** jcrossley3 <jcrossley3!~user@71-90-202-246.dhcp.stls.mo.charter.com> has quit IRC (Changing host)14:33
*** jcrossley3 <jcrossley3!~user@redhat/jboss/jc3> has joined #immutant14:33
*** lance|afk is now known as lanceball14:33
irctc_trouble creating war with correct paths from  lein immutant war14:35
tcrawleywhat do you mean by "correct paths"? the paths within the war file?14:36
irctc_when war is deployed jboss complains it can't find  FileNotFoundException: src\\main\\resources\\db.properties14:36
irctc_yes, in the war file..14:36
irctc_src shouldn't be in there. or?14:37
irctc_In project.clj I have   :immutant {: war { :resource-paths ["src/main/resources"]14:39
irctc_This path allows the war to be created.14:40
tcrawleycan you gist the output of `jar tvf the-war-file`?14:40
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has joined #immutant14:40
irctc_yup, just a sec..14:42
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant14:45
irctc_https://www.refheap.com/a51ec8529e1994cc775032f2814:46
jbossbotTitle: anonymous's paste: a51ec8529e1994cc775032f2814:46
irctc_The war doesn't have the same path as the src14:48
jcrossley3is that ": war" a typo?14:49
irctc_The output in the gist is what is created.14:50
jcrossley3<irctc_> In project.clj I have   :immutant {: war { :resource-paths14:51
jcrossley3         ["src/main/resources"]  [09:39]14:51
jcrossley314:51
jcrossley3see that ": war"? ^^14:51
irctc_I see what you mean. No that's just how I typed it in..14:52
irctc_It's correct in the project.clj   :war14:52
jcrossley3ok14:53
jcrossley3i think it would show up in a listing for the contents of the standalone.jar within the war14:53
irctc_https://www.refheap.com/97489  snippit of the :immutant block14:54
jbossbotTitle: anonymous's paste: 9748914:54
tcrawleyirctc_: that war looks correct. I think jcrossley3 is correct - the issue may be in the uberjar. Can you gist the contents of that? along with the full stack from the error you are seeing?14:55
*** jcrossley3 <jcrossley3!~user@redhat/jboss/jc3> has quit IRC (Quit: ERC Version 5.3 (IRC client for Emacs))15:00
*** jcrossley3 <jcrossley3!~user@redhat/jboss/jc3> has joined #immutant15:00
irctc_yes, just a sec, filtering out from the 6K lines from all the dependent jars..15:03
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)15:03
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has joined #immutant15:11
irctc_on line 10 you can see   main/resources/db.properties   (without prefix src/)15:16
irctc_https://www.refheap.com/9749115:16
jbossbotTitle: anonymous's paste: 9749115:16
*** Guest9000 <Guest9000!~textual@97-97-226-79.res.bhn.net> has joined #immutant15:16
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)15:17
tcrawleyirctc_: can you gist the stack trace from WildFly?15:22
irctc_yup15:22
irctc_from the .failed file?15:23
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 264 seconds)15:25
tcrawleyfrom the server.log15:25
irctc_https://www.refheap.com/9749215:29
jbossbotTitle: anonymous's paste: 9749215:29
irctc_I think I realize the issue but not sure what to do about it yet.15:33
irctc_Originally when running lein ring server the following code was ok..15:34
irctc_(defonce db-spec (read-db-spec "src/main/resources/db.properties"))15:34
tcrawleyah, right. if it treats that path as a file, it's going to look in the current dir that path15:35
irctc_because it's relative to the root, and to pass the clojure compiler this path seems to be required, but then when running from the war the path needs to be main/resources/db.properties15:35
tcrawleyyou should use (clojure.java.io/resource "db.properties") instead. that should work in or out of WF15:35
irctc_cool, let me try that...15:36
tcrawleytreating "main/resouces/db.properties" as a file path will still fail in WF, since db.properties isn't a file when you are using a war, it's a resource15:36
irctc_Is this what you meant?   (defonce db-spec (read-db-spec (clojure.java.io/resource "db.properties")))15:38
irctc_If so, it give a NPE.15:38
tcrawleyirctc_: for "db.properties" to work as a resource, it needs to be at the top-level of your uberjar (not the war). So I don't think you need the :immutant {:war {:resource-paths ...}} entry, but instead need :resource-paths ["src/main/resource"] in project.clj15:55
*** mgoldmann is now known as mgoldmann|away15:56
*** dm3_ <dm3_!~dm3@pub158181119172.dh-hfc.datazug.ch> has joined #immutant15:57
*** dm3 <dm3!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 245 seconds)16:00
*** dm3_ <dm3_!~dm3@pub158181119172.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 255 seconds)16:02
*** conan_ <conan_!~conan@176.12.107.140> has joined #immutant16:05
*** conan_ <conan_!~conan@176.12.107.140> has quit IRC (Excess Flood)16:05
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant16:06
*** conan_ <conan_!~conan@176.12.107.140> has joined #immutant16:12
*** conan_ <conan_!~conan@176.12.107.140> has quit IRC (Excess Flood)16:13
*** conan_ <conan_!~conan@176.12.107.140> has joined #immutant16:17
*** conan_ <conan_!~conan@176.12.107.140> has quit IRC (Excess Flood)16:17
*** conan <conan!~conan@176.12.107.140> has joined #immutant16:21
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has joined #immutant16:25
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant16:27
*** conan <conan!~conan@176.12.107.140> has quit IRC (Quit: Computer has gone to sleep.)16:33
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)16:42
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant16:43
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 245 seconds)16:47
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 255 seconds)16:57
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant17:13
irctc_To get my db properties map I ditched the java properties and moved to edn with much simpler code:17:26
irctc_(->> "db.edn" io/resource slurp edn/read-string)17:26
irctc_deployed, but what is the default port?17:27
irctc_18080 seems to be it..17:30
irctc_I took a working liberator/compojure restful service and drop it into wildfly, but my usual urls aren't found (when changing the port from 3000 (ring) to 18080.)   Can this be done?17:33
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)17:34
tcrawleyirctc_: glad you got that working17:45
tcrawleydid you change the default WF port to 18080? how did you install WF?17:46
tcrawleyapps deployed to WF use the name of the war as the context path by default, so what was once at /foo is now at /my-app/foo for my-app.war17:46
tcrawleyyou can deploy it at / by naming the war ROOT.war, or by setting the context-path as an option to `lein immutant war`17:47
jcrossley38080 s/b the default port17:49
tcrawleyI wonder if installing via homebrew or somesuch gives you a non-standard port?17:50
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 264 seconds)17:59
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)18:05
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant18:06
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 252 seconds)18:10
*** conan <conan!~conan@176.12.107.140> has joined #immutant18:39
*** jcrossley3 <jcrossley3!~user@redhat/jboss/jc3> has quit IRC (Quit: ERC Version 5.3 (IRC client for Emacs))18:44
*** jcrossley3 <jcrossley3!~user@redhat/jboss/jc3> has joined #immutant18:44
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant18:45
*** conan <conan!~conan@176.12.107.140> has quit IRC (Quit: Computer has gone to sleep.)18:52
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has joined #immutant19:16
*** qwerty_nor <qwerty_nor!~Thunderbi@5.248.107.224> has quit IRC (Quit: qwerty_nor)19:17
*** tmbrooke_ <tmbrooke_!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has joined #immutant19:29
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has quit IRC (Ping timeout: 250 seconds)19:30
*** tmbrooke_ is now known as tmbrooke19:30
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant19:40
irctc_It seems to be 18080 by default on my installation. I see the jboss icon in the browser url entryfileld19:40
irctc_We have an tweaked installation that changes the port to 18080.19:42
jcrossley3irctc_: might it be tweaked in other ways, too?19:42
irctc_I think it's just some in house db connections19:44
jcrossley3so it sounds like your app should work, adjusted for port and context path?19:45
irctc_If my war is called, security-service-0.1.0-SNAPSHOT.war what would the context be?19:45
irctc_I haven't gotten anything yet.19:45
jcrossley3probably /security-service-0.1.0-SNAPSHOT :)19:46
tcrawleyyep19:46
irctc_can the ring/liberator/compojure just be dropped in and it works (with the right url of course)?19:47
tcrawleygenerally, yes. some things make assumptions about being at /, but I think most of that has been fixed in compolure19:48
tcrawleynot sure about liberator19:48
jcrossley3probably, depending on how careful the developer is about relative urls19:48
tcrawleyin the server.log, you should see a message telling you where the app is deployed19:48
tcrawleyand if it deployed successfully19:48
irctc_ring was localhost:3000/echo  for instance19:49
jcrossley3you can also deploy it at the root context, of course19:49
tcrawleyirctc_: when you say you haven't gotten anything, what do you get? 404s? 500s? the WildFly splash page?19:51
irctc_strange the standalone/deployments dir has a .deployed file, but the stdout on jboss process says not deployed. Will clean and try again.19:52
irctc_Getting Not Found 40419:52
tcrawleyif it fails again, can you gist the server output?19:53
irctc_will do.19:53
irctc_Should I have a :main defined in my project.clj, or should my def's defonce, etc get initialized like they do when running lein ring server-headless ?19:54
irctc_When generating the jar and war, getting "No :main specified in project.clj, no app initialization will be performed."19:55
tcrawleyyou have to have a :main, the :ring options in project.clj are ignored19:55
tcrawleywithout a :main, none of your code will be called19:55
tcrawleyso you need at least a (defn -main [] (immutant.web/run my-handler)), and point to that ns via :main19:56
tcrawleyadd a :main and make sure your app starts with `lein run`. Once you get that working, testing the war will be easier19:57
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)19:58
irctc_I have a main commented out that was doing some db import stuff when running with lein run19:58
irctc_Nothing to do with the compojure stuff though19:59
*** Guest9000 <Guest9000!~textual@97-97-226-79.res.bhn.net> has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)19:59
tcrawleyright, that was fine since you were using `lein ring`, which doesn't work win immutant19:59
tcrawleyif you need multiple :mains, you can use profiles19:59
tcrawleylein with-profile db-migrate run20:00
irctc_https://www.refheap.com/9750420:01
jbossbotTitle: anonymous's paste: 9750420:01
irctc_here's the server output20:01
*** Guest9000 <Guest9000!~textual@97-97-226-79.res.bhn.net> has joined #immutant20:02
tcrawleyright, with no :main, that's not going to do anything20:02
irctc_interesting.. So when running lein ring server  I don't need a main, so it must have some implicit starting point that I need to call manually from  a main in WF.20:04
tcrawleywhen using `lein ring`, it starts up a jetty for you and deploys the handler you specify in the ring config20:05
tcrawleyfor Immutant, that doesn't happen20:05
tcrawleyto use Immutant outside or inside WF, you have to have a :main that calls (immutant.web/run a-handler)20:05
tcrawleyonce you do that, though, your app should be available at / (given your server output)20:06
tcrawleyyou must be setting the context-path to / when generating the war20:06
irctc_correct, it's /20:07
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-153-093.carolina.res.rr.com> has joined #immutant20:07
irctc_When deploying to wildfly am I using the built in webserver (listening on 8080) in which case I have no idea what the code handler would be or should I be calling compojure's run-server function.  That would seem like I'm deployed in WF but not really using WF, just running a another server inside of it.20:13
tcrawleyyou need to call immutant.web/run. take a look at http://immutant.org/documentation/2.0.0-beta2/apidoc/guide-web.html20:14
jbossbotTitle: Immutant 2.0.0-beta2 API documentation20:14
tcrawleythat function will start undertow server outside of WF, and will talk to the already running server inside WF20:15
tcrawleyso, again, your main just needs to be (defn -main [] (immutant.web/run my-handler)), where my-handler is the handler you currently specify in your :ring config20:16
irctc_ok, let me get that going.. thankyou!20:16
tcrawleyyou're welcome!20:16
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-153-093.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)20:16
jcrossley3i wish ring server adapters were truly adapters20:17
tcrawleytotes20:17
tcrawleyI'm not filing that PR though20:17
jcrossley3heh20:17
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-153-093.carolina.res.rr.com> has joined #immutant20:19
irctc_Got it now.. from project.clj the ring handler is defined there...20:23
irctc_:ring {:handler my-service.core/handler}20:23
irctc_So call (immutant.web/run my-service.core/handler) from main..20:23
tcrawleyyep!20:23
irctc_Great Docs! thanks guys!20:24
tcrawleyThanks! Glad we could help. let us know how it goes.20:24
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 250 seconds)20:30
*** marianoguerra <marianoguerra!~marianogu@a95-93-242-245.cpe.netcabo.pt> has joined #immutant20:32
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has joined #immutant20:32
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-153-093.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)20:35
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-153-093.carolina.res.rr.com> has joined #immutant20:36
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-153-093.carolina.res.rr.com> has quit IRC (Client Quit)20:39
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-153-093.carolina.res.rr.com> has joined #immutant20:41
irctc_It's deploying, but I can't guess the URL yet. I restarted at ROOT.war to implifyplify20:58
irctc_..simplify20:58
irctc_so what used to be localhost:3000/echo  to echo back the request for testing becomes localhost:18080/echo   but getting 40420:59
irctc_It would be nice to query the routes21:00
tcrawleywhat happens when you hit /?21:09
tcrawleyand can you gist server output now?21:10
tcrawleyirctc_: ^21:10
irctc_working now.21:14
irctc_not sure what was wrong a second ago..21:14
tcrawleyyay!21:15
irctc_I added (ANY "/" [] echo)21:15
tcrawleydo you also now get a proper response from /echo?21:16
irctc_and /echo works now too! small miracles.  ;-)21:16
irctc_yes the same one that I got from ring21:16
tcrawleygood deal21:16
*** tmbrooke <tmbrooke!~tmbrooke@cpe-174-110-153-093.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)21:17
irctc_to get it working in maven, it should suffice to create the same boilerplate xml files that "lein immutant war" adds in?21:17
irctc_... to the war.21:18
tcrawleythat, and the other jars in lib. plus the app.properties21:19
tcrawleyyou'll need to construct the app.properties, since it21:20
tcrawleyit's what tells WF to call your main21:21
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 252 seconds)21:21
tcrawleylike so: https://gist.github.com/9c7ececa87558d5a011b21:21
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has joined #immutant21:29
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has quit IRC (Client Quit)21:30
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has joined #immutant21:31
irctc_ok21:32
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant21:53
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant21:59
tcrawleyjcrossley3: currently, send! returns false if you try to send to a closed channel22:26
jcrossley3ok22:27
tcrawleymaybe it should also call on-complete with an error as well22:27
tcrawleyare you cool with that?22:28
jcrossley3maybe, but it's two different things to me22:28
jcrossley31) did the send! get my message to some "queue"22:28
jcrossley32) did it get delivered from the queue22:28
*** bbrowning is now known as bbrowning_away22:29
jcrossley3your wanting to call on-complete to handle both situations?22:29
jcrossley3you're22:29
tcrawleyI'm not sure. I'm looking at IMMUTANT-529, and have been able to recreate on-close not getting called22:30
jbossbotjira [IMMUTANT-529] Websocket On-Close is Not Called in All Cases [Open (Unresolved) Bug, Major, Unassigned] https://issues.jboss.org/browse/IMMUTANT-52922:30
tcrawleyso want to give a workaround22:30
tcrawleybut that could look at the retval of send! (when-not (send! ch ...) (swap! channels disj ch)) or somesuch22:31
tcrawleyI do see a send! to a closed channel as a failure to complete, but I do understand your POV22:32
jcrossley3is it due to a bug we can't fix?22:32
jcrossley3is it due to ignoring the result of send!?22:32
tcrawleyI'm not sure of the cause yet. I was thinking we had a bug with send!, since it didn't complain at all that I was sending to closed channels22:33
tcrawleythen remembered it returns false when ch is closed22:33
tcrawleywhich made me wonder if we should call the callback22:33
jcrossley3you'd remove the possibility of ignoring send!'s retval by tossing an exception instead22:34
jcrossley3but it seems kinda wonky to me for that exception to be delivered in the form of an on-complete callback22:34
tcrawleyyou've talked me out of it22:35
jcrossley3you've made me want to trade the retval for an exception :)22:36
tcrawleysend! throws immediately?22:36
tcrawleymaybe22:37
tcrawleyit is a bad idea to ignore the retval22:37
*** _kardan <_kardan!~daniel_ka@c-31-209-39-157.cust.bredband2.com> has quit IRC (Quit: Computer has gone to sleep.)22:37
jcrossley3tcrawley: i like the immediate exception. keeps client code clean and surprise-free.22:47
tcrawleyyeah, I agree22:48
tcrawleyI think it's what I would expect send! to do if I didn't know it already22:49
jcrossley3agree22:49
tcrawleyI'll file a @jira22:50
proddbotWe'd be happy as a cow in Chic-fil-A if you would file an issue at https://issues.jboss.org/browse/IMMUTANT22:50
tcrawleyIMMUTANT-53022:51
jbossbotjira [IMMUTANT-530] immutant.web.async/send! should throw when sending to a closed channel instead of returning false [Open (Unresolved) Feature Request, Major, Unassigned] https://issues.jboss.org/browse/IMMUTANT-53022:51
*** tcrawley is now known as tcrawley-away22:59
*** lanceball is now known as lance|afk23:02
*** tmbrooke <tmbrooke!~tmbrooke@cpe-069-132-201-026.carolina.res.rr.com> has quit IRC (Quit: tmbrooke)23:05
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 245 seconds)23:08
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Remote host closed the connection)23:17
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has joined #immutant23:18
*** dm3 <dm3!~dm3@pub151248158012.dh-hfc.datazug.ch> has quit IRC (Ping timeout: 256 seconds)23:22
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has joined #immutant23:25
*** marianoguerra <marianoguerra!~marianogu@emesene/grandpa/marianoguerra> has quit IRC (Ping timeout: 246 seconds)23:46
*** cemerick <cemerick!~cemerick@c-24-34-140-98.hsd1.ma.comcast.net> has quit IRC (Ping timeout: 265 seconds)23:48

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!