0 Replies Latest reply on Mar 10, 2016 3:18 AM by nirmalajce

    Login problem after structure change

    nirmalajce

      I am observing a strange problem after I changed the struture of my project which is build on AEM 5.6.1. My login page is not working. If I try the URL/siteadmin - it is giving me a blank page with the below error in the console.

       

      03.03.2016 15:32:32.955 *ERROR* [10.86.13.93 [1457019152952] GET /libs/cq/core/content/welcome.html

      HTTP/1.1] org.apache.sling.engine.impl.SlingMainServlet service: Uncaught Problem handling the request java.lang.Error: Unresolved compilation problems:

                      Only a type can be imported. com.day.cq.wcm.api.WCMMode resolves to a package

                      Only a type can be imported. com.day.cq.wcm.api.WCMMode resolves to a package

                      WCMMode cannot be resolved

                      WCMMode.DISABLED cannot be resolved to a type

                      WCMMode cannot be resolved

                      WCMMode.DISABLED cannot be resolved to a type

       

                      at org.apache.jsp.apps.sling.servlet.errorhandler._404_jsp.<init>(_404_jsp.java:10)

                      at sun.reflect.GeneratedConstructorAccessor30.newInstance(Unknown Source)

                      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:45)

                      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

                      at java.lang.Class.newInstance(Class.java:383)

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

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

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

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

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

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

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

                      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.servlets.resolver.internal.SlingServletResolver.handleError(SlingServlet Resolver.java:762)

                      at org.apache.sling.servlets.resolver.internal.SlingServletResolver.handleError(SlingServlet Resolver.java:442)

                      at org.apache.sling.engine.impl.SlingRequestProcessorImpl$1.render(SlingRequestProcessorImpl .java:317)

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

                      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.engine.impl.SlingRequestProcessorImpl.handleError(SlingRequestProcessorI mpl.java:324)

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

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

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

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

                      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.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89)

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

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

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

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

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

                      at java.lang.Thread.run(Thread.java:745)

       

      Interstingly, when I go to crx/de and login in there and relaunch the URL it is working. What is going wrong in here.

      1. I restarted the server but didn't help.

      2. I resolved the issue when I deleted the entire var/classes generated.

      But I am unable to figure out what is causing the login issue. Any thoughts - thanks in advance