Announcement Announcement Module
Collapse

JavaConfig forum decommissioned in favor of Core Container

As described at

http://static.springsource.org/sprin...fig/README.TXT

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:

http://static.springsource.org/sprin...tml#beans-java

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at

http://forum.springsource.org/forumdisplay.php?f=26
See more
See less
How do I fix this Error? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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
    pplications/mobileclient/OutcomesPlusReportingSuite/WEB-INF/classes/
    Configuration: WEB-INF/classes/ in C:\mobileclient\mobile_client_oc4j\
    j2ee\mobileclient\applications\mobileclient\Outcom esPlusReportingSuite\WEB-INF\c
    lasses

    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
    Hello,

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

    Regards,
    Prasad P. Khandekar

    Comment


    • #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: org.springframework.core.io.Resource
      at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
      Could not find the main class: DemoClient. Program will exit.

      Comment


      • #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.

        Comment

        Working...
        X