總結APPFUSE在應用過程中出現(xiàn)的BUG,以及應用心得.
1. 在appfuse開發(fā)過程中, 如果不想設置環(huán)境變量CATELINA_HOME, 即TOMCAT位置, 可以修改properties.xml
<!-- These values are only used if not specified in build.properties -->
<property name="tomcat.home" value="${env.CATALINA_HOME}"/> 將其中的values 修改為tomcat的實際路徑,如: E:\dev\server\tomcat-5.0.28_appfuse
2. 如果使用的數(shù)據庫為mysql5,將字符集設定成UTF-8時, 可能會出現(xiàn)錯誤:
db-load:
[dbunit] Executing operation: CLEAN_INSERT
[dbunit] on file:
C:\dev\eclipse\workspace\appfuse\metadata\sql\sample-data.xml
[dbunit] with format: xml
[dbunit] WARNING - app_user.enabled data type (1111, ?bit?) not
recognized and will be ignored. See FAQ f

BUILD FAILED
C:\dev\eclipse\workspace\appfuse\build.xml:672:
org.dbunit.dataset.NoSuchColumnException: app_user.enabled 這是1.8.2的一個BUG, 在1.9中已經解決. 如果需要用1.8.2 需要修改兩個地上
a)
https://appfuse.dev.java.net/source/browse/appfuse/src/dao/org/appfuse/model/User.java?r1=1.22&r2=1.23 b)
https://appfuse.dev.java.net/source/browse/appfuse/metadata/sql/sample-data.xml?r1=1.9&r2=1.10 3. 在使用ant new初建工程的時候, 在新工程中,如果運行ant test-all 會報錯
Test step verifytitle (E:\dev\work\app\password\test\web\web-tests.xml:223: ) named "<unknown>" failed with message "Wr
ong document title found! Expected "AppFuse ~ ????????????" but got "AppFuse ~ ???????????""這個是由于appfuse測試過程中對中文的支持問題. 解決方法忘記了..-_-