<?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 Scripting Engine Resolution in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176909#M130039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Activiti 5.18 within Karaf 4.0.1 and I have the following exception while I try to execute a task with a Groovy script inside:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"org.activiti.engine.ActivitiException: Can't find scripting engine for 'groovy'".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After some debug I have found what I think is a lack of compliance with the JSR 223 standard which states:"…The comment character is '#' (0x23); on each line all characters following the first comment character are ignored."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking into the class org.activiti.osgi.Extender.BundleScriptEngineResolver the method resolveScriptEngine makes it evident that the cause of the problem is that the first line read is considered to contain the FQN of the ScriptEngineFactory class but in groovy-all it is not since it contains the Apache disclaimer which leads to a ClassNotFoundException:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"java.lang.ClassNotFoundException: # Licensed to the Apache Software Foundation"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Previous versions of Groovy (i.e. v2.1.3 mentioned elsewhere in this forum) have a configuration file without any disclaimer so they should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to use the latest version of Groovy, any suggestion on how to deal with this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlo&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 10:02:39 GMT</pubDate>
    <dc:creator>c_ieva</dc:creator>
    <dc:date>2015-09-11T10:02:39Z</dc:date>
    <item>
      <title>Scripting Engine Resolution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176909#M130039</link>
      <description>Hi,I am using Activiti 5.18 within Karaf 4.0.1 and I have the following exception while I try to execute a task with a Groovy script inside:"org.activiti.engine.ActivitiException: Can't find scripting engine for 'groovy'".After some debug I have found what I think is a lack of compliance with the JS</description>
      <pubDate>Fri, 11 Sep 2015 10:02:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176909#M130039</guid>
      <dc:creator>c_ieva</dc:creator>
      <dc:date>2015-09-11T10:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Engine Resolution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176910#M130040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm interesting, no I don't have a good solution right now, but with some debugging we can see if there's a way to solve it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you be willing to help with that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2015 16:52:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176910#M130040</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-09-12T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Engine Resolution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176911#M130041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure, no problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Given the JSR223 specs. the task of making the Activiti code compliant with it should be pretty straightforward.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since this would be the first time I contribute to an open source project, could you please give me just some directions about needed practicalities?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlo&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 08:19:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176911#M130041</guid>
      <dc:creator>c_ieva</dc:creator>
      <dc:date>2015-09-13T08:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Engine Resolution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176912#M130042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Carlo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As you probably already know this the the repository for Activiti OSS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;just fork it and after you did your changes into your Activiti repository, you'll have to create a pull request with the changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 11:16:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scripting-engine-resolution/m-p/176912#M130042</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2015-09-14T11:16:46Z</dc:date>
    </item>
  </channel>
</rss>

