java.lang.NoClassDefFoundError

org/apache/commons/lang3/text/StrLookup

Samebug tips9

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.

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19260

  • via gump-general by gump@vmgump.apache.org, 1 year ago
    org/apache/commons/lang3/text/StrLookup
  • via gump-general by gump@vmgump.apache.org, 1 year ago
    org/apache/commons/lang3/text/StrLookup
  • via gump-general by gump@vmgump.apache.org, 9 months ago
    org/apache/commons/lang3/text/StrLookup
  • Stack trace

    • java.lang.NoClassDefFoundError: org/apache/commons/lang3/text/StrLookup at org.apache.commons.configuration.interpol.SystemPropertiesLookup.<init>(SystemPropertiesLookup.java:48) at org.apache.commons.configuration.interpol.DefaultLookups.<clinit>(DefaultLookups.java:41) at org.apache.commons.configuration.AbstractConfiguration.installDefaultInterpolator(AbstractConfiguration.java:436) at org.apache.commons.configuration.AbstractConfiguration.<init>(AbstractConfiguration.java:161) at org.apache.commons.configuration.BaseConfiguration.<init>(BaseConfiguration.java:50) at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:135) at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:239) at org.apache.torque.mojo.OMMojo.getMojoContextProperties(OMMojo.java:546) at org.apache.torque.mojo.TexenTaskMojo.generateContextProperties(TexenTaskMojo.java:293) at org.apache.torque.mojo.TexenTaskMojo.execute(TexenTaskMojo.java:365) at org.apache.torque.mojo.DataModelTaskMojo.execute(DataModelTaskMojo.java:347) at org.apache.torque.mojo.OMMojo.execute(OMMojo.java:477) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.text.StrLookup at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 31 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2376 more bugmates