start.human.task:
[javac] H:\study\jbpm\build.xml:864: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[java] 0 20/01 10:51:07,953[main] ERROR task.identity.DefaultUserGroupCallbackImpl.<init> - Error when loading group information for callback from location: file:null/roles.properties
[java] java.io.FileNotFoundException: null\roles.properties (系统找不到指定
的路径。)
[java] at java.io.FileInputStream.open(Native Method)
[java] at java.io.FileInputStream.<init>(FileInputStream.java:138)
[java] at java.io.FileInputStream.<init>(FileInputStream.java:97)
[java] at sun.net.www.protocol.file.FileURLConnection.connect(FileURLCo
nnection.java:90)
[java] at sun.net.www.protocol.file.FileURLConnection.getInputStream(Fi
leURLConnection.java:188)
[java] at java.net.URL.openStream(URL.java:1035)
[java] at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(De
faultUserGroupCallbackImpl.java:55)
[java] at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(De
faultUserGroupCallbackImpl.java:40)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:52
5)
[java] at java.lang.Class.newInstance0(Class.java:372)
[java] at java.lang.Class.newInstance(Class.java:325)
[java] at org.jbpm.task.identity.UserGroupCallbackManager.setCallbackFr
omProperties(UserGroupCallbackManager.java:69)
[java] at org.jbpm.DemoTaskService.main(Unknown Source)
[java] Task service registered usergroup callback ...
[java] Task service started correctly!
[javac] H:\study\jbpm\build.xml:864: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[java] 0 20/01 10:51:07,953[main] ERROR task.identity.DefaultUserGroupCallbackImpl.<init> - Error when loading group information for callback from location: file:null/roles.properties
[java] java.io.FileNotFoundException: null\roles.properties (系统找不到指定
的路径。)
[java] at java.io.FileInputStream.open(Native Method)
[java] at java.io.FileInputStream.<init>(FileInputStream.java:138)
[java] at java.io.FileInputStream.<init>(FileInputStream.java:97)
[java] at sun.net.www.protocol.file.FileURLConnection.connect(FileURLCo
nnection.java:90)
[java] at sun.net.www.protocol.file.FileURLConnection.getInputStream(Fi
leURLConnection.java:188)
[java] at java.net.URL.openStream(URL.java:1035)
[java] at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(De
faultUserGroupCallbackImpl.java:55)
[java] at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(De
faultUserGroupCallbackImpl.java:40)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
onstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
egatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:52
5)
[java] at java.lang.Class.newInstance0(Class.java:372)
[java] at java.lang.Class.newInstance(Class.java:325)
[java] at org.jbpm.task.identity.UserGroupCallbackManager.setCallbackFr
omProperties(UserGroupCallbackManager.java:69)
[java] at org.jbpm.DemoTaskService.main(Unknown Source)
[java] Task service registered usergroup callback ...
[java] Task service started correctly!
[java] Task service running ...
I finally got the human task service working, I made the foloowing changes in build.xml
<java classname="org.jbpm.DemoTaskService" fork="true">
<sysproperty key="jbpm.user.group.mapping" value="file:///C:/work/jbpm-installer/jboss-as-7.1.1.Final/standalone/configuration/roles.properties"/>
<classpath>
<pathelement path="${install.home}/task-service/target"/>
<path refid="classpath.human.task" />
</classpath>
</java>