java.lang.NoClassDefFoundError: javax/persistence/PersistenceException

Spring JIRA | Mirko Zeibig | 8 years ago
  1. 0

    I am unable to deploy a simple project without persistence. * Create a new project: roo> create project -projectName simpleroo -topLevelPackage test * Build it with Maven: mvn package * Deploy it in Tomcat. This will result in an exception: SCHWERWIEGEND: Exception starting filter Spring OpenEntityManagerInViewFilter java.lang.NoClassDefFoundError: javax/persistence/PersistenceException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.ClassNotFoundException: javax.persistence.PersistenceException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 32 more

    Spring JIRA | 8 years ago | Mirko Zeibig
    java.lang.NoClassDefFoundError: javax/persistence/PersistenceException
  2. 0

    I am unable to deploy a simple project without persistence. * Create a new project: roo> create project -projectName simpleroo -topLevelPackage test * Build it with Maven: mvn package * Deploy it in Tomcat. This will result in an exception: SCHWERWIEGEND: Exception starting filter Spring OpenEntityManagerInViewFilter java.lang.NoClassDefFoundError: javax/persistence/PersistenceException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.ClassNotFoundException: javax.persistence.PersistenceException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 32 more

    Spring JIRA | 8 years ago | Mirko Zeibig
    java.lang.NoClassDefFoundError: javax/persistence/PersistenceException
  3. 0

    I can't get FTP to work using Spring Integration

    Stack Overflow | 4 years ago | Taoufik Mohdit
    java.lang.NoClassDefFoundError: com/xxxx/bbb/application/core/exception/unchecked/InvalidFormatException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why am I getting this NoClassDefFoundError?

    Stack Overflow | 2 years ago | conorgriffin
    java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextException
  6. 0

    Error configuring application listener of class org.springframework.web.context. - 天涯海角任我逍遥 - ITeye技术网站

    iteye.com | 6 months ago
    java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext

  1. treefolk 1 times, last 2 weeks ago
  2. Tahir 2 times, last 2 months ago
  3. Piz 2027 times, last 4 months ago
  4. jedcua 1 times, last 4 months ago
  5. esaar 3 times, last 4 months ago
5 more registered users
90 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

    javax.persistence.PersistenceException

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    2 frames
  3. Java RT
    Class.newInstance
    1. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    2. java.lang.Class.getDeclaredConstructors0(Native Method)
    3. java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    4. java.lang.Class.getConstructor0(Class.java:2699)
    5. java.lang.Class.newInstance0(Class.java:326)
    6. java.lang.Class.newInstance(Class.java:308)
    6 frames
  4. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
    2. org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
    3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
    4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
    5. org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
    6. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    7. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    8. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    9. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
    10. org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
    11. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
    12. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
    13. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    14. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    15. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    16. org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    17. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    18. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    19. org.apache.catalina.core.StandardService.start(StandardService.java:516)
    20. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    21. org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    21 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  6. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    2 frames