You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/11/19 02:20:03 UTC

DO NOT REPLY [Bug 14663] New: - Tomcat5 server hangs when trying to get the database connection

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14663>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14663

Tomcat5 server hangs when trying to get the database connection 

           Summary: Tomcat5 server hangs when trying to get the database
                    connection
           Product: Commons
           Version: 1.0 Beta 1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Dbcp
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jian.cai@sun.com


Tomcat5 server hangs when trying to get the database connection with Pointbase 
4.2. 

>From pointbase server, it seems the connection has been made. But the container 
hangs and gives no response during getConnection() while the system is kept 
busy.

The datasource was looked up successfully by:

datasource = (DataSource) ic.lookup(JNDINames.WORKFLOW_DATASOURCE);

But container hangs when web applicaiton calls:

dbConnection = datasource.getConnection();

The same code and config worked on Tomcat 4.0 with no problem.


------- Additional Comments From Bob Herrmann 2002-09-13 16:37 -------

Ok, that sounds weird... I would imagine a class loader issue.

How do I set this up?  Download from pointbase.com?  install DB?  Create users? 



------- Additional Comments From Chris Marks 2002-11-05 21:42 -------

I don't know how you are coming along with the fix of this one, but I can 
supply a little more information...
This is also apparent in Tomcat 4 and only affects Windows installs.  I have 
tried tomcat 4.1.12 with a Win2k machine trying to connect to a Cloudscape db 
as well as an Oracle db.  I have also tried tomcat 4.1.12 on WinXP connecting 
to MySQL and MS SQL Server.  Both installs hung when trying to get a 
connection.  The code I used is nearly identical to that referenced in 'JDBC 
DataSource HOW-TO'. Finally, I installed tomcat 4.1.12 on Mandrake and the 
exact code I ran on the WinXP machine succeeded, giving me a connection to the 
MySQL and MS SQL Server db's.  I could not try the Oracle db because it is at 
another company.
Hope this helps a little.
Thanks,
Chris Marks


------- Additional Comments From Remy Maucherat 2002-11-15 13:53 -------

This cannot be a bug in Tomcat. Doing a thread dump should confirm this. You
might want to file a bug against commons-dbcp (with at least some stack
information added).

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>