我尝试进入 Manager App tomcat 目录,但在输入密码后,我
您与此站点的连接不是私密的
在日志中catalina.out
我可以看到此消息:
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)
在用户配置文件中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"/>
有人能告诉我,我做错了什么吗?有什么建议吗?