Hi,
I'm following these instructions: http://dev.day.com/docs/en/cq/current/getting_started/download_and_startworking.html, I've downloaded 5.6.1 jar and ran it. I'm getting the same results when I run it either by double-clicking the jar, or running a script. I'm running JDK 1.8.0 64 bit server.
Cannot serve request to /libs/granite/core/content/login.html in /libs/granite/core/components/login/login.jsp
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 {
......
Full stack here: http://pastebin.com/kGBCWm9S ......Request Progress:
0 (2014-04-08 16:28:01) TIMER_START{Request Processing} 0 (2014-04-08 16:28:01) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message> 0 (2014-04-08 16:28:01) LOG Method=GET, PathInfo=/libs/granite/core/content/login.html 0 (2014-04-08 16:28:01) TIMER_START{ResourceResolution} 3 (2014-04-08 16:28:01) TIMER_END{3,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 4 (2014-04-08 16:28:01) LOG Resource Path Info: SlingRequestPathInfo: path='/libs/granite/core/content/login', selectorString='null', extension='html', suffix='null' 4 (2014-04-08 16:28:01) TIMER_START{ServletResolution} 4 (2014-04-08 16:28:01) TIMER_START{resolveServlet(JcrNodeResource, type=granite/core/components/login, superType=null, path=/libs/granite/core/content/login)} 45 (2014-04-08 16:28:01) TIMER_END{41,resolveServlet(JcrNodeResource, type=granite/core/components/login, superType=null, path=/libs/granite/core/content/login)} Using servlet /libs/granite/core/components/login/login.jsp 45 (2014-04-08 16:28:01) TIMER_END{41,ServletResolution} URI=/libs/granite/core/content/login.html handled by Servlet=/libs/granite/core/components/login/login.jsp 56 (2014-04-08 16:28:01) LOG Applying Requestfilters 57 (2014-04-08 16:28:01) LOG Calling filter: org.apache.sling.startupfilter.impl.StartupFilterImpl 104 (2014-04-08 16:28:01) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter 104 (2014-04-08 16:28:01) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter 105 (2014-04-08 16:28:01) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter 106 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter 106 (2014-04-08 16:28:01) LOG Calling filter: com.adobe.cq.history.impl.HistoryRequestFilter 116 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter 116 (2014-04-08 16:28:01) LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter 116 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter 117 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet 117 (2014-04-08 16:28:01) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter 117 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter 117 (2014-04-08 16:28:01) LOG RedirectFilter did not redirect (request path does not match) 117 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter 117 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl 118 (2014-04-08 16:28:01) LOG Applying Componentfilters 118 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.personalization.impl.TargetComponentFilter 118 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter 123 (2014-04-08 16:28:01) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter 124 (2014-04-08 16:28:01) TIMER_START{/libs/granite/core/components/login/login.jsp#0} 2049 (2014-04-08 16:28:03) 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 {/ 2049 (2014-04-08 16:28:03) TIMER_END{1925,/libs/granite/core/components/login/login.jsp#0} 2053 (2014-04-08 16:28:03) LOG Applying Error filters 2053 (2014-04-08 16:28:03) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter 2053 (2014-04-08 16:28:03) TIMER_START{handleError:throwable=org.apache.sling.scripting.jsp.jasper.JasperException} 2057 (2014-04-08 16:28:03) TIMER_END{4,handleError:throwable=org.apache.sling.scripting.jsp.jasper.JasperException} Using handler /libs/sling/servlet/errorhandler/default.jsp 2118 (2014-04-08 16:28:03) 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 /libs/cq/config/rewriter/default/transformer-mobile, values={component-optional=true, jcr:primaryType=nt:unstructured}]), Config(type=mobiledebug, config=JcrPropertyMap [node=node /libs/cq/config/rewriter/default/transformer-mobiledebug, values={component-optional=true, jcr:primaryType=nt:unstructured}]), Config(type=contentsync, config=JcrPropertyMap [node=node /libs/cq/config/rewriter/default/transformer-contentsync, values={component-optional=true, jcr:primaryType=nt:unstructured}]), serializer=Config(type=htmlwriter, config={}))} 2124 (2014-04-08 16:28:03) TIMER_END{2124,Request Processing} Dumping SlingRequestProgressTracker Entries
Full stack here: http://pastebin.com/kGBCWm9S
Solved! Go to Solution.
Views
Replies
Total Likes
I believe the issue is that you are running JDK 1.8 which isn't supported yet. You probably need to downgrade to 1.7.
Views
Replies
Total Likes
From the stack trace it looks like you are running JDK 1.8 - I don't believe 1.8 is supported yet. You may need to downgrade to 1.7.
Views
Replies
Total Likes
As far as i know AEM is certified to work on Java 6 or 7, not on 8, did you try to load it using different JVM?
Views
Replies
Total Likes
John, were you able to solve your issue? I am having the same issue right now.
Views
Replies
Total Likes
I believe the issue is that you are running JDK 1.8 which isn't supported yet. You probably need to downgrade to 1.7.
Views
Replies
Total Likes
Thanks, downgraded to 1.7 and it works!
Views
Replies
Total Likes
cesfab2 wrote...
John, were you able to solve your issue? I am having the same issue right now.
Oh, sorry, I wasn't able to see those other replies until I replied myself. I will try to downgrade as well.
-Cesar
Views
Replies
Total Likes