AnsweredAssumed Answered

PageLookup fails

Question asked by sam1980 on Oct 19, 2011
Latest reply on Oct 21, 2011 by sam1980
I've encountered a problem when deploying my wqs-based webapp to WebLogic 10.3.5. All of a sudden the page lookup mechanism fails. The only other reference I found to this problem is in this spanish forum post: https://forums.alfresco.com/es/viewtopic.php?f=11&t=3634 which also encounted the problem in an Tomcat setup. I've tested my webapp in both Tomcat and Glassfish, and it works fine there.

These are the related codelines in org.alfresco.wcm.client.viewresolver.DynamicPageViewResolver:90

            Page page = lookupPage(template);
//this returns null - hence the exception is thrown
            if (page == null)
            {
                throw new EditorialException("Invalid template page \"" + template + "\" specified for "
                        + asset.getContainingSection().getPath() + asset.getName(), "template.none", asset
                        .getContainingSection().getPath()
                        + asset.getName() + asset.getName());
            }

I am a bit in the dark here, and i post this in hope that someone could provide me with some pointers. Seems like some of the *Persisters has not loaded the webapps pages properly (classpath problem?), but I am not sure where the wiring of this happens.

Grateful for any advice.

Relevant stack trace:
org.alfresco.wcm.client.exception.EditorialException: Invalid template page "homepage" specified for /index.html
        at org.alfresco.wcm.client.viewresolver.DynamicPageViewResolver.buildView(DynamicPageViewResolver.java:90)
        at org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:419)
        at org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:158)
        at org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:384)
        at org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:69)
        at org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1091)
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1040)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Outcomes