Clojurians
#immutant
<
2016-02-02
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

trancehime03:02:10

@tcrawley: https://gist.github.com/trancehime/eabce83bce9eb849aa8c here is the gist of the stack trace. It's the same error for every single static file in the WAR deployment, so I'm just putting it in the gist once

tcrawley12:02:58

@trancehime: odd, there is no immutant code in that stack. how are you deploying your servlet?

tcrawley12:02:10

I suspect if you (require 'immutant.web.internal.ring), your problem will go away, since that's what triggers the defmethod call for vfs: urls

tcrawley12:02:24

and that must not be happening with whatever code path you are using

tcrawley12:02:07

we should probably move that trigger to another namespace to cover cases where the ring ns doesn't get loaded

tcrawley12:02:33

hmm, are you creating your war file with lein immutant war, or some other method?

trancehime12:02:38

Yes, I am using lein immutant war

tcrawley13:02:01

our timezones align!

trancehime13:02:16

Yes, it surely is inconvenient that I am located in Asia :^)

tcrawley13:02:34

let's say it's inconvenient that I'm located in the US :)

tcrawley13:02:20

how are you deploying your servlet within your :main?

trancehime13:02:23

Wait, hold on a second. I think there is a miscommunication

trancehime13:02:05

The stack trace has no immutant code in it because it wasn't made using Immutant, I got mixed up with a separate web app that I am actually building with lein immutant war which has a totally different issue (I'm getting 403 errors)

tcrawley13:02:34

ah, for the non-immutant app, you'll need to copy https://github.com/immutant/immutant/blob/master/web/src/immutant/web/internal/ring.clj#L155-L171 into your app, since WildFly will give you :vfs urls, and ring won't understand those

tcrawley13:02:10

except you won't have try-resolve, since that's an immutant fn

trancehime13:02:34

Interestingly, the webapp I built with lein immutant war seems to produce no errors upon deployment, but when I try to access it, I get 403 errors. Which realy confused me. Then again it's being fronted by nginx. So I dunno

tcrawley13:02:09

can you try accessing it directly (bypassing nginx)?

trancehime13:02:10

I was unable to

tcrawley13:02:14

can you access it from the machine it is running on via curl?

trancehime13:02:00

I can't try that right now but if I could, what would that mean?

tcrawley13:02:47

if you can curl routes in WildFly and not get a 403, that would point to a misconfiguration in nginx I'd think

trancehime13:02:13

Thanks for your patience and everything

tcrawley13:02:21

I'm happy to help!

trancehime13:02:34

It's a big deal for me :smiley: