<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with custom share pages: Could not resolve view with name... in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124023#M33928</link>
    <description>&lt;P&gt;It seems strage, i hope you followed the appropriate way of creating the surf page using surf-extension.&lt;/P&gt;
&lt;P&gt;Docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/surf-pages/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/surf-pages/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/modify-ootb-code/#modifying-out-of-the-box-surf-pages" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/modify-ootb-code/#modifying-out-of-the-box-surf-pages&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Post deployment of your custom amp, you can also check the status of the module by going to:&amp;nbsp;&lt;A href="http://127.0.0.1:8081/share/page/modules/deploy" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8081/share/page/modules/deploy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also try clearning the cache before restart and see if works (assuming the extension is correctly created as per the docs and deployed).&lt;/P&gt;
&lt;P&gt;Refresh webscripts:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://127.0.0.1:8081/share/page/index" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8081/share/page/index&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clear dependency cache (use POST request):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;POST&lt;/STRONG&gt;: &lt;A href="http://127.0.0.1:8080/share/page/caches/dependency/clear" target="_blank" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/share/page/caches/dependency/clear&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;At last, try disabling the cache all-together, go to &lt;STRONG&gt;$TOMCAT_HOME/conf/Catalina/localhost/share.xml &lt;/STRONG&gt;and update the &lt;STRONG&gt;Resources &lt;/STRONG&gt;element given below:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;
&amp;lt;Context crossContext="true"&amp;gt;
 &lt;STRONG&gt; &amp;lt;Resources cachingAllowed="false"&amp;gt;&lt;/STRONG&gt;
    &amp;lt;PostResources base="${catalina.base}/../modules/share"
                   className="org.apache.catalina.webresources.DirResourceSet"
                   webAppMount="/WEB-INF/lib"/&amp;gt;
  &amp;lt;/Resources&amp;gt;
&amp;lt;/Context&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Aug 2021 17:07:13 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2021-08-09T17:07:13Z</dc:date>
    <item>
      <title>Problem with custom share pages: Could not resolve view with name...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124020#M33925</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we have a problem with loading share pages created in our custom share AMP.&amp;nbsp; We're using ACS 6.2 running inside docker containers.&amp;nbsp; After startup everything loads perfetcly, but after few hours hitting some pages gives us this error:&lt;/P&gt;&lt;PRE&gt;javax.servlet.ServletException: Could not resolve view with name '&amp;lt;our-page&amp;gt;' in servlet with name 'Spring Surf Dispatcher Servlet'&lt;/PRE&gt;&lt;P&gt;After restarting Share app pages look fine for few hours and then disappear again.&lt;/P&gt;&lt;P&gt;It looks like some sort of problem with Surf/Spring cache inside persisters, but we failed at debugging it. Do you have any ideas what could cause such problems? Maybe we should change Tomcat cache config?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:00:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124020#M33925</guid>
      <dc:creator>marcin_halczuk</dc:creator>
      <dc:date>2021-08-06T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom share pages: Could not resolve view with name...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124021#M33926</link>
      <description>&lt;P&gt;Mostly a Tomcat "problem":&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/a/27300726" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/a/27300726&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:22:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124021#M33926</guid>
      <dc:creator>michaelp</dc:creator>
      <dc:date>2021-08-06T14:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom share pages: Could not resolve view with name...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124022#M33927</link>
      <description>&lt;P&gt;Unfortunately we've already tried this solution without success. Our Tomcat conf.xml:&lt;/P&gt;&lt;PRE&gt;&amp;lt;Context&amp;gt;
    &amp;lt;WatchedResource&amp;gt;WEB-INF/web.xml&amp;lt;/WatchedResource&amp;gt;  &lt;BR /&gt;    &amp;lt;WatchedResource&amp;gt;${catalina.base}/conf/web.xml&amp;lt;/WatchedResource&amp;gt;
    &amp;lt;Resources cachingAllowed="true" cacheMaxSize="100000" /&amp;gt;
&amp;lt;/Context&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Aug 2021 07:37:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124022#M33927</guid>
      <dc:creator>marcin_halczuk</dc:creator>
      <dc:date>2021-08-09T07:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom share pages: Could not resolve view with name...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124023#M33928</link>
      <description>&lt;P&gt;It seems strage, i hope you followed the appropriate way of creating the surf page using surf-extension.&lt;/P&gt;
