• 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

[JDBCExceptionReporter] No suitable driver found for jdbc:db2:/

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have a webservice which am running under jboss. The webservice is communicating with DB2. When I put the DB2 driver jars on the run configuration of JBoss run in eclipse they are available to my webservice.
I need to put the jars under the lib folder of my application which I keep onto my classpath and when I run the webservice on JBoss ,gives me the following exception.
I can these jars see being copied as part of war

18:11:12,811 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 08001
18:11:12,811 ERROR [JDBCExceptionReporter] No suitable driver found for jdbc:db2://xxxxxx:xxxx/xxxx
18:11:12,811 INFO [STDOUT] Cannot open connection
18:11:12,811 ERROR [STDERR] java.lang.NullPointerException
18:11:12,811 ERROR [STDERR] at com.nomura.fir.credit.dao.CreditDaoImpl.getAllCrdRefEntity(Unknown Source)
18:11:12,811 ERROR [STDERR] at com.nomura.cache.CacheServiceImpl.loadOnStatup(CacheServiceImpl.java:93)
18:11:12,811 ERROR [STDERR] at com.nomura.cache.CacheServiceImpl.<init>(CacheServiceImpl.java:46)

Any pointers are highly appreciated
 
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using a JBoss datasource in your application, perhaps it would be better to place the driver jars in the classpath of the JBOSS server. Some directory probably named lib or ext should be available for you to provide additional jars to the Jboss classpath.

I would try that!
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please change your name to align to the naming policy. A valid first and last name are required.

Your driver is not present in the classpath. Add it to the classpath to solve the problem
 
reply
    Bookmark Topic Watch Topic
  • New Topic