Thank you for clarifying, the XML was not well formed

On Thu, Oct 2, 2014 at 3:50 PM, André Warnier <a...@ice-sa.com> wrote:

> Gibran Castillo wrote:
>
>> Tomcat did not like the double quotes use by TextEdit.app so I use the
>> ones
>> that were in the commented out section of tomcat-users.xml  I was able to
>> authenticate
>>
>
> Oh my..
> It is not Tomcat which does not like your quotes, it is XML.
> These quotes are not valid characters to delimit attribute values *in XML*.
> You will have the same problem with any XML file that you edit with that
> editor : you will generate XML that is "not well formed" and thus invalid.
> And that will crash any program which reads your XML files.
> Use another editor, this one is not suitable for editing XML files.
>
>
>> On Thu, Oct 2, 2014 at 2:24 PM, Konstantin Kolinko <
>> knst.koli...@gmail.com>
>> wrote:
>>
>>  2014-10-02 22:16 GMT+04:00 Gibran Castillo <gibran.e.casti...@gmail.com
>>> >:
>>>
>>>> I installed Tomcat 8.0.12 in my MacBook OS X 10.9.5
>>>>  here /Library/Tomcat/Home.  Home is a symbolic link that will always
>>>>
>>> point
>>>
>>>> to the current version Tomcat directory, in this case
>>>> /Library/Tomcat/apache-tomcat-8.0.12
>>>>
>>>> In the /Library/Tomcat/Home/conf/tomcat-users.xml file I added the
>>>> following:
>>>>   <role rolename="manager-gui"/>
>>>>   <user username=“admin” password="password” roles="manager-gui”/>
>>>>
>>>> When I start tomcat with the out of the box setup everything looks good
>>>> except that is throwing an exception regarding <user
>>>> *username=“admin”*   (...)
>>>>
>>> The quote character before "a" in "admin" is not the straight quote
>>> character expected in XML files,  but left quote character ( ` `) as
>>> inserted by text processors...
>>>
>>>
>>>
>>>  *02-Oct-2014 12:19:44.726 SEVERE [main]
>>>> org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error
>>>> at
>>>> line 37 column 18: Open quote is expected for attribute "{1}" associated
>>>> with an  element type  "username".*
>>>>
>>>> * org.xml.sax.SAXParseException; lineNumber: 37; columnNumber: 18; Open
>>>> quote is expected for attribute "{1}" associated with an  element type
>>>> "username".*
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 


Thank you,
 *Gibran E Castillo*
*iOS 7:  434.713.8095*

Reply via email to