&lt;P&gt;Docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/surf-pages/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/surf-pages/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/modify-ootb-code/#modifying-out-of-the-box-surf-pages" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/6.2/develop/share-ext-points/modify-ootb-code/#modifying-out-of-the-box-surf-pages&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Post deployment of your custom amp, you can also check the status of the module by going to:&amp;nbsp;&lt;A href="http://127.0.0.1:8081/share/page/modules/deploy" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8081/share/page/modules/deploy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also try clearning the cache before restart and see if works (assuming the extension is correctly created as per the docs and deployed).&lt;/P&gt;
&lt;P&gt;Refresh webscripts:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://127.0.0.1:8081/share/page/index" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8081/share/page/index&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clear dependency cache (use POST request):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;POST&lt;/STRONG&gt;: &lt;A href="http://127.0.0.1:8080/share/page/caches/dependency/clear" target="_blank" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/share/page/caches/dependency/clear&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;At last, try disabling the cache all-together, go to &lt;STRONG&gt;$TOMCAT_HOME/conf/Catalina/localhost/share.xml &lt;/STRONG&gt;and update the &lt;STRONG&gt;Resources &lt;/STRONG&gt;element given below:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;
&amp;lt;Context crossContext="true"&amp;gt;
 &lt;STRONG&gt; &amp;lt;Resources cachingAllowed="false"&amp;gt;&lt;/STRONG&gt;
    &amp;lt;PostResources base="${catalina.base}/../modules/share"
                   className="org.apache.catalina.webresources.DirResourceSet"
                   webAppMount="/WEB-INF/lib"/&amp;gt;
  &amp;lt;/Resources&amp;gt;
&amp;lt;/Context&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Aug 2021 17:07:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124023#M33928</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-09T17:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom share pages: Could not resolve view with name...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124024#M33929</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Abhinav,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you, I'll try to test those changes tomorrow. I've also found some more strange logs not related with our custom amp:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;2021-08-10 15:20:51,506  ERROR [alfresco.web.site] [http-nio-8080-exec-10] javax.servlet.ServletException: Could not resolve view with name 'url("/share/res/components/preview/WebPreviewerHTML_5d2468e9aa98a3fb37a6837bb5ff' in servlet with name 'Spring Surf Dispatcher Servlet'
 2021-08-10 15:21:02,853  ERROR [alfresco.web.site] [http-nio-8080-exec-26] javax.servlet.ServletException: Could not resolve view with name 'url("/sha' in servlet with name 'Spring Surf Dispatcher Servlet'
 2021-08-10 15:21:47,020  ERROR [alfresco.web.site] [http-nio-8080-exec-16] javax.servlet.ServletException: Could not resolve view with name 'url("/share/res/compon' in servlet with name 'Spring Surf Dispatcher Servlet'
 2021-08-10 15:22:45,090  ERROR [alfresco.web.site] [http-nio-8080-exec-4] javax.servlet.ServletException: Could not resolve view with name 'url("/share/res/components/workflow/workflow-form_2ee28d70832ec4dd36276b' in servlet with name 'Spring Surf Dispatcher Servlet&lt;/PRE&gt;&lt;P&gt;Is it possible that Tomcat somehow cuts urls to resources?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 13:31:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124024#M33929</guid>
      <dc:creator>marcin_halczuk</dc:creator>
      <dc:date>2021-08-10T13:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom share pages: Could not resolve view with name...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124025#M33930</link>
      <description>&lt;P&gt;hmm, not exactly sure why an extension would endup with these errors unless there is some missconfiguration or incorrect setup.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also make sure if you have made any changes to share-config-custom.xml, there are no errors in the file (mostly typos and syntax errors).&lt;/P&gt;
&lt;P&gt;If you are enterprise use, make sure you use the stable version. here is one for 6.2.x:&amp;nbsp;&lt;A href="https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/6.2.N-docker-compose.yml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/6.2.N-docker-compose.yml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 14:16:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124025#M33930</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-10T14:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom share pages: Could not resolve view with name...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124026#M33931</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86981"&gt;@rathoreshubhamm&lt;/A&gt;&amp;nbsp; Don't spam the forum. This forum is to help, provide guidance etc. related to alfresco and integrations.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 14:07:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124026#M33931</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-12T14:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom share pages: Could not resolve view with name...</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124027#M33932</link>
      <description>&lt;P&gt;Disabling cache by&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cachingAllowed="false"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and clearing dependency cache didn't work for me. I'll try to find wrong configuration in share-config-custom.xml.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 06:40:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-custom-share-pages-could-not-resolve-view-with-name/m-p/124027#M33932</guid>
      <dc:creator>marcin_halczuk</dc:creator>
      <dc:date>2021-08-16T06:40:25Z</dc:date>
    </item>
  </channel>
</rss>

