This content has been marked as final.
Show 1 reply
-
1. Re: WAR archive could not load static resources under EAR default lib
jewellgm Jul 30, 2018 8:46 AM (in response to t0920008899)I've never used webjars and don't really know much about it. Having said that, I did find a bug report on github that states that webjars doesn't work with JBoss due to the directory structure. (The report was filed against JBoss AS 7.1, but the architecture is still the same with wildfly.) The report is several years old, and I don't know whether there has been an update to resolve it. Somebody did publish a fix, but it's not official.
https://github.com/webjars/webjars-locator/issues/18
You may also need to put the webjars jar into your war's WEB-INF/lib rather than in your ear's lib.