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: 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
                        + 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(
        at org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(
        at org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(
        at org.springframework.web.servlet.view.UrlBasedViewResolver.createView(
        at org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(
        at org.springframework.web.servlet.DispatcherServlet.resolveViewName(
        at org.springframework.web.servlet.DispatcherServlet.render(
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(
        at org.springframework.web.servlet.DispatcherServlet.doService(
        at org.springframework.web.servlet.FrameworkServlet.processRequest(
        at org.springframework.web.servlet.FrameworkServlet.doGet(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(