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

发布于 2024-08-26 04:55:52 字数 2142 浏览 6 评论 0原文

我正在尝试在 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} 设置属性 ' debug' 为 '1' 未找到匹配的属性。 21/03/2010 15:55:03 org.apache.tomcat.util.digester.SetPropertiesRule 开始 ADVETENCIA:[SetPropertiesRule]{Server/Service/Engine/Host/Valve} 设置属性 rty 'appName' 到 'josso' 未找到匹配的属性。 ...

ADVERTENCIA:无法找到所需的类(javax.activation.DataHandler 和 j avax.mail.internet.MimeMultipart)。附件支持已禁用。 ...

ADVERTENCIA:带有键“josso:type=SSOAuditManager”的 Bean 已注册为 n MBean 但没有公开的属性或操作 ...

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

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

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

非常感谢

saludos

sas

这是我的配置:

C:\tomcat\bin>catalina version
Using 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.26
Server built: March 9 2010 1805
Server number: 6.0.26.0
OS Name: Windows XP
OS Version: 5.1
Architecture: x86
JVM Version: 1.5.0_22-b03
JVM Vendor: Sun Microsystems Inc

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

GRAVE:Web 应用程序似乎启动了一个名为 [JOSSOAssertionM 监视器]但未能阻止它。这很可能会造成内存泄漏。 21/03/2010 15:57:06 org.apache.catalina.loader.WebappClassLoader 清除引用 主题

然后tomcat的关闭冻结在

21/03/2010 15:57:07 org.apache.coyote.ajp.AjpAprProtocol 销毁 信息:Parando Coyote AJP/1.3 en ajp-8009

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

I'm trying to setup josso on an apache tomcat server running on windows.

I've installed Apache Tomcat/6.0.26 fro zip file to c:\tomcat

then installed josso following the documentation at

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

started tomcat with c:\tomcat\bin\startup.bat, and noticed the following warnings

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
...

but then everything seems to work fine, the problem is I can no longer access http://localhost:8080/manager/html using user tomcat /tomcat, as configured in \conf\tomcat-users.xml (before installing josso it worked)

I tried with tomcat/tomcatpwd as defined in \lib\josso-credentials.xml and even added tomcat and the manager role to \lib\josso-users.xml, with no luck...

Is anybody having the same problem? how can I access tomcat's manager page?

Thanks a lot

saludos

sas

This is my config:

C:\tomcat\bin>catalina version
Using 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.26
Server built: March 9 2010 1805
Server number: 6.0.26.0
OS Name: Windows XP
OS Version: 5.1
Architecture: x86
JVM Version: 1.5.0_22-b03
JVM Vendor: Sun Microsystems Inc

ps: moreover, when shutting down, I get a couple of error like this

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

and then tomcat's shutdown freezes at

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

ps: sorry for this lengthy question...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

油焖大侠 2024-09-02 04:55:52

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

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

this may helps you to correct the problem (can't access manager page).

1:In the $CATALINA_BASE/conf/server.xml file remove the following code if present
$CATALINA_BASE/conf/server.xml

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

2:For each non-jossified application add a with configuration in $CATALINA_BASE/conf//

(i.e. In Catalina/localhost set the Tomcat Manager web application as non-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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文