2009年10月17日

Apache Roller 4.0.1 and Struts 2.1.8


http://roller.apache.org/
Download and unzip apache-roller-src-4.0.1.zip

http://struts.apache.org/
Download and unzip struts-2.1.8-all.zip

$ mkdir ${roller}/tools/struts-2.1.8/lib
$ cp ${struts}/lib/antlr-2.7.2.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/commons-beanutils-1.7.0.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/commons-chain-1.2.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/commons-fileupload-1.2.1.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/commons-io-1.3.2.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/commons-validator-1.3.1.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/freemarker-2.3.15.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/ognl-2.7.3.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/oro-2.0.8.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/struts2-core-2.1.8.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/struts2-spring-plugin-2.1.8.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/struts2-tiles-plugin-2.1.8.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/tiles-api-2.0.6.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/tiles-core-2.0.6.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/tiles-jsp-2.0.6.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/xwork-core-2.1.6.jar ${roller}/tools/struts-2.1.8/lib/
$ cp ${struts}/lib/commons-digester-2.0.jar ${roller}/tools/lib/
$ cp ${struts}/lib/commons-lang-2.3.jar ${roller}/tools/lib/

modify ${roller}/apps/weblogger/properties.xmlf
<!--
<property name="tools.struts2" value="${ro.tools}/struts-2.0.9" />
-->
<property name="tools.struts2" value="${ro.tools}/struts-2.1.8" />

<!--
<include name="commons-digester-1.6.jar" />
<include name="commons-lang-2.1.jar" />
-->
<include name="commons-digester-2.0.jar" />
<include name="commons-lang-2.3.jar" />

modify ${roller}/apps/weblogger/web/WEB-INF/classes/struts.xml
<interceptor-stack name="rollerStack">
<interceptor-ref name="exception"/>
<interceptor-ref name="alias"/>
<!--
<interceptor-ref name="servlet-config"/>
<interceptor-ref name="prepare"/>
<interceptor-ref name="i18n"/>
<interceptor-ref name="chain"/>
<interceptor-ref name="debugging"/>
<interceptor-ref name="profiling"/>
<interceptor-ref name="scoped-model-driven"/>
<interceptor-ref name="model-driven"/>
<interceptor-ref name="fileUpload"/>
<interceptor-ref name="checkbox"/>
<interceptor-ref name="static-params"/>
-->
<interceptor-ref name="servletConfig"/>
<interceptor-ref name="prepare"/>
<interceptor-ref name="i18n"/>
<interceptor-ref name="chain"/>
<interceptor-ref name="debugging"/>
<interceptor-ref name="profiling"/>
<interceptor-ref name="scopedModelDriven"/>
<interceptor-ref name="modelDriven"/>
<interceptor-ref name="fileUpload"/>
<interceptor-ref name="checkbox"/>
<interceptor-ref name="staticParams"/>
...
<action name="profile!*" method="{1}"
class="org.apache.roller.weblogger.ui.struts2.core.Profile">
<result name="input" type="tiles">.Profile</result>
<!--
<result name="cancel" type="redirect-action">menu</result>
-->
<result name="cancel" type="redirectAaction">menu</result>

<result name="success" type="tiles">.Profile</result>
</action>

$ cd ${roller}/apps/weblogger/
$ ant dist

deploy ${roller}/apps/weblogger/dist/webapp/roller-weblogger.war

沒有留言:

網誌存檔