Ah sorry I dont know why I didn't look at the logs. Thank you for helping On Thu, Apr 5, 2018, 3:55 PM Mark Thomas <ma...@apache.org> wrote:
> On 05/04/18 20:46, Mark Thomas wrote: > > <snip/> > > > Looking. > > > > You need to remove conf/Catalina/localhost/context.xml > > It would help if everything under work was world writeable as well. > > It is fixed but I can't start tomcat properly as the temp user due to > file permissions. > > Tomcat is currently stopped. You may need to do the following > > cd /opt/tomcat > rm -rf work/* > rm -rf conf/Catalina/localhost/* > > I'm guessing you didn't look at the logs. All the information you needed > was there. The very first exception was: > > org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error at > line 1 column 36: Element type "xml" must be followed by either > attribute specifications, ">" or "/>". > > > You had this at the start of tomcat-users.xml: > <xml version="1.0" encoding="UTF-8"?> > > You should have had this: > <?xml version="1.0" encoding="UTF-8"?> > > (look at the second character) > > Mark > > > > > > > Mark > > > > > >> > >> On Thu, Apr 5, 2018 at 10:54 AM, Christopher Schultz > >> <ch...@christopherschultz.net <mailto:ch...@christopherschultz.net>> > wrote: > >> > >> Philip, > >> > >> On 4/5/18 12:37 AM, Philip Rego wrote: > >>> http://24.0.5.14:8081/manager/html > >> <http://24.0.5.14:8081/manager/html> > >> > >> Reach? Yes. Login? No. > >> > >>> *tomcat-users.xml*<xml version="1.0" encoding="UTF-8"?> > >>> <tomcat-users xmlns="http://tomcat.apache.org/xml < > http://tomcat.apache.org/xml>" > >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > >> <http://www.w3.org/2001/XMLSchema-instance>" > >>> xsi:schemaLocation="http://tomcat.apache.org/xml < > http://tomcat.apache.org/xml> > >> tomcat-users.xsd" > >>> version="1.0"> <role rolename="manager-gui"/> <user > >>> username="tomcat" password="s3cret" roles="manager-gui"/> <role > >>> rolename="tomcat"/> <role rolename="role1"/> <role > >>> rolename="manager-gui"/> <user username="hello" password="p4ssw0rd" > >>> roles="manager-gui"/> <user username="tomcat" password="p4ssw0rd" > >>> roles="standard,manager-gui,tomcat,manager-script,manager-script"/> > >> > >> > >> <role rolename="manager"/> > >>> <user username="admin" password="admin" roles="manager"/> > >>> </tomcat-users> > >> > >> I tried users "tomcat" and "hello". Your file looks okay to me. > >> > >>> Why can't I log in? I get a 401 error when I try with any these > >>> users. Do I have them set correctly? The 401 error said I can get > >>> access by adding the user "tomcat" like I so. I also read the > >>> documentation > >> > >> <http://24.0.5.14:8081/docs/manager-howto.html#Configuring_Manager_App > >> <http://24.0.5.14:8081/docs/manager-howto.html#Configuring_Manager_App> > >> lication_Access> > >> > >> > >> but > >>> I must not understand. I tried running tomcat on my windows > >>> computer and got a similar 403 error. I originally had this issue > >>> when I was trying to integrate my Spring Boot app in Jenkins and > >>> got error > >> > >>> org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: > >> > >> > >> The username and password you provided are not correct (error 401). > >> > >>> (I know it's not safe giving out passwords like this but there's > >>> nothing on the machine I care about, and want to have the issue > >>> resolved) > >> > >> My guess is that one or more of the following is true: > >> > >> 1. The tomcat-users.xml file isn't in your CATALINA_BASE/conf/ directory > >> > >> 2. Your CATALINA_BASE/conf/server.xml does not have a <Resource> in it > >> for MemoryUserDatabaseFactory > >> > >> 3. Your Manager application doesn't have a <Realm> configured > >> > >> Can you confirm all of the above? > >> > >> -chris > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> <mailto:users-unsubscr...@tomcat.apache.org> > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> <mailto:users-h...@tomcat.apache.org> > >> > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> 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 > > > >