Does anybody here use psi-probe for monitoring the Tomcat? I just wanna know what changed in JNDI implemention of Tomcat. Where is the request in the bugzilla?
Chris, global datasources (java:/name) and application datasources (java:/comp/env/name) are differents in probe. Application datasources are working very well in any version of Tomcat. Only the psi-probe cannot find global datasources to show in the datasources.html. Please read the issue: https://code.google.com/p/psi-probe/issues/detail?id=411 Thanks. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Robert, On 9/3/14 11:36 AM, Robert Anderson wrote: > In a privileged context, a have the following jsp to test a global > jndi resource: > > <%@ page session="false" > import="java.util.*,java.sql.*,javax.naming.*, > javax.sql.*,org.apache.commons.dbcp.*" contentType="text/html" %> > <%! > > protected void doLookup(JspWriter out) throws ServletException, > IOException { Context ctx; try { ctx = new InitialContext(); Object > o = ctx.lookup("java:jdbc/cacheapp"); All of the JNDI resources I've ever used have the name format like this: java:/comp/env/jdbc/cacheapp Could the problem be that simple? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUB5EgAAoJEBzwKT+lPKRYsBMP/3lZJQvzshDraT+1ZzzoEK3I s4QIGxew7m/9iquIqf1+SopPqG1aXMlNWhtG21iP6vYjx8jiZrsxL4TXCp8euoKY ADF76yXrEO3A6WotAUPwQVAZKiXuS8QNv4XATzaEuf/RRPfJB8CDV4HDgX1b5e/9 Q/CAU/Z1+2yUTkVnBzKmdjtVbSlINU+V/rvzJswlW8Z7dBKMGMaBAFh+TQiW70u4 zYK3Oix2cWBV04iCJkmRpf0pPGu++UReZGWsfJ54wkkqSwYQmHPnTuwtcQDSGd06 MCQalbx4kilJqz8ISqyjG5++DINKbG/7EpnD85mDdl9g7YwguxlJKAIZ5A96CkTn czjIhOytJ7JG2RLzAQ71JciXbI6QNePC9/BtVWLLILovCNMuPf+ij4CDfK5hEgBb r0gIuJUI290qUFcIOoYAQPYRvFWapr0tRRD0O+IMqRK65z8uNWqLiYokyM/46Xd/ vWqIhsT7MLed1cJy+akYft85PX1OEq2UnBXkf9UY07q4ytWCaM9+Ll68TgJWH9QX 7aTe2enhwqptvs0+JgO8x1xUI7D8aE67PeH69SsHnIYxniRVP+9YS5kpCyimBN15 BEzOo/TpOkti1m2epMPJcOf3IlhglcTQKgHLHDb6SkfF2J9nhJM8gu88sJ/xxWlB fep/qWNNtYJplVip82Hz =P63B -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org