<?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 activiti-webapp-rest / deployment / NullPointerException in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39809#M21239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get more familiar with activiti I downloaded the sources of activiti 5.4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a starting point I chose to use the activiti-webapp-rest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My Idea was to get the default installation running and make some changes then.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I started the webapp from inside Eclipse using tomcat 6.0.32.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I enter the url &lt;/SPAN&gt;&lt;A href="http://localhost:8080/webapp-rest/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/webapp-rest/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;it shows the index.jsp correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Entering &lt;/SPAN&gt;&lt;A href="http://localhost:8080/webapp-rest/service/index" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/webapp-rest/service/index&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm asked for username and password. I'm using kermit,kermit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;doAuthenticate (ActivitiBasicHttpAuthenticatorFactory) is called&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; &lt;BR /&gt;public boolean doAuthenticate(String username, String password) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ProcessEngines.getProcessEngine(config.getEngine()).getIdentityService().checkPassword(username, password);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;config.getEngine() returns "default"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public static ProcessEngine getProcessEngine(String processEngineName) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!isInitialized) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return processEngines.get(processEngineName);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;this call returns null, because there is no ProcessEngine registered by the name "default".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wouldn't be surprised if I got something wrong here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd appreciate your help on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anybody can recommend a better way to get used to activiti, in order to successfully set up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and integrate a bpm suite, I'd be happy to hear about it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hlux&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2011 09:03:21 GMT</pubDate>
    <dc:creator>hlux</dc:creator>
    <dc:date>2011-04-07T09:03:21Z</dc:date>
    <item>
      <title>activiti-webapp-rest / deployment / NullPointerException</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39809#M21239</link>
      <description>hello,To get more familiar with activiti I downloaded the sources of activiti 5.4.As a starting point I chose to use the activiti-webapp-rest.My Idea was to get the default installation running and make some changes then.I started the webapp from inside Eclipse using tomcat 6.0.32.When I enter the u</description>
      <pubDate>Thu, 07 Apr 2011 09:03:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39809#M21239</guid>
      <dc:creator>hlux</dc:creator>
      <dc:date>2011-04-07T09:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: activiti-webapp-rest / deployment / NullPointerException</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39810#M21240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you have to add a activit.cfg.xml file to make this work. That is normally done automatically by the installer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joachim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 15:46:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39810#M21240</guid>
      <dc:creator>joachimvda</dc:creator>
      <dc:date>2011-04-07T15:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: activiti-webapp-rest / deployment / NullPointerException</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39811#M21241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jup, Joachim is right. You should add a configuration file to your webapp's classpath, just the way the demo-setup does it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 07:58:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39811#M21241</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-08T07:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: activiti-webapp-rest / deployment / NullPointerException</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39812#M21242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding the activiti.cfg.xml to the classpath was what I had to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what I was thinking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For some reason I was convinced that the&amp;nbsp; activiti-webapp-rest was initialising a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine via the Config class in the spring-context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how does the activiti-webapp-rest get the ProcessEngine in the demo setup?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All I found in the build.xml was, that the activiti.cfg.xml is copied to the activiti-engine-examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm afraid that I'm still missing a huge bit of the overall concept.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;greetings&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 09:48:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39812#M21242</guid>
      <dc:creator>hlux</dc:creator>
      <dc:date>2011-04-08T09:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: activiti-webapp-rest / deployment / NullPointerException</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39813#M21243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a jar-file copied (activiti.cfg.xml) with activiti.cfg.xml in it in web-inf/lib in rest-webapp. When rest-webapp is initialized, all process-engine config files on classpath are initialized.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 11:48:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39813#M21243</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-08T11:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: activiti-webapp-rest / deployment / NullPointerException</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39814#M21244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again, that explains it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 12:03:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-webapp-rest-deployment-nullpointerexception/m-p/39814#M21244</guid>
      <dc:creator>hlux</dc:creator>
      <dc:date>2011-04-08T12:03:35Z</dc:date>
    </item>
  </channel>
</rss>

