-
Oct 30th, 2009, 12:10 PM
#1
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.
-
Oct 30th, 2009, 03:47 PM
#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
-
Aug 23rd, 2010, 05:38 PM
#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.
-
Aug 24th, 2010, 10:08 AM
#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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules