tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51756] Tomcat JDBC Pool does not work with Sybase
Date Fri, 02 Sep 2011 17:18:44 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51756

--- Comment #1 from Filip Hanik <fhanik@apache.org> 2011-09-02 17:18:44 UTC ---
what's the value of 'driverURL'? most likely this one is not correct. there is
nothing magic calling Driver.connect, if this call is failing. could be a
version thing on the URL itself.

Connect SQL 7.0
jdbc:jtds:sqlserver://ServerAddress/DBName;instance=;TDS=5.0
Connect SQL 6.5
jdbc:jtds:sqlserver://ServerAddress/DBName;instance=;TDS=4.2 

what I would like for you to do is in plain Java

Properties p = new Properties();
p.put("user",username);
p.put("password", password);
Driver driver =
(Driver)Class.forName("net.sourceforge.jtds.jdbc.Driver").newInstance();
driver.connect(driverUrl, p);

It should yield the exact same error if you don't change any of the variables.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message