Para resolver este problema, fui obrigado a nomear o usuário do tomcat para a pasta tomcat. Para instalar o tomcat no servidor, usei este link, e este gerenciar usuários. Espero que ajude alguém!
Eu tento entrar no diretório tomcat do App Manager, mas depois que eu digito a senha, eu tenho
Your connection to this site is not private
No log catalina.out
, vejo esta mensagem:
08-Dec-2017 09:03:36.024 SEVERE [main]
org.apache.catalina.realm.UserDatabaseRealm.startInternal Exception
looking up UserDatabase under key [UserDatabase]
javax.naming.NamingException: The processing instruction target
matching "[xX][mM][lL]" is not allowed.
at org.apache.naming.NamingContext.lookup(NamingContext.java:856)
at org.apache.naming.NamingContext.lookup(NamingContext.java:173)
at org.apache.catalina.realm.UserDatabaseRealm.startInternal
(UserDatabaseRealm.java:230)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.realm.CombinedRealm.startInternal
(CombinedRealm.java:252)
at org.apache.catalina.realm.LockOutRealm.startInternal
(LockOutRealm.java:120)
at org.apache.catalina.util.LifecycleBase.start
(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.startInternal
(ContainerBase.java:926)
at org.apache.catalina.core.StandardEngine.startInternal
(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start
(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal
(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start
(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal
(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start
(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:670)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start
(Bootstrap.java:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
No arquivo de configuração do usuário tomcat-user.xml
:
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<user username="tomcat" password="tomcat" roles="manager-gui,manager-
status,manager-script,manager-jmx,admin-gui,admin-script"/>
Alguém pode me dizer o que eu fiz de errado? Algum conselho?