WebLogic 9.2 とほとんど変わらないと思うけど、一応。
$ mkdir weblogic1001 $ chmod +x ./download/server1001_ccjk_linux32.bin $ ./download/server1001_ccjk_linux32.bin -> Install WebLogic Server... $ cd weblogic1001 $ cp -r ../PALPortal/database/ . $ ./wlserver_10.0/common/bin/config.sh -> Create Domain... $ cp -r ../PALPortal/shared/lib/*.jar user_projects/domains/base_domain/lib/ $ mkdir user_projects/domains/base_domain/applications $ cp -r ../PALPortal/webapps/palportal/ user_projects/domains/base_domain/applications $ vi user_projects/domains/base_domain/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/base_domain/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> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app> $ vi user_projects/domains/base_domain/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/base_domain/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/base_domain/applications/) -> Refresh WebLogic Server $ pushd user_projects/domains/base_domain/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> $ rm pal-admin/WEB-INF/classes/META-INF/services/javax.xml.parsers.SAXParserFactory $ popd -> Display Deployment, add pal-admin and pal-wcm, and then start it
次は、GlassFish を試そう。