https://issues.apache.org/bugzilla/show_bug.cgi?id=45332
Summary: Encoding issue - Admin password created by Windows installer Product: Tomcat 6 Version: 6.0.16 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Created an attachment (id=22211) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22211) Original tomcat-users.xml created by the installer ## Symptom: After installing Tomcat the service does not start. The following errors are logged in catalina.x.log: catalina.2008-07-02.log: ---------------------------------- INFO: Initializing Coyote HTTP/1.1 on http-8080 02.07.2008 12:45:10 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 595 ms 02.07.2008 12:45:10 org.apache.naming.NamingContext lookup WARNUNG: Unexpected exception resolving reference com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) [...] 02.07.2008 12:45:10 org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans SCHWERWIEGEND: Exception processing Global JNDI Resources javax.naming.NamingException: Invalid byte 2 of 4-byte UTF-8 sequence. at org.apache.naming.NamingContext.lookup(NamingContext.java:805) at org.apache.naming.NamingContext.lookup(NamingContext.java:140) at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113) [...] 02.07.2008 12:45:10 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 02.07.2008 12:45:10 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 02.07.2008 12:45:10 org.apache.naming.NamingContext lookup WARNUNG: Unexpected exception resolving reference com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) [...] 02.07.2008 12:45:10 org.apache.catalina.realm.UserDatabaseRealm start SCHWERWIEGEND: Exception looking up UserDatabase under key UserDatabase javax.naming.NamingException: Invalid byte 2 of 4-byte UTF-8 sequence. at org.apache.naming.NamingContext.lookup(NamingContext.java:805) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) ... ---------------------------------- ## Cause: The admin password created by the installer is encoded in 8-bit ANSI, probably using Windows codepage, but the file "tomcat-users.xml" is declared as encoded in UTF-8. tomcat-users.xml: ---------------------------------- <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 [...] <tomcat-users> <user name="admin" password="töst" roles="admin,manager" /><!-- <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> --> </tomcat-users> ---------------------------------- The German Umlaut "ö" in this example is a single byte value of F6. If the illegal byte is replaced by an ACSII character such as "o", the service will start. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]