File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JDBC resourceRef wrong on Tomcat 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "JDBC resourceRef wrong on Tomcat 6" Watch "JDBC resourceRef wrong on Tomcat 6" New topic
Author

JDBC resourceRef wrong on Tomcat 6

Steve Nelligan
Greenhorn

Joined: Nov 09, 2010
Posts: 10


When I list the environment Object the following is the list of objects I get.

I believe that all of them should be org.apache.tomcat.dbcp.dbcp.BasicDataSource

Each was declared the same except the fsSql uses a Microsoft Driver and jTDS using a jtds driver for MS-SQL.

I added "factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" to the context file, but this did not help.

Any ideas why the SQL connections are being created differently?



Thanks in advance.

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


I believe that all of them should be org.apache.tomcat.dbcp.dbcp.BasicDataSource

Why do you believe this? I would guess jTDS doesn't use DBCP.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Steve Nelligan
Greenhorn

Joined: Nov 09, 2010
Posts: 10


I am trying to setup Tomcat to use JNDI for dataConnections.

I have Oracle working, but can not get SQL working. What I was looking for was differences between the Oracle and SQL connections.

I can't figure out why Oracle would work, but not SQL.

This is the error I am getting on the screen when trying to connect to a SQL Server:


Error Log:

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JDBC resourceRef wrong on Tomcat 6
 
Similar Threads
Hibernate to connect to MS SQL
Update query
Class.forName in depth
JDBC-ODBC
Using a Datasource to connect to database