4 Replies Latest reply on Mar 14, 2013 1:34 PM by vmehrotr

    An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97

    achyuthgurram

      Hi All,

       

      I am new to DAY CQ development. I installed jdk1.6.0_37 in my system. I started cq 5.5 jar on port 4502. When i start cq and open localhost:4502 in browser I am getting following exception "An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97". PFA for more details and help in this

       

      Thankscq login exception.jpg

        • 1. Re: An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97
          Jörg Hoh Adobe Employee

          Can you please post the complete stacktrace? Copy&Paste it into the forum.

           

          Jörg

          • 2. Re: An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97
            Sham HC Level 7

            Hi achyuthgurram,

             

              Does all the bundles running (http://localhost:4502/system/console) & any other error in the logs?

             

            Thanks,

            Sham

            • 3. Re: An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97
              achyuthgurram Level 1

              Hi,

               

              When i go to (http://localhost:4502/system/console) i got the following information

              Bundle information: 231 bundles in total, 224 bundles active, 7 active fragments, 0 bundles resolved, 0 bundles installed.

               

               

              This is the complete stack trace:

               

               

              An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97

               

               

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

               

               

              Exception:

               

               

              org.apache.sling.api.SlingException: An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97

                        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:574)

                        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)

                        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:451)

                        at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)

                        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :233)

                        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:85)

                        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:453)

                        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)

                        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)

                        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)

                        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:500)

                        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

                        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308 )

                        at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:257)

                        at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

                        at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:296)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:89)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)

                        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

                        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:153)

                        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)

                        at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

                        at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)

                        at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)

                        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

                        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

                        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                        at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:238)

                        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                        at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)

                        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                        at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )

                        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

                        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

                        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

                        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

                        at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)

                        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)

                        at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

                        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)

                        at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)

                        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)

                        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:377)

                        at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:351)

                        at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:625)

                        at java.lang.Thread.run(Unknown Source)

              Caused by: org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException Encoder class (org.owasp.esapi.reference.DefaultEncoder) CTOR threw exception.

                        at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129)

                        at org.owasp.esapi.ESAPI.encoder(ESAPI.java:99)

                        at com.adobe.granite.xss.impl.XSSAPIImpl.encodeForHTMLAttr(XSSAPIImpl.java:136)

                        at org.apache.jsp.libs.cq.core.components.login.login_jsp._jspService(login_jsp.java:229)

                        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

                        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:420)

                        ... 74 more

              Caused by: java.lang.reflect.InvocationTargetException

                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                        at java.lang.reflect.Method.invoke(Unknown Source)

                        at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:86)

                        ... 80 more

              Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/spi/LoggerFactory

                        at java.lang.Class.forName0(Native Method)

                        at java.lang.Class.forName(Unknown Source)

                        at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:74)

                        at org.owasp.esapi.ESAPI.logFactory(ESAPI.java:137)

                        at org.owasp.esapi.ESAPI.getLogger(ESAPI.java:154)

                        at org.owasp.esapi.reference.DefaultEncoder.<init>(DefaultEncoder.java:75)

                        at org.owasp.esapi.reference.DefaultEncoder.getInstance(DefaultEncoder.java:59)

                        ... 85 more

              Caused by: java.lang.ClassNotFoundException: org.apache.log4j.spi.LoggerFactory not found by com.day.cq.cq-xssprotection [75]

                        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787 )

                        at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)

                        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)

                        at java.lang.ClassLoader.loadClass(Unknown Source)

                        ... 92 more

              Request Progress:

               

               

                    0 (2013-03-14 11:12:56) TIMER_START{Request Processing}

                    0 (2013-03-14 11:12:56) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message>

                    0 (2013-03-14 11:12:56) LOG Method=GET, PathInfo=/libs/cq/core/content/login.html

                    2 (2013-03-14 11:12:56) TIMER_START{ResourceResolution}

                    2 (2013-03-14 11:12:56) TIMER_END{0,ResourceResolution} URI=/libs/cq/core/content/login.html resolves to Resource=JcrNodeResource, type=cq/core/components/login, superType=null, path=/libs/cq/core/content/login

                    2 (2013-03-14 11:12:56) LOG Resource Path Info: SlingRequestPathInfo: path='/libs/cq/core/content/login', selectorString='null', extension='html', suffix='null'

                    2 (2013-03-14 11:12:56) TIMER_START{ServletResolution}

                    2 (2013-03-14 11:12:56) TIMER_START{resolveServlet(JcrNodeResource, type=cq/core/components/login, superType=null, path=/libs/cq/core/content/login)}

                    2 (2013-03-14 11:12:56) TIMER_END{0,resolveServlet(JcrNodeResource, type=cq/core/components/login, superType=null, path=/libs/cq/core/content/login)} Using servlet /libs/cq/core/components/login/login.jsp

                    3 (2013-03-14 11:12:56) TIMER_END{1,ServletResolution} URI=/libs/cq/core/content/login.html handled by Servlet=/libs/cq/core/components/login/login.jsp

                    3 (2013-03-14 11:12:56) LOG Applying Requestfilters

                    3 (2013-03-14 11:12:56) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter

                    3 (2013-03-14 11:12:56) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter

                    3 (2013-03-14 11:12:56) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter

                    3 (2013-03-14 11:12:56) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter

                    3 (2013-03-14 11:12:56) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter

                    3 (2013-03-14 11:12:56) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet

                    3 (2013-03-14 11:12:56) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter

                    3 (2013-03-14 11:12:56) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter

                    3 (2013-03-14 11:12:56) LOG RedirectFilter did not redirect (request path does not match)

                    3 (2013-03-14 11:12:56) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter

                    3 (2013-03-14 11:12:56) LOG Applying Componentfilters

                    3 (2013-03-14 11:12:56) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter

                    3 (2013-03-14 11:12:56) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter

                    3 (2013-03-14 11:12:56) TIMER_START{/libs/cq/core/components/login/login.jsp#0}

                   18 (2013-03-14 11:12:56) LOG SCRIPT ERROR: An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97

                   18 (2013-03-14 11:12:56) TIMER_END{15,/libs/cq/core/components/login/login.jsp#0}

                   19 (2013-03-14 11:12:56) LOG Applying Error filters

                   19 (2013-03-14 11:12:56) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter

                   19 (2013-03-14 11:12:56) TIMER_START{handleError:throwable=org.apache.sling.api.SlingException}

                   36 (2013-03-14 11:12:56) TIMER_END{17,handleError:throwable=org.apache.sling.api.SlingException} Using handler /libs/sling/servlet/errorhandler/default.jsp

                   38 (2013-03-14 11:12:56) 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=org.apache.sling.jcr.resource.JcrPropertyMap@485ac68d), Config(type=mobiledebug, config=org.apache.sling.jcr.resource.JcrPropertyMap@3fa17817), Config(type=contentsync, config=org.apache.sling.jcr.resource.JcrPropertyMap@1d34ea4), serializer=Config(type=htmlwriter, config={}))}

                   40 (2013-03-14 11:12:56) TIMER_END{40,Request Processing} Dumping SlingRequestProgressTracker Entries

              ApacheSling/2.2 (Day-Servlet-Engine/4.1.24, Java HotSpot(TM) 64-Bit Server VM 1.6.0_43, Windows 7 6.1 amd64)

              • 4. Re: An exception occurred processing JSP page /libs/cq/core/components/login/login.jsp at line 97
                vmehrotr Adobe Employee

                Hi achyuthgurram,

                 

                I guess the problem is really casued by Codec class 'org.apache.log4j.spi.LoggerFactory' that is listed in one property files called ESAPI.properties that does not exist in 'com.day.cq.cq-xssprotection' bundle. This esapi.properties is already present inside this bundle.

                You can verify the ESAPI.properties file when you extract the bundle.

                 

                Thus i suspect you have a ESAPI.properties file somewhere in your user home directory or at some place which gets loaded before the one which is present in xssprotection bundle. Can you check this? If there is, then delete that file.

                 

                Also verify from stdout logs when you start your instance and see from which location is this file getting picked up?

                See below:

                15.03.2013 01:35:43.871 *INFO * [main] Startup completed

                Attempting to load ESAPI.properties via file I/O.

                Attempting to load ESAPI.properties as resource file via file I/O.

                Not found in 'org.owasp.esapi.resources' directory or file not readable: C:\Users\vaio\Instances_SetUp\CQ5.5\ESAPI.properties

                Not found in SystemResource Directory/resourceDirectory: .esapi\ESAPI.properties

                Not found in 'user.home' (C:\Users\vaio) directory: C:\Users\vaio\esapi\ESAPI.properties

                Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException

                Attempting to load ESAPI.properties via the classpath.

                SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from '/ (root)' using class loader for DefaultSecurityConfiguration class!

                Attempting to load validation.properties via file I/O.

                Attempting to load validation.properties as resource file via file I/O.

                Not found in 'org.owasp.esapi.resources' directory or file not readable: C:\Users\vaio\Instances_SetUp\CQ5.5\validation.properties

                Not found in SystemResource Directory/resourceDirectory: .esapi\validation.properties

                Not found in 'user.home' (C:\Users\vaio) directory: C:\Users\vaio\esapi\validation.properties

                Loading validation.properties via file I/O failed.

                 

                Thanks,

                Varun