在哪里可以找到 JOSSO 数据库配置文件?
我们的网站上有 Josso 身份验证,最近我们更改了 mysql 服务器,现在正在升级数据库配置文件中的所有 mysql 主机名、用户名和密码。
然而,我们网站的一个关键组件 - Josso 仍然无法运行,因为我们不知道 josso 的数据库配置文件存在于哪里。
我真的很感激任何能帮助我找出它所在位置的东西。
以下是尝试访问 Josso 的站点的 URL:
编辑:我们使用位于/etc/tomcat6下的Tomcat 6,里面还有一个server.xml文件它。我在那里找不到与 josso db 设置相关的任何内容。
We have Josso authentication on our website and recently we changed the mysql server and now are in the process of upgrading all the mysql hostnames, usernames and passwords in the database configuration files.
However, a critical component of our site - Josso is still nonfunctional because we have no idea where the database configuration file of josso exists.
I would really appreciate anything that helps me figure out where this is located.
Here is the URL of the site through which it is trying to access Josso :
Edit : We are using Tomcat 6 located under /etc/tomcat6 and also has a server.xml file inside it. I could not find anything relevant related to josso db settings there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
希望您已经弄清楚了这一点,但这应该为其他人记录下来。此文档位于JOSSO wiki 数据库部分。
假设 JOSSO 1.8.x,$TOMCAT_HOME/lib 中有一个文件,这是我们进行配置的位置,或者在 $TOMCAT_HOME/webapps/josso/WEB-INF/classes 中有一个名为 josso-gateway-db-stores 的文件.xml。如果找不到此文件,请查找josso-gateway-config.xml,其中包含网关配置其他部分的各种导入语句。存储配置包含引用 dsJndiName 的元素。这是在 META-INF/context.xml 文件中或在 Tomcat 的 server.xml 中定义为 Resouce 元素的数据源。
Hopefully you've already figured this out, but this should be documented for others. This documentation is available at the JOSSO wiki, database section.
Assuming JOSSO 1.8.x, there is either a file in $TOMCAT_HOME/lib, which is where we have our configuration, or in $TOMCAT_HOME/webapps/josso/WEB-INF/classes called josso-gateway-db-stores.xml. If you cannot find this file, look for josso-gateway-config.xml which will have the various import statements for the other parts of the gateway configuration. The store configuration contains elements which reference a dsJndiName. This is the datasource that is either defined in you META-INF/context.xml file or in Tomcat's server.xml as a Resouce element.