Mantis - Quercus
Viewing Issue Advanced Details
4539 minor always 05-09-11 23:30 05-09-11 23:30
Tom Desmet all  
all  
normal  
new 4.0.14  
open  
none    
none  
0004539: JNDI Lookup doesn't work when using quercus war in jetty webserver (7.4.0)
When using JNDI datasource lookup in PDO under jetty, the datasource is not found.
$pdo = new PDO("java:comp/env/jdbc/someds");
The problem is within class "com.caucho.quercus.lib.db.PDO", method "getJndiDataSource". It seems that the JNDI lookup within jetty requires to only supply "jdbc/someds" instead of the full line. When patching PDO.java to supply only this, everything works fine. Is there any option to resolve this issue structurally. I suspect that following link refers to the same issue, but then linked to glassfish instead of jetty http://www.java.net/node/686319. [^]

There are no notes attached to this issue.