升级 Application Server 之后,<jsp:forward> 标记在 Authenticate.jsp 中未按预期那样发挥作用。<jsp:forward> 调用在服务器日志中生成一个错误,并在 WebUI 中显示空白页。问题在于 Authenticate.jsp 中的 <jsp:forward> 需要 <jsp:forward page="${redirectPage}"/> 之类的页面属性,但是,正在被传送的值却是相对路径(例如 /registry/thin/{pagename}.jsp),即使 Authenticate.jsp 是纯 JSP 页,此类路径也无效。
完成 Application Server 升级之后,请使用 asadmin 工具运行以下命令,以在 domain.xml 中设置 <auth-realm>:
转至 as-install/bin 并运行以下命令:
./asadmin delete-auth-realm --host localhost --port 6489 certificate |
这将删除旧的 auth-realm 证书(如果存在)。
运行以下命令:
./asadmin create-auth-realm --terse=false --echo=true --interactive=true \ --user admin --host localhost --port 6489 --classname \ com.sun.enterprise.security.auth.realm.certificate.CertificateRealm \ --property assign-groups=have.client.cert certificate |
这将创建具有 assign-groups 属性的新的 <auth-realm>。
停止并重新启动 Application Server registry 域。