2016-03-02 126 views
0

我正在嘗試安裝AEM。我可以首先打開快速入門。但是,當在瀏覽器中打開它時(https://localhost:8080),它給我一個錯誤「無法編譯JSP的類」。請找到完整的錯誤:無法在瀏覽器中爲AEM打開本地主機

Unable to compile class for JSP: An error occurred at line: 95 in the jsp 
file: /libs/granite/core/components/login/login.jsp 
The type java.lang.CharSequence cannot be resolved. 
It is indirectly referenced from required .class files 
92: ?request.getParameter(PARAM_NAME_REASON) 
93: : ""; 
94: 
95: if (!StringUtils.isEmpty(reason)) { 
96: if (validReasons.containsKey(reason)) { 
97: reason = validReasons.get(reason); 
98: } else { 
An error occurred at line: 95 in the jsp file: 
/libs/granite/core/components/login/login.jsp 
The method isEmpty(CharSequence) in the type StringUtils is not applicable for the arguments (String) 
92: ? request.getParameter(PARAM_NAME_REASON) 
93: : ""; 
94: 
95: if (!StringUtils.isEmpty(reason)) { 
96: if (validReasons.containsKey(reason)) { 
97: reason = validReasons.get(reason); 
98: } else { 

Cannot serve request to /libs/granite/core/content/login.html in /libs/granite/core/components/login/login.jsp 

請幫助我一樣。

+0

您使用的是哪個版本的Java和AEM? – rakhi4110

+0

[問題與安裝AEM 6]可能重複(http://stackoverflow.com/questions/28404003/issue-with-installing-aem-6) 請檢查在那裏發佈的答案解決方案。投票結束這個問題的重複。 – toniedzwiedz

回答

2

當您嘗試使用JDK的更高版本運行AEM時,通常會出現此錯誤(通常使用Java 8運行您的vanilla AEM 6.0)。

如果是這樣的情況下,可以恢復到JDK7或安裝Service Pack 2的AEM 6.0,支持JDK 8

有關安裝服務包,以解決此問題在Adobe論壇是指this thread步驟。

+0

像一個魅力工作 –