This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes [JDBCExceptionReporter] No suitable driver found for jdbc:db2:/ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "[JDBCExceptionReporter] No suitable driver found for jdbc:db2:/" Watch "[JDBCExceptionReporter] No suitable driver found for jdbc:db2:/" New topic
Author

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

Taran Preet Singh Sodhi
Greenhorn

Joined: Nov 07, 2007
Posts: 3
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
Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
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!
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [JDBCExceptionReporter] No suitable driver found for jdbc:db2:/