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

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


      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.");
    }

    ElementMetaDataParser.initializeOptionalElementMetaData
        ("org/pentaho/reporting/engine/classic/extensions/modules/sparklines/meta-elements.xml");
    ElementMetaDataParser.initializeOptionalExpressionsMetaData
View Full Code Here


      final ClassLoader loader = ObjectUtilities.getClassLoader(getClass());
      Class.forName("net.sourceforge.barbecue.Barcode", false, loader);
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Unable to load Barbecue library class.");
    }

    ElementMetaDataParser.initializeOptionalElementMetaData
        ("org/pentaho/reporting/engine/classic/extensions/modules/sbarcodes/meta-elements.xml");
    ElementMetaDataParser.initializeOptionalExpressionsMetaData
View Full Code Here

  {
    final URL expressionMetaSource = ObjectUtilities.getResource
        ("org/pentaho/reporting/engine/classic/extensions/drilldown/drilldown-profile.xml", DrillDownModule.class);
    if (expressionMetaSource == null)
    {
      throw new ModuleInitializeException("Error: Could not find the drilldown meta-data description file");
    }
    register(expressionMetaSource);

    final URL customizedMetaSource = ObjectUtilities.getResource("drilldown-profile.xml", DrillDownModule.class);
    if (customizedMetaSource != null)
View Full Code Here

    {
      DrillDownProfileMetaData.getInstance().registerFromXml(expressionMetaSource);
    }
    catch (Exception e)
    {
      throw new ModuleInitializeException("Error: Could not parse the drilldown meta-data description file", e);
    }
  }
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 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.xml.sax.ext.LexicalHandler", ExtParserModule.class) == false)
    {
      throw new ModuleInitializeException("Unable to load JAXP-1.1 classes. " +
          "Check your classpath and XML parser configuration.");
    }

    performExternalInitialize(ExtParserModuleInit.class.getName(), ExtParserModule.class);
  }
View Full Code Here

  public void initialize(final SubSystem subSystem)
      throws ModuleInitializeException
  {
    if (AbstractModule.isClassLoadable("com.lowagie.text.Document", BaseFontModule.class) == false)
    {
      throw new ModuleInitializeException("Unable to load iText classes. " +
          "Check your classpath configuration.");
    }

    if ("onInit".equals(subSystem.getGlobalConfig().getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.support.itext.AutoInit")))
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.");
    }

    ReportProcessTaskRegistry.getInstance().registerExportType
        (EXCEL_STREAM_EXPORT_TYPE, StreamExcelReportProcessTask.class);
    ReportProcessTaskRegistry.getInstance().registerExportType
View Full Code Here

  {
    final InputStream in = ObjectUtilities.getResourceRelativeAsStream
        ("coremodule.properties", ClassicEngineCoreModule.class);
    if (in == null)
    {
      throw new ModuleInitializeException
          ("File 'coremodule.properties' not found in JFreeReport package.");
    }
    loadModuleInfo(in);
  }
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.