• 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

JDBC resourceRef wrong on Tomcat 6

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


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.

 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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.
 
Steve Nelligan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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:

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic