This content has been marked as final.
Show 3 replies
-
1. Re: [Jboss 7.1.1] ImageIO plugins not registered
jaikiran Apr 16, 2015 4:31 AM (in response to icemaker)Have you called the following method from within your code first?
ImageIO.scanForPlugins();
-
2. Re: [Jboss 7.1.1] ImageIO plugins not registered
icemaker Apr 16, 2015 5:54 AM (in response to jaikiran)Thanks, this solved my problem
But shouldn't plugins be scanned automatically ?
-
3. Re: [Jboss 7.1.1] ImageIO plugins not registered
jaikiran Apr 16, 2015 6:02 AM (in response to icemaker)Olivier M wrote:
But shouldn't plugins be scanned automatically ?
That won't be feasible/realistic from an application server point of view, which doesn't really deal with ImageIO. In fact, the javadoc of the scanForPlugins has some of the other reasons why it's a good idea to do it within the application (once) http://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageIO.html#scanForPlugins%28%29.