11-05-2012 04:51 AM
<?xml version='1.0' encoding='UTF-8'?>
<presets>
<preset id="tacit-knowledge-workgroup-content">
<components>
title
<component>
<scope>page</scope>
<region-id>title</region-id>
<source-id>site/${siteid}/content</source-id>
<url>/components/title/collaboration-title</url>
</component>
navigation
<component>
<scope>page</scope>
<region-id>navigation</region-id>
<source-id>site/${siteid}/content</source-id>
<url>/components/navigation/collaboration-navigation</url>
</component>
dashboard components
<component>
<scope>page</scope>
<region-id>full-width-dashlet</region-id>
<source-id>site/${siteid}/content</source-id>
<url>/components/dashlets/dynamic-welcome</url>
<properties>
<dashboardType>site</dashboardType>
</properties>
</component>
<component>
<scope>page</scope>
<region-id>component-1-1</region-id>
<source-id>site/${siteid}/content</source-id>
<url>/components/dashlets/colleagues</url>
<properties>
<height>504</height>
</properties>
</component>
<component>
<scope>page</scope>
<region-id>component-2-1</region-id>
<source-id>site/${siteid}/content</source-id>
<url>/components/dashlets/docsummary</url>
<url>/components/dashlets/colleagues</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-2</region-id>
<source-id>site/${siteid}/content</source-id>
<url>/components/dashlets/activityfeed</url>
<url>/components/dashlets/colleagues</url>
</component>
</components>
<pages>
<page id="site/${siteid}/content">
<title>Tacit Knowledge WorkGroup Content</title>
<title-id>page.workGroupContent.title</title-id>
<description>Tacit Knowledge WorkGroup's content page</description>
<description-id>page.workGroupContent.description</description-id>
<template-instance>dashboard-2-columns-wide-right</template-instance>
<authentication>user</authentication>
<properties>
<sitePages>[{"pageId":"documentlibrary"}]</sitePages>
</properties>
</page>
</pages>
</preset>
</presets>
SEVERE: Servlet.service() for servlet [Spring Surf Dispatcher Servlet] in context with path [/share] threw exception [Could not resolve view with name 'site/test/dashboard' in servlet with name 'Spring Surf Dispatcher Servlet'] with root cause
javax.servlet.ServletException: Could not resolve view with name 'site/test/dashboard' in servlet with name 'Spring Surf Dispatcher Servlet'
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1029)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:374)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
2012-11-05 09:35:44,189 ERROR [alfresco.web.site] [http-bio-8080-exec-10] javax.servlet.ServletException: Could not resolve view with name 'site/test/dashboard' in servlet with name 'Spring Surf Dispatcher Servlet'
11-05-2012 07:37 AM
11-05-2012 08:00 AM
Hi Alejandro,
When you have created your site you will be directed to the "dashboard" page (well actually to a page with a page-id of "site/${siteid}/dashboard").
However there is no such page, because what you have done in your preset file is to create a page called "content" (or "site/${siteid}/content" to be exact).
If you just change all instances of "site/${siteid}/content" in your preset xml file to "site/${siteid}/dashboard" I'm sure it will work.
Cheers, Erik
PS. The text nodes ("title", "navigation", "dashboard components") I assume are comments, if not remove them as well.
11-05-2012 08:59 AM
alfresco/site-data/presets/my-custom-presets.xml
11-05-2012 09:53 AM
11-05-2012 10:12 AM
11-05-2012 10:54 AM
Yes since v4.1 its possible to place it as /alfresco/site-data/presets/ *-presets.xml inside a .jar (in ${tomcat-home}/shared/lib).
Note! For other readers, you must use "dashboard" rather than "content" in the code up in the original post.True at all, it doesn't work if you try to use a different URL for the page, it seems it must be always site/${siteid}/dashboard. Somebody corrects me if I'm wrong.
11-05-2012 11:38 AM
<?xml version='1.0' encoding='UTF-8'?>
<presets>
<!– Well known preset used to generate the default Collaboration Site dashboard –>
<preset id="my-site-dashboard">
<components>
<!– title –>
<component>
<scope>page</scope>
<region-id>title</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/title/collaboration-title</url>
</component>
<!– navigation –>
<component>
<scope>page</scope>
<region-id>navigation</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/navigation/collaboration-navigation</url>
</component>
<component>
<scope>page</scope>
<region-id>component-1-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/colleagues</url>
<properties>
<height>504</height>
</properties>
</component>
<component>
<scope>page</scope>
<region-id>component-2-1</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/docsummary</url>
</component>
<component>
<scope>page</scope>
<region-id>component-2-2</region-id>
<source-id>site/${siteid}/dashboard</source-id>
<url>/components/dashlets/activityfeed</url>
</component>
</components>
<pages>
<page id="site/${siteid}/dashboard">
<title>Collaboration Site Dashboard</title>
<title-id>page.siteDashboard.title</title-id>
<description>Collaboration site's dashboard page</description>
<description-id>page.siteDashboard.description</description-id>
<template-instance>dashboard-10-columns-wide-right</template-instance>
<authentication>user</authentication>
<properties>
<sitePages>[{"pageId":"documentlibrary"}]</sitePages>
</properties>
</page>
</pages>
</preset>
</presets>
10-05-2013 07:57 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.