Error in example

9 views
Skip to first unread message

deepjavero

unread,
Aug 29, 2010, 5:08:37 PM8/29/10
to vogella
I run the example un the http://www.vogella.de/articles/SpringJDBC/article.html

but when I launch the program sendeme the next error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
commons/logging/LogFactory
at
org.springframework.jdbc.datasource.AbstractDataSource.<init>(AbstractDataSource.java:
43)
at
org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.<init>(AbstractDriverBasedDataSource.java:
34)
at
org.springframework.jdbc.datasource.DriverManagerDataSource.<init>(DriverManagerDataSource.java:
71)
at pruebas.spring.PruebasSpringDao.main(PruebasSpringDao.java:
22)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:
229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 4 more
Java Result: 1

A suppose the iti for teh driver, but a connect with netbeans IDE a
its working the driver

¿Can your help me?

Best Regards

vogella

unread,
Sep 4, 2010, 5:02:51 AM9/4/10
to vogella
From your stacktrace it looks like you changed the example. I suggest
to try the example the way I described it to see if it i working.

On 29 Aug., 23:08, deepjavero <eavi...@gmail.com> wrote:
> I run the example un thehttp://www.vogella.de/articles/SpringJDBC/article.html
Reply all
Reply to author
Forward
0 new messages