<?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 CmisInMemoryRunner not starting up  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmisinmemoryrunner-not-starting-up/m-p/63265#M21750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the CMIS Junit runner from the below github location .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.github.gsdenys.CmisInMemoryRunner&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.github.gsdenys.runner.&lt;SPAN style="color: #bbb529;"&gt;Configure&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;org.apache.chemistry.opencmis.client.api.Session&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;org.apache.chemistry.opencmis.commons.enums.CmisVersion&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;org.junit.&lt;SPAN style="color: #bbb529;"&gt;Test&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;org.junit.runner.&lt;SPAN style="color: #bbb529;"&gt;RunWith&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;@RunWith&lt;/SPAN&gt;(CmisInMemoryRunner.&lt;SPAN style="color: #cc7832;"&gt;class&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN style="color: #bbb529;"&gt;@Configure&lt;/SPAN&gt;(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #d0d0ff;"&gt;port &lt;/SPAN&gt;= &lt;SPAN style="color: #6897bb;"&gt;9090&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #d0d0ff;"&gt;cmisVersion &lt;/SPAN&gt;= CmisVersion.&lt;SPAN style="color: #9876aa;"&gt;CMIS_1_1&lt;BR /&gt;&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN style="color: #cc7832;"&gt;public class &lt;/SPAN&gt;FolderServiceTest&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bbb529;"&gt;@Test&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;someTest&lt;/SPAN&gt;() &lt;SPAN style="color: #cc7832;"&gt;throws &lt;/SPAN&gt;Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session session = CmisInMemoryRunner.&lt;SPAN&gt;getSession&lt;/SPAN&gt;()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;String url = CmisInMemoryRunner.&lt;SPAN&gt;getCmisURI&lt;/SPAN&gt;().toURL().toString()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;//FolderService.createFolder(session, "/Sites","test-folder");&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Below is the error I get when I run my tests, Do I need to configure anything further for it to run using the runner? It doesn't seem to start a jetty server automatically. Should I setup any plugin&amp;nbsp; in my maven project for it to start a jetty server using the runner?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Aug 27, 2018 4:06:43 AM org.eclipse.jetty.webapp.WebInfConfiguration getCanonicalNameForWebAppTmpDir&lt;BR /&gt;WARNING: Can't generate resourceBase as part of webapp tmp dir name: java.lang.IllegalStateException: No resourceBase or war set for context&lt;BR /&gt;Aug 27, 2018 4:06:43 AM org.eclipse.jetty.webapp.WebAppContext doStart&lt;BR /&gt;WARNING: Failed startup of context o.e.j.w.WebAppContext@2e4b8173{/cmis,null,null}&lt;BR /&gt;java.lang.IllegalStateException: No resourceBase or war set for context&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;2.&lt;STRONG&gt; How do I mimic the creation of a site or creation of a folder within a site with my inmemory runner tests?&lt;/STRONG&gt; I would like to create a folder within a site and test it out using the inmemory runner?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2018 03:14:32 GMT</pubDate>
    <dc:creator>kartech11</dc:creator>
    <dc:date>2018-08-27T03:14:32Z</dc:date>
    <item>
      <title>CmisInMemoryRunner not starting up</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmisinmemoryrunner-not-starting-up/m-p/63265#M21750</link>
      <description>I am trying to use the CMIS Junit runner from the below github location .&amp;nbsp;import com.github.gsdenys.CmisInMemoryRunner;import com.github.gsdenys.runner.Configure;import org.apache.chemistry.opencmis.client.api.Session;import org.apache.chemistry.opencmis.commons.enums.CmisVersion;import org.junit.Te</description>
      <pubDate>Mon, 27 Aug 2018 03:14:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmisinmemoryrunner-not-starting-up/m-p/63265#M21750</guid>
      <dc:creator>kartech11</dc:creator>
      <dc:date>2018-08-27T03:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: CmisInMemoryRunner not starting up</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmisinmemoryrunner-not-starting-up/m-p/63266#M21751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not familiar with the CMISInMemoryRunner as this is not&amp;nbsp;related to Alfresco (other than Alfresco providing CMIS URLs), and I never came across it. You should ask on the GitHub project itself with regards to any issues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second of all, there is no way using CMIS only to execute a proper creation of a site. You have to use the &lt;A href="https://api-explorer.alfresco.com/api-explorer/#/sites" rel="nofollow noopener noreferrer"&gt;ReST API provided by Alfresco for this&lt;/A&gt;. Additionally, you have to correctly create the Surf page / component XML files that are associated with a particular site preset (check out-of-the-box presets.xml and any custom preset files you may have in your system), which require dealing with some "non-public" Surf ReST APIs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 08:34:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmisinmemoryrunner-not-starting-up/m-p/63266#M21751</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-08-27T08:34:13Z</dc:date>
    </item>
  </channel>
</rss>

