tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: typesafe-config reference.conf file not found in a .jar in WEB_INF/lib
Date Tue, 05 May 2015 20:35:17 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

David,

On 5/5/15 4:30 PM, Walend, David wrote:
> typesafe config's loader isn't picking up my subproject's
> reference.conf from within a .jar file inside a .war file's
> WEB_INF/lib/ .
> 
> typesafe config finds the .jar file outside of tomcat. It works
> fine from the .war file's WEB_INF/classes (my hacky fix).
> 
> Typesafe config is finding the reference.conf files in other .jar
> files, like
> 
> Loading config from URL 
> jar:file:/opt/shrine/tomcat/webapps/shrine/WEB-INF/lib/akka-actor_2.11
- -2.3.
>
> 
8.jar!/reference.conf from class loader WebappClassLoader

So your WAR file looks like this:

/WEB-INF
/WEB-INF/lib
/WEB-INF/lib/akka-actor.2.11-2.3.8.jar
(plus other stuff)

Then, akka-actor.2.11-2.8.8.jar contains:

/reference.conf
(plus other stuff)

Do I have that right?

Is the URL you have above being used directly from within the web
application itself? That is, do you have complete control over the
URL, or is it built dynamically or something like that?

Which exact version of Tomcat are you using?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVSSmFAAoJEBzwKT+lPKRYbAgP/iYZZy5TxEB/hO+3BYUnJMBr
BOAp/hODsGRd3zd7exoBN204Yvd19TpFSLTkgFvHWitmeST4B0k0KAHm0IJCKXpy
HuqcBJmG81eCKgSOQuP5MCDvQavDzBKoFE6vYKRQAwFLQRoWy9TM4kqT/VU/cUd1
dxQW2D4bpm2yOl1BnorKzfunb6XDRDKtN9o+3bkUyjm13A+tbFPjsNJKA7aMFCjt
QMJspBXBk90hfwXyGAgvs4tX7wP15MNq0ZdsdkdZmjmBrLR1ZQcMO2s4ldhaTUPX
YVp6ZP+JN6m2mYhmnLxq4elLno4tNTNKPv3E9oxVEwLYpWJANmIY+l5c5VcYBTnG
LexXBmz1a84aZg2yjGLNN4b/eVw8QQAOftu7arecVOCwnIVThcN9QyT4BxoJOCGD
ySZFcfuBIL1IuWyZ/RY2k0gHvSj+xKW6Sd+EyaYuciQYI12gdWzAS9K2vfCNgrl/
1oX/Yk0hUG6AO2ClOHRVEr4LfQNFDMvL0Ta1GRbbr1/Y0LAHEP2Mt+isWioOZ93v
yULGursHp7EolbRd2FAZSe7C6/i9fmABR88jOrdvaSL5/pcdteL8INy13iHXAqyE
YE2IiIjDwQPNbw6+cH9jHlGJ0OpPFwaO4rmHhNu8DuBiNGABEyimP6sf3pj4cGfQ
t9XwE7qxX3Sym9Puj1PU
=u45b
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message