title: Pentaho PDF generation in java - There are no root-handlers registered
body: <p>I'm trying to generate a PDF from a Pentaho .prpt report file in Java. After a number of <a href="https://stackoverflow.com/questions/7161753/generating-pdf-from-pentaho-prpt-report-file-in-java-dependencies-confusion">issues</a> I've reached this problem:</p>
  
  <pre><code>SEVERE: Failed:
  org.pentaho.reporting.libraries.resourceloader.ResourceCreationException: There are no root-handlers registered for the factory for type class org.pentaho.reporting.engine.classic.core.metadata.parser.ReportPreProcessorMetaDataCollection
  at org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlResourceFactory.create(AbstractXmlResourceFactory.java:176)
  at org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend.create(DefaultResourceManagerBackend.java:291)
  at org.pentaho.reporting.libraries.resourceloader.ResourceManager.create(ResourceManager.java:389)
  at org.pentaho.reporting.libraries.resourceloader.ResourceManager.create(ResourceManager.java:353)
  at org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly(ResourceManager.java:216)
  </code></pre>
  
  <p>Here is the code I'm using:</p>
  
  <pre><code>    ClassicEngineBoot.getInstance().start();
  
      final ResourceManager manager = new ResourceManager();
      manager.registerDefaults();
  
      final Resource reportResource = manager.createDirectly(getClass().getResource("/reports/test-report.prtp"), MasterReport.class);
  
      final MasterReport masterReport = (MasterReport) reportResource.getResource();
  
      PdfReportUtil.createPDF(masterReport, new ByteArrayOutputStream());
  </code></pre>
  
  <p>And here's the pom snippet (I'm using the repository <a href="http://repository.pentaho.org/artifactory/pentaho/" rel="nofollow noreferrer">http://repository.pentaho.org/artifactory/pentaho/</a>):</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;pentaho-reporting-engine&lt;/groupId&gt;
          &lt;artifactId&gt;pentaho-reporting-engine-classic-core&lt;/artifactId&gt;
          &lt;version&gt;3.8.0-GA&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;pentaho-reporting-engine&lt;/groupId&gt;
          &lt;artifactId&gt;pentaho-reporting-engine-classic-extensions&lt;/artifactId&gt;
          &lt;version&gt;3.8.0-GA&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
          &lt;artifactId&gt;libloader&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
          &lt;artifactId&gt;libxml&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
          &lt;artifactId&gt;libserializer&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
          &lt;artifactId&gt;libformula&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
          &lt;artifactId&gt;libfonts&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
          &lt;artifactId&gt;libformat&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;pentaho-library&lt;/groupId&gt;
          &lt;artifactId&gt;libdocbundle&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Does anyone know how to fix this?</p>