weavejester / ring-webjars

Ring middleware to serve assets from WebJars
35 stars 4 forks source link

jar inside standalone console executables did not find assets #8

Open alan-saar opened 5 years ago

alan-saar commented 5 years ago

when using ring-webjars, making a executable jar and running, an exception is raised

Caused by: java.lang.NullPointerException
        at org.webjars.urlprotocols.JarUrlProtocolHandler.getAssetPaths(JarUrlProtocolHandler.java:45)

The problem is not in ring-webjars, but in the dependency webjars-locator.

webjars-locator 0.34 solve this.

is possible to update ring-webjars webjars-locator dependency from org.webjars/webjars-locator 0.27 to version 0.34 ?

opqdonut commented 2 years ago

I bumped into this same problem. An uberjar built using boot worked, but one built with deps.edn and depstar needed webjars-locator 0.34 to avoid this NPE.