• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using RAD 8 as IDE and WAS 7.

When I am starting my application, I get this error.

Caused by: java.lang.NoClassDefFoundError: org.apache.commons.dbcp.BasicDataSource
at org.quartz.utils.PoolingConnectionProvider.initialize(PoolingConnectionProvider.java:122)
at org.quartz.utils.PoolingConnectionProvider.<init>(PoolingConnectionProvider.java:99)
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:760)
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1152)
at org.quartz.ee.servlet.QuartzInitializerServlet.init(QuartzInitializerServlet.java:157)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)

I have included the latest commons-dbcp-1.4.jar in WEB-INF\lib folder and added to java build path.

I am not sure, why am still getting error.

Any help appreciated!

Regards,
Siva
 
Ranch Hand
Posts: 329
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Siva, Do not know much about your exact problem but it looks like the version of your jar doesn't have the class being looked up. My reference is from here. Try opening the jar file and see if the class file is there in the intended package structure.
 
Sivakumar Subburaman
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Shankar for your reference!

I did verify to make sure that referenced class is available in that jar. I am particularly using commons-dbcp-1.4.jar, since I am using Java 6. As per apache, 1.4 version is developed for Java 6.

I am also understood from my collegue that he does not face this issue. But he is using WAS 6.1 and I am using WAS 7.

Let me know if you require any other info.

Regards,
Siva
 
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic