tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Registering Plugins, e.g. javax.imageio...
Date Tue, 10 Sep 2013 21:14:47 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

George,

On 9/10/13 3:33 PM, George S. wrote:
> I've got an app that I'd like to register some plugins for.
> 
> Some examples of the things I'd like to register are the levigo
> JBIG2 decoder (for PDFBOX), and the TwelveMonkeys JPEG plugin (for
> CYMK/YCCK) image thumbnailing.
> 
> I've tried just putting the jars in the $CATALINA_BASE/lib
> (6.0.37) directory but it looks like that is not enough to register
> them. Just out of curiosity, is that right? Should tomcat be
> registering them? I've looked, and there are META-INF/services
> entries. FWIW, I am also running under a security manager.
> 
> I'd like to use the plugins if they're available, but not put a 
> dependency in my code for them. I'm running several hundred
> contexts per instance, so it would be nice to move it to the
> container.
> 
> Is there a way that I can specify something in the server.xml code
> that would register them? The only thing I can see is to create a 
> org.apache.catalina.LifecycleListener and put the code to register
> the plugins in there.
> 
> Is there some other way of doing it?

How would you do it if you weren't running under Tomcat?

Perhaps you have to place youe plugins under an "endorsed" directory
(i.e. one specified via JAVA_ENDORSED_DIRS environment variable when
using Tomcat startup scripts).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSL4vHAAoJEBzwKT+lPKRYm0kQAKetpyyfr7ttoh1VSJ/sAJ1W
yKA39zt6EzgRvle02MFXezyrA7AmBoVFINNtt/qNFq/hhYOf44sjWhmg5TPEFFsy
aaHP6CoMHbw642gh3y7CvK5rV0W8nHSZ00mYOBVH59fnVJBtEseMyHbx/7PniySm
XtvlvNHlQguS9YxcvmRIv4FQ1AL9GBxA0HmYXu8bFcvyTj9B6k09I9IyaI9HmOHs
1MolxXaTFn1j1k8djdFy4Is/bF9HnpCTFqYYVP2RdM32GcXydVHDHF76Mp/2syXJ
2adouI0G1drrTO03y4BcPBP309s/Eqg1lPJ9W2PFRDzub41xdHWuugXEkVsPvTN8
P7tt8bTPkmFhtpnMnclXuNbBig8xOxtIy8Fp/05MfA9lXsGEWEcxq3RKCM5yCt3k
/6qcweHMt0KDDarspptKaCaTzG2J/cN8ySmJRKL65lv9taOMyfOWhgSn+02FIE+w
GTGwL4qGNbNWjsd5wQO7wa14N4HFfQE8RrSVu5XF8amnpS00P+KHARHH1FZsR7dW
UgOESaW0iGftSTblTE8ytcSOxZtj+f9cuxvgOcTzKzKwo3n+mUWQfd06oZ0mdAj2
2JSWxrFOwa0MFLg3jMDGsNwp4/0R8NOT6ysS1DlKGxzN6xu5uEFnFu546ujOMroF
nhifLOjgxwiTcKivy6AZ
=MqrA
-----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