2010-11-12 61 views
0

我想在我們的WAR中預編譯JSP。我的螞蟻腳本分兩部分來完成。首先創建源代碼,然後編譯。JBOSS JSP預編譯|過期的jsp錯誤

最初創建了一些源文件。此後,拋出以下錯誤:

[jasper2] 2010-11-12 16:58:49,865 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [Processing file: /categoryLanding/content/jeans_body.jsp] 
    [jasper2] 2010-11-12 16:58:49,868 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [/category/content/body.jsp is out dated, compiling...] 

任何想法是什麼可能導致jsp被視爲過時的?

回答

0

您的螞蟻腳本沒有觸及.jsp文件日期嗎?

http://www.docjar.com/html/api/org/apache/jasper/JspC.java.html

// If compile is set, generate both .java and .class, if 
1174    // .jsp file is newer than .class file; 
1175    // Otherwise only generate .java, if .jsp file is newer than 
1176    // the .java file 
1177    if(clc.isOutDated(compile)) { 
1178     if (log.isDebugEnabled()) { 
1179      log.debug(jspUri + " is out dated, compiling..."); 
1180     } 
1181 
1182     clc.compile(compile, true); 
1183    } 
+0

嘿, 我想預編譯如預期運作。我剛剛重訪了這個箴言,並注意到我得到以下錯誤: java.lang.ExceptionInInitializerError 需要確定根本原因。 – Mitz 2010-11-16 18:24:45