Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule

  1. #1
    Join Date
    Nov 2007
    Posts
    2

    Default java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule

    Hello there.

    I'm trying to use Kettle in some own application developed with eclipse. The aim is to generate some .ktr without the use of the GUI (Spoon).
    Actually I'm using Kettle-3.0.0.GA. (It used to run well in some older version like 2.4 or even older)
    Therefore I first try to initialize Kettle in the same way as in Pan.java or Kitchen.java.
    Unfortunaly I get this exception and don't know how to solve the problem right now. Any help would be very appreciated.
    Here is the (test) code I use and the Exception I get:


    Code:
    EnvUtil.environmentInit();
    try {
                StepLoader.init();
         }
         catch(KettleException e)  {
          e.printStackTrace(); }
     try  {
                JobEntryLoader.init();
          }
          catch(KettleException e)  {
           e.printStackTrace(); }
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
    at org.pentaho.di.trans.step.BaseStep.<clinit>(BaseStep.java:76)
    at org.pentaho.di.trans.StepLoader.readNatives(StepLoader.java:123)
    at org.pentaho.di.trans.StepLoader.read(StepLoader.java:94)
    at .......kettle.test.InitKettle.loadPlugins(InitKettle.java:52)


    The Exception is thrown in this line:
    Code:
    StepLoader.init();
    I also get the same Exception when I use the old code used some time ago which is deprecated now i.e.:
    Code:
    try {
                StepLoader.getInstance().read();
            } catch (KettleException e) {         
                e.printStackTrace();
            }
    It worked fine so far with the older kettle.jar, with kettle-engine-3.0.jar the Exception is thrown.
    Some one who could give me a hint or help me out?

    Thanks
    Kamil

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    Include all libraries in libext (and sudirectories) in the builder path?

    Regards,
    Sven

  3. #3
    Join Date
    Nov 2007
    Posts
    2

    Default

    Ups, thanks that solved the problem. Did not thought of that there might be new libs in a newer version, my fault.

    cheers,
    Kamil

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.