itsenser
发贴: 3
积分: 0
|
于 2003-10-13 16:19
发布war时出错:Cant look up information for non-default security realm. . [Deployer:149033]preparing application portal on myserver [Deployer:149033]failed application portal on myserver [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application portal on myserver.: Exception:weblogic.management.ApplicationException: prepare failed for portal-web-complete Module: portal-web-complete Error: Could not load portal-web-complete: java.lang.UnsupportedOperationException: [Security:090401]Cant look up information for non-default security realm. .
请部可能是什么问题: web中相关部分: <security-constraint> <web-resource-collection> <web-resource-name>/c/my_account/protected</web-resource-name> <url-pattern>/c/my_account/protected</url-pattern> </web-resource-collection> <web-resource-collection> <web-resource-name>/jcvs/*</web-resource-name> <url-pattern>/jcvs/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>users</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>FORM</auth-method> <realm-name>PortalRealm</realm-name> <form-login-config> <form-login-page>/c/my_account/j_login</form-login-page> <form-error-page>/c/my_account/j_login_error</form-error-page> </form-login-config> </login-config> <security-role> <role-name>users</role-name> </security-role>
PortalRealm 和users 都已经设好,下面是weblogic上相关设定: <Security Name=“mydomain“ PasswordPolicy=“wl_default_password_policy“ Realm=“wl_default_realm“ RealmSetup=“true“> <weblogic.security.providers.authentication.DefaultAuthenticator Name=“Security:Name=myrealmDefaultAuthenticator“ Realm=“Security:Name=myrealm“/>
<weblogic.security.providers.authentication.DefaultIdentityAsserter ActiveTypes=“AuthenticatedUser“ Name=“Security:Name=myrealmDefaultIdentityAsserter“ Realm=“Security:Name=myrealm“/> <weblogic.security.providers.authorization.DefaultRoleMapper Name=“Security:Name=myrealmDefaultRoleMapper“ Realm=“Security:Name=myrealm“/> <weblogic.security.providers.authorization.DefaultAuthorizer Name=“Security:Name=myrealmDefaultAuthorizer“ Realm=“Security:Name=myrealm“/> <weblogic.security.providers.authorization.DefaultAdjudicator Name=“Security:Name=myrealmDefaultAdjudicator“ Realm=“Security:Name=myrealm“/> <weblogic.security.providers.credentials.DefaultCredentialMapper Name=“Security:Name=myrealmDefaultCredentialMapper“ Realm=“Security:Name=myrealm“/> <weblogic.management.security.authentication.UserLockoutManager Name=“Security:Name=myrealmUserLockoutManager“ Realm=“Security:Name=myrealm“/> <weblogic.management.security.Realm Adjudicator=“Security:Name=myrealmDefaultAdjudicator“ AuthenticationProviders=“Security:Name=myrealmDefaultAuthenticator|Security:Name=myrealmDefaultIdentityAsserter“ Authorizers=“Security:Name=myrealmDefaultAuthorizer“ CredentialMappers=“Security:Name=myrealmDefaultCredentialMapper“ DefaultRealm=“false“ DisplayName=“myrealm“ Name=“Security:Name=myrealm“ RoleMappers=“Security:Name=myrealmDefaultRoleMapper“ UserLockoutManager=“Security:Name=myrealmUserLockoutManager“/> <weblogic.security.providers.authorization.DefaultAdjudicator DisplayName=“LiferayAdjudicator“ Name=“Security:Name=PortalRealmLiferayAdjudicator“ Realm=“Security:Name=PortalRealm“/> <weblogic.security.providers.authorization.DefaultRoleMapper Name=“Security:Name=PortalRealmDefaultRoleMapper“ Realm=“Security:Name=PortalRealm“/> <weblogic.security.providers.authorization.DefaultAuthorizer Name=“Security:Name=PortalRealmDefaultAuthorizer“ Realm=“Security:Name=PortalRealm“/> <weblogic.security.providers.credentials.DefaultCredentialMapper Name=“Security:Name=PortalRealmDefaultCredentialMapper“ Realm=“Security:Name=PortalRealm“/> <weblogic.security.providers.audit.DefaultAuditor Name=“Security:Name=PortalRealmDefaultAuditor“ Realm=“Security:Name=PortalRealm“/> <weblogic.security.providers.authentication.DefaultAuthenticator ControlFlag=“OPTIONAL“ Name=“Security:Name=PortalRealmDefaultAuthenticator“ Realm=“Security:Name=PortalRealm“/>
<weblogic.security.providers.authentication.DefaultIdentityAsserter ActiveTypes=“AuthenticatedUser“ Name=“Security:Name=PortalRealmDefaultIdentityAsserter“ Realm=“Security:Name=PortalRealm“ TrustedClientPrincipals=““/> <weblogic.security.providers.authorization.DefaultRoleMapper DisplayName=“users“ Name=“Security:Name=PortalRealmusers“ Realm=“Security:Name=PortalRealm“/> <weblogic.management.security.Realm AuthenticationProviders=“Security:Name=PortalRealmRealmAdapterAuthenticator|Security:Name=PortalRealmDefaultAuthenticator1“ Authorizers=“Security:Name=PortalRealmDefaultAuthorizer1“ CredentialMappers=“Security:Name=PortalRealmDefaultCredentialMapper1“ DefaultRealm=“true“ DisplayName=“PortalRealm“ FullyDelegateAuthorization=“true“ Name=“Security:Name=PortalRealm“ RoleMappers=“Security:Name=PortalRealmDefaultRoleMapper1“ UseDeprecatedWebResource=“true“/> <weblogic.security.providers.authorization.DefaultRoleMapper DisplayName=“DefaultRoleMapper1“ Name=“Security:Name=PortalRealmDefaultRoleMapper1“ Realm=“Security:Name=PortalRealm“/>
<weblogic.security.providers.realmadapter.RealmAdapterAuthenticator ActiveTypes=“AuthenticatedUser“ ControlFlag=“OPTIONAL“ Name=“Security:Name=PortalRealmRealmAdapterAuthenticator“ Realm=“Security:Name=PortalRealm“/> <weblogic.security.providers.authorization.DefaultAuthorizer DisplayName=“DefaultAuthorizer1“ Name=“Security:Name=PortalRealmDefaultAuthorizer1“ Realm=“Security:Name=PortalRealm“/> <weblogic.security.providers.credentials.DefaultCredentialMapper DisplayName=“DefaultCredentialMapper1“ Name=“Security:Name=PortalRealmDefaultCredentialMapper1“ Realm=“Security:Name=PortalRealm“/> <weblogic.security.providers.authentication.DefaultAuthenticator ControlFlag=“OPTIONAL“ DisplayName=“DefaultAuthenticator1“ Name=“Security:Name=PortalRealmDefaultAuthenticator1“ Realm=“Security:Name=PortalRealm“/> </Security>
|