DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5026>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5026 INITIAL_CONTEXT_FACTORY can not be defined in properties Summary: INITIAL_CONTEXT_FACTORY can not be defined in properties Product: Tomcat 4 Version: 4.0.1 Final Platform: All OS/Version: All Status: NEW Severity: Major Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The INITIAL_CONTEXT_FACTORY is not defined from the properties file due to a missing "else". Consequence is, that it must be hard defined in the source code, which is not always an option. Here is a patch: *** catalina/src/share/org/apache/naming/NamingService.java~ Tue Nov 20 12:19:24 2001 --- catalina/src/share/org/apache/naming/NamingService.java Thu Nov 22 10:09:53 2001 *************** *** 196,202 **** oldValue = System.getProperty(Context.INITIAL_CONTEXT_FACTORY); if (oldValue != null) { oldIcValue = oldValue; ! } System.setProperty(Context.INITIAL_CONTEXT_FACTORY, Constants.Package + ".java.javaURLContextFactory"); --- 196,202 ---- oldValue = System.getProperty(Context.INITIAL_CONTEXT_FACTORY); if (oldValue != null) { oldIcValue = oldValue; ! } else { System.setProperty(Context.INITIAL_CONTEXT_FACTORY, Constants.Package + ".java.javaURLContextFactory"); -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>