You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/03/25 06:41:56 UTC
DO NOT REPLY [Bug 46908] New: tomcat-users.xml has invalid encoding
"cp1252" when using endorsed library xercesImpl.jar
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: apache@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46908] tomcat-users.xml has invalid encoding
"cp1252" when using endorsed library xercesImpl.jar
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46908
--- Comment #2 from Mark Thomas <ma...@apache.org> 2009-03-25 10:55:47 PST ---
A fix has been made in trunk and proposed for 6.0.x.
I took a different approach (which will only work with xerces) that tries to
configure the xml parser to support the java encoding names.
--
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46908] tomcat-users.xml has invalid encoding
"cp1252" when using endorsed library xercesImpl.jar
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46908
--- Comment #1 from Mark Thomas <ma...@apache.org> 2009-03-25 10:03:56 PST ---
The change to cp1252 is as a result of bug 45332.
When you use xerces via the endorsed mechanism, the feature
http://apache.org/xml/features/allow-java-encodings is false so cp1252 isn't
recognised.
I'll look at using the IANA names.
--
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46908] tomcat-users.xml has invalid encoding
"cp1252" when using endorsed library xercesImpl.jar
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46908
Stuart <ap...@stuartr.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |apache@stuartr.net
--
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 46908] tomcat-users.xml has invalid encoding
"cp1252" when using endorsed library xercesImpl.jar
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46908
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Mark Thomas <ma...@apache.org> 2009-05-22 08:00:07 PST ---
This has been fixed in 6.0.x and will be included in 6.0.21 onwards.
--
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org