|
|
I do not know what to do to solve this error. Please help me.
2009-10-30 12:49:13,502 ERROR [org..web.context.ContextLoader] -
Context initialization failed
org..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..jdbc.core.simple.SimpleJdbcDao Support
Dependent class: com.amgen.reportingsuite.dao.jdbc.UserDAOJdbcImpl Loader: mobileclient.web.OutcomesPlusReportingSuite:0.0.1Code-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.
Hello,
I think the spring-jdbc.jar should be in classpath used by the class loader amp; not in the java.library.path.
Regards,
Prasad P. Khandekar
.uclClassLoader$1.run(uclClassLoader.java: 202) at java.security.AccessController.doPrivileged(Native Method) at java.net.uclClassLoader.findClass(uclClassLoader.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.
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. |
|