ClassUtils.resolveClassName() has thrown an IllegalArgumentException

java.lang.ClassNotFoundException
Javadoc
Thrown when an application tries to load in a class through its string name using:
  • The forName method in class Class.
  • The findSystemClass method in class ClassLoader .
  • The loadClass method in class ClassLoader.

but no definition for the class with the specified name could be found.

As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "optional exception that was raised while loading the class" that may be provided at construction time and accessed via the {@link #getException()} method is now known as the cause, and may be accessed via the {@link Throwable#getCause()} method, as well as the aforementioned "legacy method." @author unascribed @see java.lang.Class#forName(java.lang.String) @see java.lang.ClassLoader#findSystemClass(java.lang.String) @see java.lang.ClassLoader#loadClass(java.lang.String, boolean) @since JDK1.0

at org.apache.catalina.loader.WebappClassLoader.loadClass
at org.apache.catalina.loader.WebappClassLoader.loadClass
at org.springframework.util.ClassUtils.forName
(source)
at org.springframework.util.ClassUtils.resolveClassName
(source)
java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.util.ClassUtils.resolveClassName
(source)
4 frames hidden

Typical Exception Messages

  1. Cannot find class [org.hibernate.cfg.AnnotationConfiguration]
  2. Cannot find class [com.contactmanager.dao.Contact]
  3. Cannot find class [com.anand.model.Employee]
  4. Cannot find class [org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder]
  5. Cannot find class [test.granite.spring.entity.AbstractEntity]
  6. Cannot find class [javax.portlet.PortletMode]

Origin

ClassUtils.resolveClassName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
3 frames hidden
org.springframework.util.ClassUtils.resolveClassName
8Web pages

Similar

Specific cases

External results for this pattern (7)

  1. Unknown authorvia nabble.com3 months ago
    Cannot find class [javax.portlet.PortletMode]
    Show stack trace
  2. Nileshvia Stack Overflow3 months ago
    Cannot find class [com.contactmanager.dao.Contact]
    Show stack trace
  3. Unknown authorvia yahoo.com4 months ago
    Cannot find class [test.granite.spring.entity.AbstractEntity]
    Show stack trace
  4. Malcolm Wong Hovia continuum-users4 months ago
    Cannot find class [org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder]
    Show stack trace
  5. Cannot find class [com.anand.model.Employee]
    Show stack trace
  6. HectorM Riveravia Coderanch1 year ago
    Cannot find class [org.hibernate.cfg.AnnotationConfiguration]
    Show stack trace
  7. Unknown authorvia coderanch.com2 years ago
    Cannot find class [org.hibernate.cfg.AnnotationConfiguration]
    Show stack trace