title: Issue in getImageWritersByFormatName for Tiff. Getting image writer
body: <p>I am trying to convert PDF to tif images. I use following code to get the image writers by format.</p>
  
  <pre><code>Iterator&lt;ImageWriter&gt; writers = ImageIO.getImageWritersByFormatName("TIFF");
  
          if (writers == null || !writers.hasNext()) {
              throw new ImageWritingException();
          }
  </code></pre>
  
  <p>This works fine when I run the application standalone in Eclipse. But when I deploy the application to tomcat server in linux, <strong>writers==null</strong> is false but <strong>!writers.hasNext</strong> is true resulting to throw Exception. </p>
  
  <p>I use maven to build the project to war. </p>
  
  <p>I have following dependencies in the pom file. </p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.icepdf&lt;/groupId&gt;
              &lt;artifactId&gt;icepdf-core&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.media&lt;/groupId&gt;
              &lt;artifactId&gt;jai_imageio&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.media&lt;/groupId&gt;
              &lt;artifactId&gt;jai-codec&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;javax.media&lt;/groupId&gt;
              &lt;artifactId&gt;jai_core&lt;/artifactId&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>What can be the difference between two environments? How can I fix this issue? </p>