https://issues.apache.org/bugzilla/show_bug.cgi?id=46908
Summary: tomcat-users.xml has invalid encoding "cp1252" when using endorsed library xercesImpl.jar Product: Tomcat 6 Version: 6.0.18 Platform: PC OS/Version: Windows Vista Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: dev@tomcat.apache.org ReportedBy: apa...@stuartr.net tomcat-users.xml has invalid encoding "cp1252" when using endorsed library xercesImpl.jar when tomcat is run for the first time. (in tomcat.6.0.16 the default encoding for the file was utf-8... now for tomcat.6.0.18 it is cp1252) We have an installation process for our software which: 1. Installs our software 2. Fires up the windows installation for tomcat.6.0.18 3. configures the endorsed java options by modifying the registry setting for tomcat (ie -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 6.0\endorsed) 4. copies the endorsed jar files to the endorsed directory 5. deploys our application's war file to the webapps directory. 6. attempts to start tomcat The generated exception is: INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Mar 25, 2009 4:06:37 PM org.apache.tomcat.util.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 40: Invalid encoding name "cp1252". org.xml.sax.SAXParseException: Invalid encoding name "cp1252". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ... My workaround for this problem is to deploy a copy of tomcat-users.xml file with the encoding set to "utf-8" to the conf directory before tomcat is attempted to be started. (ie between steps 5 and 6 above). Once tomcat is started, this file is overwritten anyway. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org