当前位置: 技术问答>java相关
如何为编写的Entity Bean添加安全角色引用?请网上的朋友帮忙解决。
来源: 互联网 发布时间:2015-11-18
本文导语: 我编写了一个实体Bean,想增加安全访问机制,但不知道如何可视化地添加安全角色,我只有在ejb-jar.xml中手工添加。 Account holding customers Client ...
我编写了一个实体Bean,想增加安全访问机制,但不知道如何可视化地添加安全角色,我只有在ejb-jar.xml中手工添加。
Account holding customers
Client
Employees
Bank
编译时出错:
"bank.ejbgrpx": The security-role Client, defined in ejb-jar.xml, is not correctly mapped to a security principal. Make sure the security-role has a corresponding security-role-assignment element in the weblogic-ejb-jar.xml descriptor.
"bank.ejbgrpx": The security-role Bank, defined in ejb-jar.xml, is not correctly mapped to a security principal. Make sure the security-role has a corresponding security-role-assignment element in the weblogic-ejb-jar.xml descriptor.
Account holding customers
Client
Employees
Bank
编译时出错:
"bank.ejbgrpx": The security-role Client, defined in ejb-jar.xml, is not correctly mapped to a security principal. Make sure the security-role has a corresponding security-role-assignment element in the weblogic-ejb-jar.xml descriptor.
"bank.ejbgrpx": The security-role Bank, defined in ejb-jar.xml, is not correctly mapped to a security principal. Make sure the security-role has a corresponding security-role-assignment element in the weblogic-ejb-jar.xml descriptor.
|
如:
ejb-jar.xml:
admin
Administrator
weblogic-ejb-jar.xml:
Administrator
Tanya
Fred
system
ejb-jar.xml:
admin
Administrator
weblogic-ejb-jar.xml:
Administrator
Tanya
Fred
system
|
在weblogic-ejb-jar.xml也就是关于weblogic特定的配置文件中还要加上安全角色定义。
|
我觉的能知道你是用什么东西发布的,比较好说些。
|
weblogic7里有个startWLBuilder.cmd,我不知道6里有没有