cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying rule file

mikepoole
Champ in-the-making
Champ in-the-making
I am consistently getting "Deployment xxx doesn't contain any rules" and when I open ACT_RE_PROCDEF table I can only see the bpm xml file listed as the resource name.

How do I deploy my drl file (or in general, multiple resources). Reading other forum postings, I have this code:

   repositoryService.createDeployment()
      .addClasspathResource("DroolsExample.bpmn20.xml")
      .addClasspathResource("ArticleSize.drl")
      .deploy();

Am I missing something obvious? Chapter 12 of the ActivitiInAction book deploys in a slightly different way which I don't quite get(using the @Deployment approach which I understand to be for testing a process?)

Many thanks

Mike
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi Mike,

Can you create a test case for this? Then I can see what the problem is.

Best regards,

mikepoole
Champ in-the-making
Champ in-the-making
Very strange this one - I'm not getting the same error anymore (although I still can't see the drl deployment in the ACT_RE_PROCDEF table)

Now when I start the task in Activiti Explorer, Tomcat is giving me a NoClassDefFoundError (org/antlr/runtime/tree/TreeNodeStream) at com.vaadin.event.ListenerMethod.receiveEvent - the org.antlr.runtime.tree jars are in my Eclipse project buildpath and the jars are also in the webapps\activiti-explorer\WEB-INF\lib and webapps\activiti-rest\WEB-INF\lib directories

I'm really stuck!

Thanks

Mike