gpt4 book ai didi

java - josso新手设置问题-无法使用tomcat的管理页面

转载 作者:行者123 更新时间:2023-11-30 05:13:29 25 4
gpt4 key购买 nike

我正在尝试在 Windows 上运行的 apache tomcat 服务器上设置 josso。

我已将 Apache Tomcat/6.0.26 zip 文件安装到 c:\tomcat

然后按照文档安装 josso

http://www.josso.org/confluence/display/JOSSO1/Quick+Start

使用c:\tomcat\bin\startup.bat启动tomcat,并注意到以下警告

ADVERTENCIA: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property ' debug' to '1' did not find a matching property. 21/03/2010 15:55:03 org.apache.tomcat.util.digester.SetPropertiesRule begin ADVERTENCIA: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting prope rty 'appName' to 'josso' did not find a matching property. ...

ADVERTENCIA: Unable to find required classes (javax.activation.DataHandler and j avax.mail.internet.MimeMultipart). Attachment support is disabled. ...

ADVERTENCIA: Bean with key 'josso:type=SSOAuditManager' has been registered as a n MBean but has no exposed attributes or operations ...

但是一切似乎都工作正常,问题是我无法再访问 http://localhost:8080/manager/html使用用户 tomcat/tomcat,如\conf\tomcat-users.xml 中配置(在安装 josso 之前它有效)

我尝试使用\lib\josso-credentials.xml 中定义的 tomcat/tomcatpwd ,甚至将 tomcat 和管理员角色添加到\lib\josso-users.xml 中,但没有成功...

有人遇到同样的问题吗?如何访问tomcat的管理页面?

非常感谢

敬礼

SAS

这是我的配置:

C:\tomcat\bin>catalina versionUsing CATALINA_BASE: "C:\tomcat"Using CATALINA_HOME: "C:\tomcat"Using CATALINA_TMPDIR: "C:\tomcat\temp"Using JRE_HOME: "c:\java"Using CLASSPATH: "C:\tomcat\bin\bootstrap.jar"Server version: Apache Tomcat/6.0.26Server built: March 9 2010 1805Server number: 6.0.26.0OS Name: Windows XPOS Version: 5.1Architecture: x86JVM Version: 1.5.0_22-b03JVM Vendor: Sun Microsystems Inc

ps:此外,关闭时,我收到一些这样的错误

GRAVE: A web application appears to have started a thread named [JOSSOAssertionM onitor] but has failed to stop it. This is very likely to create a memory leak. 21/03/2010 15:57:06 org.apache.catalina.loader.WebappClassLoader clearReferences Threads

然后 tomcat 的关闭卡住在

21/03/2010 15:57:07 org.apache.coyote.ajp.AjpAprProtocol destroy INFO: Parando Coyote AJP/1.3 en ajp-8009

ps:抱歉这个冗长的问题......

最佳答案

这可能会帮助您解决问题(无法访问管理器页面)。

1:在 $CATALINA_BASE/conf/server.xml 文件中删除以下代码(如果存在)$CATALINA_BASE/conf/server.xml

<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>

2:对于每个非jossified应用程序在$CATALINA_BASE/conf//中添加一个配置

(即在 Catalina/localhost 中将 Tomcat Manager Web 应用程序设置为非 jossified)$CATALINA_BASE/conf/Catalina/localhost

<Context docBase="${catalina.home}/server/webapps/manager" privileged="true" antiResourceLocking="true" antiJARLocking="true">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>

http://www.josso.org/confluence/display/JOSSO1/Jossify+your+Application+for+Tomcat+-+Quick+Start

关于java - josso新手设置问题-无法使用tomcat的管理页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2488617/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com