5 Replies Latest reply on Apr 12, 2006 2:34 AM by Koen Aers

    how to specify external jar files for ActionHandlers

    Shavian Shakes Newbie

      Hi,

      I am trying to implement an ActionHandler which uses a class from third party jar file. Where should I specify the path to the third party jar files ? I tried adding the jars in the $JAVA_HOME/jre/lib directory, and also adding them in various lib directories under the jbpm directory. But when the action is executed, the classloader is not able to find the jar file. I see errors in the log like :

      935 Caused by: org.jbpm.JbpmException: couldn't get value for file 'classes/com/jareva/zcil/client/SPLSession.class'
      936 at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:186)
      937 at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:55)
      938 at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      939 at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      940 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      941 at com.jbay.action.ListSoftware.execute(ListSoftware.java:19)
      942 at org.jbpm.graph.def.Action.execute(Action.java:123)
      943 at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235)
      944 ... 62 more
      945 Caused by: org.jbpm.JbpmException: file 'classes/com/jareva/zcil/client/SPLSession.class' not found in db
      946 at org.jbpm.file.def.FileDefinition.getByteArray(FileDefinition.java:210)
      947 at org.jbpm.file.def.FileDefinition.getBytesFromDb(FileDefinition.java:202)
      948 at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:183)


      btw I am using the jbpm starters kit 3.1 beta 3. Do I need to put the jars in some specific dir or add their locationin some config file.

      thanks.