org.hibernate.MappingException: Unable to load class declared as <mapping class="org.appfuse.model.User"/> in the configuration:

AppFuse JIRA | Tobias Vogel | 10 years ago
  1. 0

    I started with a "vanilla" AppFuse 2.0-M5 (Spring-MVC modular), where "mvn site" works as expected. I then checked out the core classes as described in the Wiki (http://appfuse.org/display/APF/AppFuse+Core+Classes) and left them unchanged. After that I ran the following commands on the root pom in this order: mvn clean mvn install mvn site mvn site -Dmaven.test.skip=true Both of the site tasks failed with the same error message quoted below: --- SNIP --- [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to load class declared as <mapping class="org.appfuse.model.User"/> in the configuration: [INFO] ------------------------------------------------------------------------ [INFO] Trace org.hibernate.MappingException: Unable to load class declared as <mapping class="org.appfuse.model.User"/> in the configuration: at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545) [...] Caused by: java.lang.ClassNotFoundException: org.appfuse.model.User at java.net.URLClassLoader$1.run(URLClassLoader.java:200) [...] --- SNAP --- Seems like there's something missing in the maven.test.classpath. ------------------------------------------------------------- Workaround by Matt: Adding <skip>${maven.test.skip}</skip> to the "componentProperties" section of the hibernate3 plugin, allows the 2nd command to work.

    AppFuse JIRA | 10 years ago | Tobias Vogel
    org.hibernate.MappingException: Unable to load class declared as <mapping class="org.appfuse.model.User"/> in the configuration:
  2. 0

    Java Sockets can't run invocation command

    Stack Overflow | 2 years ago | Ryan Sisson
    java.lang.ClassNotFoundException: TrimServer
  3. 0

    WatchService watch specfic directory for creation of files

    Stack Overflow | 5 years ago | Sushant
    java.lang.ClassNotFoundException: java.nio.file.Paths
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Running test from Maven fails and stops building the jar

    Stack Overflow | 6 years ago | user398920
    java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
  6. 0

    Groovy Web Service (Geertjan's Blog)

    oracle.com | 8 months ago
    org.apache.cxf.service.factory.ServiceConstructionException

  1. davidvanlaatum 1 times, last 6 months ago
  2. Bugger 1 times, last 7 months ago
10 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

    org.appfuse.model.User

    at java.net.URLClassLoader$1.run()
  2. Java RT
    URLClassLoader$1.run
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:200)[...]
    1 frame