Solved
AEM 6.0 Installation Error
Hi,
I installed AEM 6.0 on Centos latest version 7 64 bit.
After installation done , am getting the below error.
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
Exception:
org.apache.sling.scripting.jsp.jasper.JasperException: 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 { at org.apache.sling.scripting.jsp.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) at org.apache.sling.scripting.jsp.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) at org.apache.sling.scripting.jsp.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:421)Request Progress:
0 (2014-10-21 10:43:21) TIMER_START{Request Processing} 0 (2014-10-21 10:43:21) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message> 0 (2014-10-21 10:43:21) LOG Method=GET, PathInfo=/libs/granite/core/content/login.html 0 (2014-10-21 10:43:21) TIMER_START{ResourceResolution} 0 (2014-10-21 10:43:21) TIMER_END{0,ResourceResolution} URI=/libs/granite/core/content/login.html resolves to Resource=JcrNodeResource, type=granite/core/components/login, superType=null, path=/libs/granite/core/content/login 0 (2014-10-21 10:43:21) LOG Resource Path Info: SlingRequestPathInfo: path='/libs/granite/core/content/login', selectorString='null', extension='html', suffix='null' 0 (2014-10-21 10:43:21) TIMER_START{ServletResolution} 0 (2014-10-21 10:43:21) TIMER_START{resolveServlet(JcrNodeResource, type=granite/core/components/login, superType=null, path=/libs/granite/core/content/login)} 0 (2014-10-21 10:43:21) TIMER_END{0,resolveServlet(JcrNodeResource, type=granite/core/components/login, superType=null, path=/libs/granite/core/content/login)} Using servlet /libs/granite/core/components/login/login.jsp 0 (2014-10-21 10:43:21) TIMER_END{0,ServletResolution} URI=/libs/granite/core/content/login.html handled by Servlet=/libs/granite/core/components/login/login.jsp 0 (2014-10-21 10:43:21) LOG Applying Requestfilters 0 (2014-10-21 10:43:21) LOG Calling filter: com.adobe.granite.resourceresolverhelper.impl.ResourceResolverHelperImpl 0 (2014-10-21 10:43:21) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter 0 (2014-10-21 10:43:21) LOG Calling filter: com.adobe.cq.dam.s7imaging.impl.auth.MemoryTokenAuthHandler 0 (2014-10-21 10:43:21) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter 0 (2014-10-21 10:43:21) LOG Calling filter: com.adobe.granite.httpcache.impl.InnerCacheFilter 0 (2014-10-21 10:43:21) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.adobe.cq.history.impl.HistoryRequestFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet 1 (2014-10-21 10:43:21) LOG Calling filter: com.adobe.cq.social.commons.cors.CORSAuthenticationFilter 1 (2014-10-21 10:43:21) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter 1 (2014-10-21 10:43:21) LOG RedirectFilter did not redirect (request path does not match) 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl 1 (2014-10-21 10:43:21) LOG Calling filter: com.adobe.cq.social.commons.security.SaferSlingPostServlet 1 (2014-10-21 10:43:21) LOG Calling filter: com.adobe.granite.requests.logging.impl.RequestLoggerImpl 1 (2014-10-21 10:43:21) LOG Applying Componentfilters 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter 1 (2014-10-21 10:43:21) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter 1 (2014-10-21 10:43:21) TIMER_START{/libs/granite/core/components/login/login.jsp#0} 2 (2014-10-21 10:43:21) LOG SCRIPT ERROR: org.apache.sling.scripting.jsp.jasper.JasperException: 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 {/ 2 (2014-10-21 10:43:21) TIMER_END{1,/libs/granite/core/components/login/login.jsp#0} 3 (2014-10-21 10:43:21) LOG Applying Error filters 3 (2014-10-21 10:43:21) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter 3 (2014-10-21 10:43:21) TIMER_START{handleError:throwable=org.apache.sling.scripting.jsp.jasper.JasperException} 5 (2014-10-21 10:43:21) TIMER_END{2,handleError:throwable=org.apache.sling.scripting.jsp.jasper.JasperException} Using handler /libs/sling/servlet/errorhandler/default.jsp 8 (2014-10-21 10:43:21) LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html],order=-1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=mobile, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-mobile: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), Config(type=mobiledebug, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-mobiledebug: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), Config(type=contentsync, config=JcrPropertyMap [node=Node[NodeDelegate{tree=/libs/cq/config/rewriter/default/transformer-contentsync: { jcr:primaryType = nt:unstructured, component-optional = true}}], values={jcr:primaryType=nt:unstructured, component-optional=true}]), serializer=Config(type=htmlwriter, config={}))} 10 (2014-10-21 10:43:21) TIMER_END{10,Request Processing} Dumping SlingRequestProgressTracker Entries
Java 1.8 installed and variables also set in /root/.bash_profile
Please do the needful.
Thanks & Regards,
Mahesh