【问题标题】:wso2 identity server with postgres database schema具有 postgres 数据库模式的 wso2 身份服务器
【发布时间】:2017-05-14 14:05:00
【问题描述】:

实际上我想为生产环境设置 wso2is 5.3.0,我在 masterdatasources.xml 文件中将其配置为“jdbc:postgresql://localhost:5432/wso2?currentSchema=wso2pgschema”并且能够在 postgres 架构中安装 wso2is 但是当我进入浏览器并尝试登录时,它给了我错误

[日志] [2017-05-14 19:15:59,023] 错误 {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - 访问 Java 安全管理器特权块时发生错误 [2017-05-14 19:15:59,026] 错误 {org.wso2.carbon.core.services.authentication.AuthenticationAdmin} - 验证/授权用户时出现系统错误:处理事件时出错:PRE_AUTHENTICATION

有没有办法可以安装它的数据库架构?或者我们必须将它安装在数据库公共架构中/保持安装与用于生产的 inbuild h2 数据库。

请帮忙。

谢谢 潘卡伊

【问题讨论】:

    标签: wso2 wso2is


    【解决方案1】:

    是的,您可以使用 public 架构以外的架构。具体步骤请参考帖子here。

    对于问题的第二部分,生产系统不建议使用默认的H2数据库。

    【讨论】:

    • 感谢 Pulasthi,尝试了这个和它的工作,但在 postgres 文档中,我们可以连接 postgres 9.4 模式,因为提供像 "jdbc:postgresql://localhost:5432/wso2?currentSchema=wso2schema" 这样的 url 并且确实不需要执行命令“ALTER DATABASE wso2db SET search_path TO public,wso2schema;”
    猜你喜欢
    • 1970-01-01
    • 2015-07-22
    • 2012-11-18
    • 1970-01-01
    • 2016-09-03
    • 1970-01-01
    • 1970-01-01
    • 2014-01-18
    相关资源
    最近更新 更多