You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike <ca...@canam.com> on 2008/05/29 21:05:02 UTC

Tomcat 5.5 and Database Connection Pooling

Hello,

 

            When I clean out the work directory, it doesn't show the
serializable error message.  However, the second time I run it, it does show
it.  

I was able to have the JDBC-ODBC Bridge work in Tomcat 4.1, so why shouldn't
it work with 5.5?

 

Mike

 

 

 


Re: Tomcat 5.5 and Database Connection Pooling

Posted by Martin <mg...@hotmail.com>.
Hi Mike-

TC 4.1 uses JDK 1.4 so check the signature of the JDBC-ODBC Bridge e.g.
javap JDBCODBC.class

TC 5.5 of course uses JDK 1.5 which wont work the old JDK1.4 unless you load 
in the 1.4 compat package
http://tomcat.apache.org/download-55.cgi

intersolv is no more since DataDirect bought them out
and I could'nt find JDBC-ODBC drivers anywhere from DataDirect.com
http://www.datadirect.com/developer/jdbc/basics/index.ssp

Will your DB allow you to go in with a straight JDBC driver?

Anyone else?
Martin
----- Original Message ----- 
From: "Mike" <ca...@canam.com>
To: <us...@tomcat.apache.org>
Sent: Thursday, May 29, 2008 3:05 PM
Subject: Tomcat 5.5 and Database Connection Pooling


> Hello,
>
>
>
>            When I clean out the work directory, it doesn't show the
> serializable error message.  However, the second time I run it, it does 
> show
> it.
>
> I was able to have the JDBC-ODBC Bridge work in Tomcat 4.1, so why 
> shouldn't
> it work with 5.5?
>
>
>
> Mike
>
>
>
>
>
>
>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5 and Database Connection Pooling

Posted by Mark Thomas <ma...@apache.org>.
Mike wrote:
> Hello,
> 
>  
> 
>             When I clean out the work directory, it doesn't show the
> serializable error message.  However, the second time I run it, it does show
> it.  
> 
> I was able to have the JDBC-ODBC Bridge work in Tomcat 4.1, so why shouldn't
> it work with 5.5?

You are trying to serialize a class that isn't serializeable. Added to 
that, I can see no good reason to keep the InitialContext in the session.

Stop adding the InitialContext to the session and the error will stop.

If you tried doing this in 4.1 you would see a similar error.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org