Package org.pentaho.reporting.libraries.base.boot

Examples of org.pentaho.reporting.libraries.base.boot.ModuleInitializeException


      final ClassLoader loader = ObjectUtilities.getClassLoader(getClass());
      Class.forName("javax.xml.xquery.XQDataSource", false, loader);
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Unable to load XQJ API classes.", e);
    }
  }
View Full Code Here


      Class.forName("org.hsqldb.jdbcDriver");
      populateDatabase();
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Failed to load the HSQL-DB driver", e);
    }

    ElementMetaDataParser.initializeOptionalDataFactoryMetaData
        ("org/pentaho/reporting/engine/classic/extensions/datasources/sampledata/meta-datafactory.xml");
View Full Code Here

    final ClassLoader classLoader = ObjectUtilities.getClassLoader(getClass());
    final InputStream in =
        classLoader.getResourceAsStream(BSHExpression.BSHHEADERFILE);
    if (in == null)
    {
      throw new ModuleInitializeException("Unable to locate BSHHeaderFile. " + //$NON-NLS-1$
          "This file is required to execute the BeanShellExpressions."); //$NON-NLS-1$
    }
    try
    {
      Class.forName("bsh.Interpreter", false, classLoader); //$NON-NLS-1$
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Unable to load the bean shell interpreter class. " + //$NON-NLS-1$
          "This class is required to execute the BeanShellExpressions."); //$NON-NLS-1$
    }

    ElementMetaDataParser.initializeOptionalExpressionsMetaData
        ("org/pentaho/reporting/engine/classic/core/modules/misc/beanshell/meta-expressions.xml");
View Full Code Here

  {
    final URL expressionMetaSource = ObjectUtilities.getResource
        ("org/pentaho/jfreereport/legacy/meta-expressions.xml", LegacyFunctionsModule.class);
    if (expressionMetaSource == null)
    {
      throw new ModuleInitializeException("Error: Could not find the expression meta-data description file");
    }
    try
    {
      ExpressionRegistry.getInstance().registerFromXml(expressionMetaSource);
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Error: Could not parse the element meta-data description file", e);
    }

  }
View Full Code Here

      final ClassLoader loader = ObjectUtilities.getClassLoader(getClass());
      Class.forName("org.pentaho.reporting.libraries.libsparklines.BarGraphDrawable", false, loader);
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Unable to load the Sparkline library class.");
    }

    ElementTypeRegistry.getInstance().registerNamespacePrefix(NAMESPACE, "sparkline");
    ElementMetaDataParser.initializeOptionalElementMetaData
        ("org/pentaho/reporting/engine/classic/extensions/modules/sparklines/meta-elements.xml");
View Full Code Here

      Class.forName("net.sourceforge.barbecue.Barcode", false, loader);
      EnvironmentFactory.setHeadlessMode();
    }
    catch (Throwable t)
    {
      throw new ModuleInitializeException("Unable to load Barbecue library class.", t);
    }

    ElementTypeRegistry.getInstance().registerNamespacePrefix(NAMESPACE, "sbarcodes");

    ElementMetaDataParser.initializeOptionalElementMetaData
View Full Code Here

  public void initialize(final SubSystem subSystem)
      throws ModuleInitializeException
  {
    if (AbstractModule.isClassLoadable("org.xml.sax.ext.LexicalHandler", ExtParserModule.class) == false)
    {
      throw new ModuleInitializeException("Unable to load JAXP-1.1 classes. " +
          "Check your classpath and XML parser configuration.");
    }

    SubReportReadHandlerFactory.getInstance().setElementHandler(NAMESPACE, "sub-report", ExtSubReportReadHandler.class);
    DataFactoryReadHandlerFactory.getInstance().setElementHandler(NAMESPACE, "data-factory", DataFactoryRefReadHandler.class);
View Full Code Here

      final ClassLoader classLoader = ObjectUtilities.getClassLoader(getClass());
      Class.forName("org.apache.bsf.BSFManager", false, classLoader); //$NON-NLS-1$
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Unable to load the bean scripting framework manager class. " + //$NON-NLS-1$
          "This class is required to execute the BSFExpressions."); //$NON-NLS-1$
    }

    ElementMetaDataParser.initializeOptionalExpressionsMetaData
        ("org/pentaho/reporting/engine/classic/core/modules/misc/bsf/meta-expressions.xml");
View Full Code Here

  public void initialize(final SubSystem subSystem)
      throws ModuleInitializeException
  {
    if (AbstractModule.isClassLoadable("org.apache.poi.hssf.usermodel.HSSFWorkbook", ExcelTableModule.class) == false)
    {
      throw new ModuleInitializeException("Unable to load POI classes.");
    }

    ElementMetaDataParser.initializeOptionalReportProcessTaskMetaData
        ("org/pentaho/reporting/engine/classic/core/modules/output/table/xls/meta-report-process-tasks.xml");
  }
View Full Code Here

          ("org.hsqldb.jdbcDriver", TestSetupModule.class, Driver.class);
      populateDatabase(driver);
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Failed to load the HSQL-DB driver", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.boot.ModuleInitializeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.