https://issues.apache.org/bugzilla/show_bug.cgi?id=50326

--- Comment #3 from Nils Hildebrand <nils.hildebr...@bamf.bund.de> 2010-11-24 
08:35:13 EST ---
(In reply to comment #1)
> (In reply to comment #0)
> > DBCP 1.4 binaries should be used by applications running under JDK 1.6.
> > DBCP 1.3 should be used when running under JDK 1.4 or 1.5."
> > 
> > Now Tomcat should run with jdk 1.5 and jdk 1.6 (and worked fine with the 
> > dbcp
> > 1.2.x as it seems). This seems to be a bug here.
> [...]

> That is simply not possible. Hence why there is DBCP 1.3 and DBCP 1.4.
> 
> > Else the statement that 5.5 runs with jdk 1.5 or higher is no longer true.
> 
> The statement that 5.5 runs on a 1.4 or higher jre is perfectly true. There is
> nothing stopping DBCP 1.2 or 1.3 running on Java 6. However, JDBC 4 features
> will not be available and any attempt to use them will result in an exception.

Why did it work then with DBCP 1.2 and not DBCP 1.3?
Yes - this might be a DBCP 1.3 bug (as you hinted).

> > I could not test our current application with Tomcat 5.5.31 and jdk 1.5 
> > since
> > it is compiled now against jdk 1.6 and won't work with jdk 1.5 any longer.
> 
> That shouldn't stop you testing it with 5.5.31 running on a 1.6 jre.

That's what I did first - and got the error.

> I suspect you have hit either a DBCP bug or a hibernate bug around the
> relationship between physical and pooled connections and what is exposed via
> prepared statement objects.

Propably a DBCP 1.3. bug - the prepared-statement was there with dbcp 1.2, too
- and there is no bug with 5.5.29.

> The Commons users list is probably the best place
> to get help debugging this. It certainly isn't a Tomcat bug.

Not directly - but somehow this is related to 5.5. > 29, so Tomcat needs
feedback when this is resolved.

I will try to track this down...

Why not include DBCP 1.3 and DBCP 1.4 with Tomcat 5.5?

The next comment hinted that one could do that and change the
factory-setting...

-- 
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to