-----Original Message----- From: Mark Eggers [mailto:its_toas...@yahoo.com] Sent: Monday, March 24, 2014 4:34 PM To: Tomcat Users List Subject: Re: tomcat 7 Manager access
Please don't top-post. On 3/24/2014 1:19 PM, Berg, James wrote: > I posted my entire tomcat-users.xml. I took out all of the comments > to try to avoid the error. :-) Jim Did you edit your server.xml file? However I imagine this error in server.xml would trigger other issues . . . Start with a fresh copy of Tomcat 7.0.52, and insert your users. Make no other changes. Run Tomcat. Post the log (catalina.out) in the body of your message if you have an error. /mde/ > > -----Original Message----- From: Mark Eggers > [mailto:its_toas...@yahoo.com] Sent: Monday, March 24, 2014 4:17 PM > To: Tomcat Users List Subject: Re: tomcat 7 Manager access > > On 3/24/2014 12:30 PM, Berg, James wrote: >> >> When I try to navigate to the any of the Manager links from the first >> page, I get a login popup. I have tried all of the usernames in the >> tomcat-users.xml and all I get back is a fresh login popup. >> It looks like there is a bug in the >> org.apache.tomcat.util.digester.Digester for 7.0.52 which is stopping >> the Memory User Database Realm from loading. Before I unjar the >> tomcat-util.jar file. Is there something that I am doing wrong? >> Thanks in advance, Jim >> >> Tomcat 7.0.52 port 8181. >> >> Java 7 u51 >> >> Tomcat-users.xml >> >> <?xml version='1.0' encoding='utf-16'?> <tomcat-users> <role >> rolename="tomcat"/> <role rolename="manager-gui"/> <role >> rolename="manager-script"/> <role rolename="manager-status"/> <role >> rolename="manager-jmx"/> <user username="tcmanagerg" >> password="tomcat" roles="tomcat,manager-gui"/> <user >> username="tcmanagersc" password="tomcat" >> roles="tomcat,manager-script"/> <user username="tcmanagerst" >> password="tomcat" roles="tomcat,manager-status"/> <user >> username="tcmanagerj" password="tomcat" >> roles="tomcat,manager-jmx"/> <user username="tomcat" >> password="tomcat" roles="tomcat"/> </tomcat-users> >> >> Catalina log messages about errors: >> >> Multiple instances of this: >> >> Mar 24, 2014 1:35:21 PM org.apache.tomcat.util.digester.Digester >> fatalError SEVERE: Parse Fatal Error at line 28 column 3: The string >> "--" is not permitted within comments. >> org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 3; The >> string "--" is not permitted within comments. >> >> Finally get this: >> >> SEVERE: Failed to start >> "org.apache.catalina.realm.UserDatabaseRealm/1.0" realm >> org.apache.catalina.LifecycleException: Failed to start component >> [Realm[UserDatabaseRealm]] >> > > Well since your posted file is not 28 lines long, then I'm guessing > that this is not your entire tomcat-users.xml file. > > What is on line 28 of the file? > > The message seems to be pretty clear. You have a '--' string in your > XML comments that the parser is objecting to. > > I have no such issues with Tomcat 7.0.52 / JRE 1.7.0_52 / Fedora 20. > > . . . just my two cents. /mde/ Sorry about the top post :-( There were no comments in the tomcat-users.xml file. I had posted the entire file. I took your suggestion and also made the user names a little shorter and the manager app is working now. I must have had a bad comment in the server.xml file. Thanks for your help. Jim --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org ----------------------------------------- This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it fromyour system. Any other use of this e-mail is prohibited. Thank you for your compliance. ----------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org