3 Replies Latest reply on Apr 16, 2015 6:02 AM by jaikiran pai

    [Jboss 7.1.1] ImageIO plugins not registered

    Olivier Masseau Newbie



      I have a webapp that is using jai_imageio 1.1. It has a plugin that allows to read/write tiff files.


      The jar is correctly in the classpath, in the WEB-INF/lib folder.


      The problem is it seems plugins are not scanned/registered automatically.


      If I execute this code:


              String[] names = ImageIO.getWriterFormatNames();
              for(int i=0; i<names.length; i++) {
                  System.out.println("writer " + names[i]);


      I can clearly see that plugin writers have not be registered.


      Anyone knows the reason why it could happen ?



      After a lot of searching, I think it is related to this:

      AS6 support for Service.providers()


      Was it not fixed in AS7 ?