Results 1 to 4 of 4

Thread: How do I fix this Error?

  1. #1
    Join Date
    Aug 2008
    Posts
    6

    Default 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. #2
    Join Date
    Jul 2009
    Location
    PUNE
    Posts
    43

    Default

    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

  3. #3
    Join Date
    Aug 2010
    Posts
    1

    Default

    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.

  4. #4
    Join Date
    Mar 2009
    Location
    NY
    Posts
    7

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •