Bug 54207 - javaURLContextFactory javadoc refers to defunct package names in initial context properties
javaURLContextFactory javadoc refers to defunct package names in initial cont...
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Documentation
trunk
PC All
: P2 trivial (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-11-26 02:10 UTC by Brett Randall
Modified: 2012-11-26 11:34 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brett Randall 2012-11-26 02:10:22 UTC
Javadoc for org.apache.naming.java.javaURLContextFactory:

/**
 * Context factory for the "java:" namespace.
 * <p>
 * <b>Important note</b> : This factory MUST be associated with the "java" URL
 * prefix, which can be done by either :
 * <ul>
 * <li>Adding a 
 * java.naming.factory.url.pkgs=org.apache.catalina.util.naming property
 * to the JNDI properties file</li>
 * <li>Setting an environment variable named Context.URL_PKG_PREFIXES with 
 * its value including the org.apache.catalina.util.naming package name. 
 * More detail about this can be found in the JNDI documentation : 
 * {@link javax.naming.spi.NamingManager#getURLContext(java.lang.String, java.util.Hashtable)}.</li>
 * </ul>
 * 
 * @author Remy Maucherat
 * @version $Id$
 */

org.apache.catalina.util.naming is a very old package name.  The correct name for both TC6 and TC7 is org.apache.naming .
Comment 1 Mark Thomas 2012-11-26 11:34:39 UTC
Fixed in trunk, 7.0.x and 6.0.x. Will be included in 7.0.34 and 6.0.37.