<?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: How to specify a class name for Service Task? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157198#M111397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a nullpointer in your TestClass, probably. Check the tomcat-logs for the full stacktrace to see what's going on (logs/catalina.out).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 15:12:28 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-01-15T15:12:28Z</dc:date>
    <item>
      <title>How to specify a class name for Service Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157193#M111392</link>
      <description>I am trying to create a Service Task. I have a .java class implemented as required. I need to provide something in the 'Class name' so it can be referenced when I deploy the Service Task onto Activiti Explorer.It is currently located at "c:\users\myname\workspace\demo\src\main\java\TestClass.java" b</description>
      <pubDate>Wed, 15 Jan 2014 12:47:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157193#M111392</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2014-01-15T12:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a class name for Service Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157194#M111393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to compile the class and add it to your classpath. Best way to do this is to create a JAR-file, containing the TestClass class file. Next, add the jar-file to your classpath (since you're using tomcat, this will be WEB-INF/lib of the activiti-explorer webapp).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the bpmn-file, reference the class using activiti:class="org.my.package.TestClass", where you replace the "org.my.package" by the package-name you're using. From your example, I see you're NOT using a package-name, but just adding the TestClass to the default package, which is discouraged in java…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 12:51:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157194#M111393</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-15T12:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a class name for Service Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157195#M111394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your response&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; I have now created a package called "Classes" in src/main/java, and have set the class name to "Classes.TestClass".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have right-clicked the Project name (Demo) and clicked Create Deployment Artifacts, which have created the MyProcess.bar and MyProcess.Jar files. The JAR file I have copied to webapps\activiti-explorer\WEB-INF\lib. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now when I try to start the process in Activiti Explorer, it says it cannot instantiate the Classes.TestClass?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 13:24:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157195#M111394</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2014-01-15T13:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a class name for Service Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157196#M111395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you double-check the JAR-file actually contains the class-file (unzip it). Also, best to use lower-case package-names, as this is a convention in Java.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:13:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157196#M111395</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-15T14:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a class name for Service Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157197#M111396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have checked and it contains a "myclasses" folder with the TestClass.class inside (have renamed my package&amp;nbsp; to 'myclasses' so it is all lowercase)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also now restarted the Tomcat service just to be safe, and redeployed artifacts and replaced the JAR in the webapps\activiti-explorer\WEB-INF\lib folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now when i try to 'Start Process' in Activity Explorer, it gives a "Warning: null" message?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:51:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157197#M111396</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2014-01-15T14:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a class name for Service Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157198#M111397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a nullpointer in your TestClass, probably. Check the tomcat-logs for the full stacktrace to see what's going on (logs/catalina.out).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:12:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157198#M111397</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-15T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a class name for Service Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157199#M111398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your advice&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The logs have pointed to a NullPointerException which I have now resolved by correcting my logic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:38:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-specify-a-class-name-for-service-task/m-p/157199#M111398</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2014-01-15T15:38:50Z</dc:date>
    </item>
  </channel>
</rss>

