Announcement Announcement Module

JavaConfig forum decommissioned in favor of Core Container

As described at

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at
See more
See less
How do I fix this Error? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I fix this Error?

    I do not know what to do to solve this error. Please help me.

    2009-10-30 12:49:13,502 ERROR [org.springframework.web.context.ContextLoader] -
    Context initialization failed
    org.springframework.beans.factory.CannotLoadBeanCl assException: Error loading class [com.amgen.reportingsuite.dao.jdbc.UserDAOJdbcImpl] for bean with name 'userDAO' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is oracle.classloader.util.AnnotatedNoClassDefFoundEr ror:

    Missing class: org.springframework.jdbc.core.simple.SimpleJdbcDao Support

    Dependent class: com.amgen.reportingsuite.dao.jdbc.UserDAOJdbcImpl
    Loader: mobileclient.web.OutcomesPlusReportingSuite:0.0.1
    Code-Source: /C:/mobileclient/mobile_client_oc4j/j2ee/mobileclient/a
    Configuration: WEB-INF/classes/ in C:\mobileclient\mobile_client_oc4j\
    j2ee\mobileclient\applications\mobileclient\Outcom esPlusReportingSuite\WEB-INF\c

    The missing class is available from the following locations:

    1. Code-Source: /C:/SOFTWARE/Tomcat6/apache-tomcat-6.0.20/lib/spring-jdbc.jar (from system property java.library.path)
    This code-source is available in loader jre.bootstrap:1.5.0_10.

  • #2

    I think the spring-jdbc.jar should be in classpath used by the class loader & not in the java.library.path.

    Prasad P. Khandekar


    • #3
      pls help me i am getting the following error when i am trying to run the application

      Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
      Caused by: java.lang.ClassNotFoundException:
      at$ 202)
      at Method)
      at ava:190)
      at java.lang.ClassLoader.loadClass( 07)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launche
      at java.lang.ClassLoader.loadClass( 48)
      Could not find the main class: DemoClient. Program will exit.


      • #4
        What version of Spring are you using? Try to double check the jar file that you have on your library path. If you have duplicate jar file, delete the duplicate jar and leave one.