tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38337] - GlobalNamingResource will not allow commercial DataSource drivers
Date Mon, 23 Jan 2006 23:01:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38337>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38337





------- Additional Comments From gdoret@gmail.com  2006-01-24 00:01 -------
It's not sure. The SQLNestedException is a subclass containing another
Throwable. That other throwable is perhaps a NullPointerException if they don't
throw explicitely an Exception during the DataSource intialization.

try {
    InitialContext ctx = new InitialContext();
    ds = (DataSource)ctx.lookup("java:comp/env/jdbc/MySQL");
} catch(NamingException e) {
    // The next line is frequently forgotten.
    throw new ServletException(e);
}
To be sure it's a true bug, we need the complete stack trace.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message