kapok

          垃圾桶,嘿嘿,我藏的這么深你們還能找到啊,真牛!

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            455 隨筆 :: 0 文章 :: 76 評(píng)論 :: 0 Trackbacks
          http://rabbit8.blogchina.com/blog/article_144619.1140620.html

          如果按照我上一篇筆記所說的方法,可以在Tocmat下集成ValueList,但使用AppFuse的ant setup會(huì)有問題,我今天找到了原因,解決方法見內(nèi)

          在執(zhí)行 ant setup的時(shí)候,在compile-module的時(shí)候,總是說找不到valuelist的類,后來發(fā)現(xiàn)AppFuse的jar都添加到了builde.xml中,于是我也把valuelist.jar添加過去了,發(fā)現(xiàn)問題解決了,方法如下:

          AppFuse執(zhí)行Setup后自動(dòng)將valuelist.jar復(fù)制到Tomcat下:

          在appfuse\lib\lib.properties中添加如下內(nèi)容:

          #
          # ValueList
          #
          valuelist.version=0.1.7
          valuelist.dir=${lib.dir}
          valuelist.jar=${valuelist.dir}/valuelist.jar


          將properties.xml中添加:
          <!-- Web -->
          <path id="web.compile.classpath">
              <pathelement location="${dist.dir}/${webapp.name}-dao.jar"/>
              <pathelement location="${dist.dir}/${webapp.name}-service.jar"/>
              <pathelement location="${struts.jar}"/>
              <pathelement location="${strutsmenu.jar}"/>
              <pathelement location="${displaytag.jar}"/>
              <pathelement location="${jakarta-oro.jar}"/>
              <pathelement location="${commons-digester.jar}"/>
              <pathelement location="${commons-logging.jar}"/>
              <pathelement location="${commons-beanutils.jar}"/>
              <pathelement location="${commons-collections.jar}"/>
              <pathelement location="${commons-fileupload.jar}"/>
              <pathelement location="${commons-lang.jar}"/>
              <pathelement location="${commons-validator.jar}"/>
              <pathelement location="${servletapi.jar}"/>
              <pathelement location="${valuelist.jar}"/>                    //這是我添加的
              <fileset dir="${javamail.dir}" includes="*.jar"/>
              <fileset dir="${spring.dir}" includes="*.jar"/>
              <fileset dir="${jstl.dir}/lib" includes="jstl.jar"/>
          </path>

          在builde.xml中添加:
          <war destfile="${webapp.dist}/${webapp.war}"
                      webxml="${webapp.target}/WEB-INF/web.xml" compress="true">
                      <fileset dir="${webapp.target}" excludes="**/web.xml,**/*-resources.xml"/>
                      <metainf dir="${webapp.dist}" includes="context.xml"/>

                      <classes dir="${build.dir}/web/classes">
                          <exclude name="**/database.properties"/>
                      </classes>

                      <lib file="${dist.dir}/${webapp.name}-dao.jar"/>
                      <lib file="${dist.dir}/${webapp.name}-service.jar"/>

                      <webinf dir="${struts.dir}" includes="*.xml"/>
                      <webinf dir="web/WEB-INF" includes="*-resources.xml"/>
                     
                      <lib file="${clickstream.jar}"/>
                      <lib dir="${struts.dir}" includes="*.jar"/>
                      <lib dir="${jstl.dir}/lib">
                          <include name="jstl.jar"/>
                          <include name="standard.jar"/>
                      </lib>
                      <lib dir="${javamail.dir}" includes="*.jar"/>  
                      <lib file="${log4j.jar}"/>
                      <lib file="${strutsmenu.jar}"/>
               <lib file="${valuelist.jar}"/>                             //這是我添加的內(nèi)容
                      <lib dir="${displaytag.dir}" includes="*.jar"/>
                      <lib file="${hibernate.jar}"/>
                      <lib dir="${hibernate.dir}/lib">
                          <include name="odmg*.jar"/>
                          <include name="dom4j*.jar"/>
                          <include name="cglib*.jar"/>
                          <include name="ehcache*.jar"/>
                          <include name="oscache*.jar"/>
                      </lib>
                      <lib dir="${spring.dir}" includes="*.jar"/>
                      <lib file="${sitemesh.jar}"/>
                      <lib dir="${velocity.dir}" includes="*.jar"/>  
                      <lib file="${urlrewrite.jar}"/>
                  </war>
              </target>

           

                                                                                                              兔八哥

          posted on 2005-03-18 23:40 笨笨 閱讀(486) 評(píng)論(0)  編輯  收藏 所屬分類: ALL 、AppFuse
          主站蜘蛛池模板: 前郭尔| 仁布县| 铅山县| 淮安市| 揭东县| 浦县| 突泉县| 隆子县| 辽宁省| 亚东县| 保德县| 青州市| 东明县| 察雅县| 城市| 云梦县| 小金县| 和田市| 达日县| 山东| 正安县| 安乡县| 安徽省| 彩票| 东宁县| 山阳县| 巫山县| 翁牛特旗| 高陵县| 项城市| 泗阳县| 闽侯县| 密山市| 贞丰县| 浙江省| 金堂县| 洮南市| 安顺市| 腾冲县| 鸡西市| 汶上县|