java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

cayenne-user | D Tim Cummings | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: How to use cayenne-migrations

    cayenne-user | 3 years ago | D Tim Cummings
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  2. 0

    Re: How to use cayenne-migrations

    cayenne-user | 3 years ago | D Tim Cummings
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/commons/logging/LogFactory

      at org.apache.cayenne.configuration.server.DataDomainProvider.<clinit>()
    2. org.apache.cayenne
      DataDomainProvider.<clinit>
      1. org.apache.cayenne.configuration.server.DataDomainProvider.<clinit>(DataDomainProvider.java:62)
      1 frame
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    4. org.apache.cayenne
      MigrationGenerator.main
      1. org.apache.cayenne.di.spi.ConstructorInjectingProvider.get(ConstructorInjectingProvider.java:164)
      2. org.apache.cayenne.di.spi.FieldInjectingProvider.get(FieldInjectingProvider.java:42)
      3. org.apache.cayenne.di.spi.CustomProvidersProvider.get(CustomProvidersProvider.java:38)
      4. org.apache.cayenne.di.spi.FieldInjectingProvider.get(FieldInjectingProvider.java:42)
      5. org.apache.cayenne.di.spi.DefaultScopeProvider.get(DefaultScopeProvider.java:49)
      6. org.apache.cayenne.di.spi.DefaultInjector.getInstance(DefaultInjector.java:103)
      7. org.apache.cayenne.configuration.server.ServerRuntime.getDataDomain(ServerRuntime.java:92)
      8. org.apache.cayenne.migration.MigrationGenerator.generateInitialMigration(MigrationGenerator.java:75)
      9. org.apache.cayenne.migration.MigrationGenerator.main(MigrationGenerator.java:58)
      9 frames