乡亲
我在 Netbeans 中设置了 OpenEJB,以便我们可以使用 Embedded 配置运行和调试它。在我们尝试添加身份验证之前,它运行良好。
当我们将它作为独立服务器运行时,我们可以编辑安全用户和组列表并且它可以工作:
${openejb.base}/conf/login.config
${openejb.base}/conf/users.properties
${openejb.base}/conf/groups.properties
但是,当使用 OpenEJB 嵌入式配置(Netbeans 项目)时,我们找不到指定这 3 个文件的方法。OpenEJB 似乎在放置它们的任何地方都看不到它们。方法调用总是失败:
*javax.security.auth.login.FailedLoginException: User does not exist*
有谁知道如何指定 OpenEJB 在嵌入式模式下运行时应该使用哪些用户和组?
这是Netbeans项目结构
projectName/src - 所有源文件 projectName/lib - jars:数据库驱动程序,所有 OpenEJB 库 projectName/lib/conf - 安全文件
谢谢,
路易斯