Script1.groovy: 81: unable to resolve class

Hi everyone,

Bonita : Bonita 6.4
System : Windows

I’m trying to use the classes that are in a jar file that I created in a groovy scripting connector (Connector → Add Script (groovy)).

When I tested my code by using the “Evaluate button in groovy editor of bonita studio”, it displays a list of jars the that I imported via the menu Development → Manage jars, then a check my jar, then the script executes without any problem.

But, when I run the process (I add my jar in the dependencies of the process via Configutation menu → process dependencies) via the run button of the bonita studio, I get the following error : Script1.groovy: 81: unable to resolve class (inside my groovy script , I instantiate my class that is in the jar file) .

Anyone can help please ?

Best regards,

Saddek

Have you copied the JAR to the Tomcat/lib directory?

regards
Seán

PS: If this reply answers your question, please mark a resolved.

Can you share your process .bos file so I can try to reproduce the issue?

Thanks

Hi,

Yes I dit it , i copied my JAR in the following folder : C:\BonitaBPMSubscription-6.4.1\workspace\tomcat\lib. But i have the same error !

Thank you

Note that you should not have to add the jar file to Tomcat lib folder.

Including the jar as process dependency should be enough.