commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14663] New: - Tomcat5 server hangs when trying to get the database connection
Date Tue, 19 Nov 2002 01:20:03 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message