%%%&color(white,red){失敗}; &color(red){Glassfish V3 では OpenAM Agent はうまく動かない};%%% &br; 以下失敗の記録 ---- #contents *Agent の設定 [#tbb266f7] -(略) -アクセス制御 → レルム"/" → エージェント → J2EE で、glassfishAgent を作成 *J2EE Agent の設定 [#weaf51f0] -http://forgerock.org/openam.html から Glassfish V2/V3 用の Agent をダウンロード -適当なところに展開 # cd /opt/ # unzip /home/kagyuu/ダウンロード/appserver_v10_agent_303.zip # ls glassfish3 j2ee_agents tomcat7 -パスワードファイルの作成 # cd j2ee_agents/appserver_v10_agent/ # echo gspasswd > .passwd # chmod 400 .passwd J2EE Agent のインストール # cd j2ee_agents/appserver_v10_agent/bin/ # ./agentadmin --install ************************************************************************ Welcome to the OpenSSO Policy Agent 3.0 for Sun Java System Application Server 8.1/8.2/9.0/9.1/10. ************************************************************************ (中略) ----------------------------------------------- SUMMARY OF YOUR RESPONSES ----------------------------------------------- Application Server Config Directory : /opt/glassfish3/glassfish/domains/domain1/config Application Server Instance name : server OpenSSO server URL : http://pine.hondou.homedns.org:9080/opensso Agent URL : http://pine.hondou.homedns.org:8080/agentapp Agent Profile name : glassfishAgent Agent Profile Password file name : /opt/j2ee_agents/appserver_v10_agent/.passwd (中略) Thank you for using OpenSSO Policy Agent 3.0. ---- -はまったところ : Agent に IP アドレスを使えません Enter the Agent URL. Please include the deployment URI also as shown below: (http://agent1.sample.com:1234/agentapp) [ ? : Help, < : Back, ! : Exit ] Agent URL: http://172.16.26.1:8080/agentapp ERROR: The agent URL format is incorrect or its deployment URI is not specified or the agent container is still running. Please enter the correct agent URL with the correct deployment URI and make sure the agent container is not running. The agent container at http://172.16.26.1:8080 is running. This may cause misconfiguration of the agent. Please stop the agent container, then continue with the agent installation. Enter the Agent URL. Please include the deployment URI also as shown below: (http://agent1.sample.com:1234/agentapp) [ ? : Help, < : Back, ! : Exit ] Agent URL: *Glassfish v3 は、そのままでは動かないっぽい [#z92107ec] -インストーラーの設定した Classpath が無視される (↓は、Glassfish V3 の管理コンソール) #ref(gs1.png) -ライブラリを Glassfish の domain にコピーする # cd /opt/j2ee_agents/appserver_v10_agent/ # cp lib/agent.jar /opt/glassfish3/glassfish/domains/domain1/lib/applibs/ # cp lib/openssoclientsdk.jar /opt/glassfish3/glassfish/domains/domain1/lib/applibs/ # cp locale/* /opt/glassfish3/glassfish/domains/domain1/lib/classes/ #br $ pwd /opt/glassfish3/glassfish/domains/domain1/lib $ tree . |-- applibs | |-- agent.jar | `-- openssoclientsdk.jar |-- classes | |-- CompositeAdviceForm.txt | |-- FormLoginContent.txt | |-- PortCheckContent.txt | |-- WSAuthErrorContent.txt | |-- WSInternalErrorContent.txt | |-- amAgentCore.properties | |-- amAgentLog.properties | |-- amFilter.properties | |-- amRealm.properties | |-- amToolsMessages.properties | |-- amWebPolicy.properties | |-- as81Tools.properties | `-- asTools.properties |-- databases `-- ext *うーんそれでもまだ Class Not Found がでる → あきらめた [#of574fa0] Class Not Found : com.sun.identity.agents.appserver.v81.AmASRealm なんでだろ~?&br; #br Tomcat 6 か、Glassfish V2 でないとだめっぽい ---- [[Java#OpenAM]]