4 Replies Latest reply on Jun 29, 2013 8:42 AM by Kalyan Kuram

    Problems Loading login/welcome page

    Kalyan Kuram

      Hi All

      I am facing a weird problem with cq server's login/welcome page i am seeing this exceptions whenever i try to access http://<SERVER_NAME>:4502 and i see the exception 

      27.06.2013 10:24:58.452 *ERROR* [10.10.4.176 [1372353898293] GET /libs/cq/core/content/login.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException java.lang.ClassNotFoundException: org.apache.jsp.libs.cq.core.components.login.login_jsp

              at org.apache.sling.jcr.classloader.internal.RepositoryClassLoader.findClassPrivileged(Repos itoryClassLoader.java:280)

              at org.apache.sling.jcr.classloader.internal.RepositoryClassLoader.access$000(RepositoryClas sLoader.java:49)

              at org.apache.sling.jcr.classloader.internal.RepositoryClassLoader$1.run(RepositoryClassLoad er.java:163)

              at org.apache.sling.jcr.classloader.internal.RepositoryClassLoader$1.run(RepositoryClassLoad er.java:160)

              at java.security.AccessController.doPrivileged(Native Method)

              at org.apache.sling.jcr.classloader.internal.RepositoryClassLoader.findClass(RepositoryClass Loader.java:159)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

              at org.apache.sling.scripting.jsp.jasper.JspCompilationContext.load(JspCompilationContext.ja va:527)

              at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.loadServlet(JspServletWra pper.java:163)

              at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.prepareServlet(JspServlet Wrapper.java:432)

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

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

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

              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:432)

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

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

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

              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:305)

              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 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.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

              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 com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)

       

      I can access the webconsole url and i do see the url being resolved

      RedirectResource, type=sling:redirect, path=/welcome, values={sling:status=302, sling:target=/libs/cq/core/content/welcome.html}

      and also

      ServletResource, servlet=com.day.cq.auth.impl.LoginServlet, path=/login

       

      I have no clue what i need to do to resolve this

       


        • 1. Re: Problems Loading login/welcome page
          KrestenKjaer

          Can you access /system/console?

          Are there any unresolved bundles / bundles that are not active? Why are they not active?

          The problem usually lies here.

           

          Best regards

          Kresten Kjaer

          • 2. Re: Problems Loading login/welcome page
            Kalyan Kuram Level 1

            Yes i can access/system/console and i see this information

            Bundle information: 243 bundles in total, 235 bundles active, 7 active fragments, 0 bundles resolved, 1 bundles installed.

            All CQ bundles are active

             

            • 3. Re: Problems Loading login/welcome page
              Sham HC Level 7

              * Go to http://<host>:<port>/system/console/bundles/org.apache.sling.scripting.jsp

              * Stop the bundle.

              * Start the bundle.

              * Go to http://<host>:<port>/system/console/bundles/org.apache.sling.scripting.java

              * Stop the bundle.

              * Start the bundle.

               

               

              If the above step resolve issue.  Restart the system & after that if you see issue reoccur please file daycare.

              • 4. Re: Problems Loading login/welcome page
                Kalyan Kuram Level 1

                Thank you all for the response,i have this resolved,the solution to the problem is delete everything under /var/classes and everything started working again.

                i traces this problem to /var/classes/org/apache/jsp/libs/cq/core/components/login/ i found all generated classes  when clicked on <PAGE>/jcr:content/jcr:data it resulted in internal server error with logs complaining DataStoreException  after i cleaned up classes directory i can now see login and welcome page.

                 

                I suspect there is a datastore corruption which i need to fix,

                Being new to CQ this was an interesting problem to solve