あれこれやっていて、手順に漏れがあるかもしれないけど、こんな感じ。JAAS のログインモジュールは、WebLogic に簡単に追加する方法がわからないのであきらめて、ポータルフィルタを使うことにした。なので、別途ログインページを用意する必要がある(ユーザー名のキーがorg.apache.jetspeed.login.usernameで、パスワードがorg.apache.jetspeed.login.passwordで値を入れて http://localhost:8080/palportal/portalとかにアクセスすれば、ログインされる)。pal-adminとかに必要なweblogic.xmlは将来的には同梱しておく予定。ポートレットの配備とかが展開するのが手動だったりするのが面倒な感じだけど、仕方がない。
$ mkdir weblogic922 $ chmod +x ./download/server922_ccjk_linux32.bin $ ./download/server922_ccjk_linux32.bin -> Install WebLogic Server... $ cd weblogic922 $ cp -r ../PALPortal/database/ . $ ./weblogic92/common/bin/config.sh -> Create Domain... $ cp -r ../PALPortal/shared/lib/*.jar user_projects/domains/default/lib/ $ mkdir user_projects/domains/default/applications $ cp -r ../PALPortal/webapps/palportal/ user_projects/domains/default/applications/palportal $ vi user_projects/domains/default/applications/palportal/WEB-INF/assembly/deployment.xml <!-- <bean id="org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager" class="org.apache.jetspeed.tools.pamanager.servletcontainer.TomcatManager" init-method="start" destroy-method="stop" > <constructor-arg index="0"><value>${autodeployment.catalina.base}</value></constructor-arg> <constructor-arg index="1"><value>${autodeployment.catalina.engine}</value></constructor-arg> <constructor-arg index="2"><value>${autodeployment.server}</value></constructor-arg> <constructor-arg index="3"><value>${autodeployment.port}</value></constructor-arg> <constructor-arg index="4"><value>${autodeployment.user}</value></constructor-arg> <constructor-arg index="5"><value>${autodeployment.password}</value></constructor-arg> </bean> --> <bean id="org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager" class="org.apache.jetspeed.tools.pamanager.servletcontainer.WeblogicManager" init-method="start" /> $ vi user_projects/domains/default/applications/palportal/WEB-INF/weblogic.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd"> <weblogic-web-app> <reference-descriptor> <resource-description> <res-ref-name>jdbc/jetspeed</res-ref-name> <jndi-name>JetspeedDS</jndi-name> </resource-description> </reference-descriptor> <container-descriptor> <servlet-reload-check-secs>-1</servlet-reload-check-secs> <resource-reload-check-secs>-1</resource-reload-check-secs> </container-descriptor> </weblogic-web-app> $ vi user_projects/domains/default/applications/palportal/WEB-INF/web.xml <filter> <filter-name>PortalFilter</filter-name> <filter-class>org.apache.jetspeed.login.filter.PortalFilter</filter-class> </filter> ... <filter-mapping> <filter-name>PortalFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> $ ./user_projects/domains/default/bin/startWebLogic.sh -> Access http://127.0.0.1:7001/console/ -> Display Service > JDBC > Data Source and add a data source(Name:JetspeedDS, JNDI: JetspeedDS) -> Display Deployment, add palportal, and then start it(pal-admin.war and pal-wcm.war are created in user_projects/domains/default/applications/) $ pushd user_projects/domains/default/applications/ $ mkdir pal-admin $ mkdir pal-wcm $ cd pal-admin $ jar xvf ../pal-admin.war $ cd ../pal-wcm $ jar xvf ../pal-wcm.war $ cd .. $ vi pal-admin/WEB-INF/weblogic.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd"> <weblogic-web-app> <container-descriptor> <servlet-reload-check-secs>-1</servlet-reload-check-secs> <resource-reload-check-secs>-1</resource-reload-check-secs> <prefer-web-inf-classes>true</prefer-web-inf-classes> <optimistic-serialization>true</optimistic-serialization> </container-descriptor> </weblogic-web-app> $ vi pal-wcm/WEB-INF/weblogic.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd"> <weblogic-web-app> <container-descriptor> <servlet-reload-check-secs>-1</servlet-reload-check-secs> <resource-reload-check-secs>-1</resource-reload-check-secs> <prefer-web-inf-classes>true</prefer-web-inf-classes> <optimistic-serialization>true</optimistic-serialization> </container-descriptor> </weblogic-web-app> $ popd -> Display Deployment, add pal-admin and pal-wcm, and then start it
あとで、WebLogic 10 を試そうっと。