1 Reply Latest reply on Apr 19, 2013 7:06 PM by Shobhit Tyagi

    problem during starting task service

    Mahdi k Newbie

      hi

      i tried to start human task service but i encountered a problem here:

       

       

       

      C:\jbpm-installer 5.4>ant start.human.task

      Buildfile: C:\jbpm-installer 5.4\build.xml

       

       

      start.human.task:

          [mkdir] Created dir: C:\jbpm-installer 5.4\task-service\target

          [javac] C:\jbpm-installer 5.4\build.xml:864: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

          [javac] Compiling 1 source file to C:\jbpm-installer 5.4\task-service\target

           [copy] Copying 5 files to C:\jbpm-installer 5.4\task-service\target

           [java] 14   22/02 04:13:56,274[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 (The system cannot find the path specified)

           [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(FileURLConnection.java:90)

           [java]     at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)

           [java]     at java.net.URL.openStream(URL.java:1037)

           [java]     at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(DefaultUserGroupCallbackImpl.java:55)

           [java]     at org.jbpm.task.identity.DefaultUserGroupCallbackImpl.<init>(DefaultUserGroupCallbackImpl.java:40)

           [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

           [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

           [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

           [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

           [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.setCallbackFromProperties(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 ...

       

       

      what should i do now?

        • 1. Re: problem during starting task service
          Shobhit Tyagi Master

          You need to change your build.xml file..

           

          <java classname="org.jbpm.DemoTaskService" fork="true"> 

                  <sysproperty key="jbpm.user.group.mapping" value="..........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>

           

          Add the line in bold..