kapok

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

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

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

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

          AppFuse執(zhí)行Setup后自動將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 笨笨 閱讀(487) 評論(0)  編輯  收藏 所屬分類: ALLAppFuse
          主站蜘蛛池模板: 揭东县| 金坛市| 建始县| 瓮安县| 龙海市| 赤城县| 镇远县| 霍城县| 长岭县| 宜昌市| 美姑县| 游戏| 漳平市| 义乌市| 临朐县| 潢川县| 江陵县| 郑州市| 上高县| 南岸区| 嘉鱼县| 广东省| 义马市| 响水县| 阿克陶县| 历史| 林周县| 鸡西市| 榕江县| 获嘉县| 栾城县| 衡阳市| 长治市| 仁寿县| 女性| 拜泉县| 阿坝县| 泸定县| 嘉峪关市| 焦作市| 泗水县|