ASF Bugzilla – Attachment 36128 Details for
Bug 62670
driverManagerProtection in JreMemoryLeakPreventionListener results in java.sql.SQLException: No suitable driver found
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
index.jsp file - can be dropped in any example webapps
file_62670.txt (text/plain), 519 bytes, created by
Padmanarayanan
on 2018-09-02 03:15:51 UTC
(
hide
)
Description:
index.jsp file - can be dropped in any example webapps
Filename:
MIME Type:
Creator:
Padmanarayanan
Created:
2018-09-02 03:15:51 UTC
Size:
519 bytes
patch
obsolete
><%@page import="java.sql.*"%> > ><html> > <head> > <title>Tomcat Example</title> > </head> > <body> ><% > Connection con = null; > try { > //Class.forName("org.postgresql.Driver"); > con = DriverManager.getConnection("jdbc:postgresql://localhost:5432/postgres", "postgres", "postgres"); > } finally { > if(con != null) { > con.close(); > } > } >%> > <h1>If you see this in browser, DB Connection could be established</h1> ></body> ></html>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 62670
: 36128