java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils

JIRA | René Krell [Administrator] | 1 year ago
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    When using AntActionInstallerListener, there is the need to add commons-io.jar to the list of jars in install.xml, otherwise the installer will fail with: {code} FEIN: Executing all beforepack Ant actions of pack mycore ... Exception in thread "IzPack - Unpacker thread" java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils at com.izforge.izpack.event.AntAction.createLogger( at com.izforge.izpack.event.AntAction.performAction( at com.izforge.izpack.event.AntAction.performInstallAction( at com.izforge.izpack.event.AntActionInstallerListener.performAllActions( at com.izforge.izpack.event.AntActionInstallerListener.beforePack( at com.izforge.izpack.installer.event.InstallerListeners.beforePack( at com.izforge.izpack.installer.unpacker.UnpackerBase.unpack( at com.izforge.izpack.installer.unpacker.UnpackerBase.unpack( at at Source) Caused by: java.lang.ClassNotFoundException: at Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 10 more {code} Normally, , there should be all classes built-in needed by the Ant action execution functionality except dependencies that Ant and native or additional Ant tasks need. Add Apaches's FileUtils and depending classes as built-in classes to the installer.

    JIRA | 1 year ago | René Krell [Administrator]
    java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
  2. 0

    Need help with AntActionInstallerListener

    Google Groups | 1 year ago | Oliver Kersten
    java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
  3. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.
  6. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.

  1. Alebey 2 times, last 7 days ago
  2. Unknown User 1 times, last 1 week ago
  3. ivanszkypeter 4 times, last 1 week ago
  4. andyglick 2 times, last 2 weeks ago
  5. stigkj 4 times, last 2 weeks ago
83 more registered users
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

  2. Java RT
    1. Source)
    2. java.lang.ClassLoader.loadClass(Unknown Source)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    4 frames
  3. com.izforge.izpack
    1. com.izforge.izpack.event.AntAction.createLogger(
    2. com.izforge.izpack.event.AntAction.performAction(
    3. com.izforge.izpack.event.AntAction.performInstallAction(
    4. com.izforge.izpack.event.AntActionInstallerListener.performAllActions(
    5. com.izforge.izpack.event.AntActionInstallerListener.beforePack(
    6. com.izforge.izpack.installer.event.InstallerListeners.beforePack(
    7. com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(
    8. com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(
    9 frames
  4. Java RT
    1. Source)
    1 frame