John,

   All you need to do is create an account for yourself in the JIRA home page and you will be able to create the ticket and upload your project. That is the best way as it provides tracking and avoids your code being lost in someone's (or my) inbox.

https://issues.jboss.org/browse/JBRULES

   Edson

2011/12/13 Green, John M (HP Software) <john.green@hp.com>

Edson,

 

Thanks for  your feedback.  I've have created an eclipse/maven project to duplicate this problem but I couldn't figure out how to open an issue in Jira (perhaps I don't have permission).   

 

If I include all the dependent libraries in a zip file (for convenience) the zip will be 7MB (which might not be so convenient after all).

 

Please let me know how I can open a new issue in Jira and/or how best to deliver this project to you.

 

John

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Friday, December 09, 2011 5:34 PM
To: Rules Users List
Subject: Re: [rules-users] 5.3.0.Final throws RuntimeDroolsException: Unable to merge resource attribute for type declaration

 

 

   Looks like a bug in the merging algorithm for types. Can any of you please open a JIRA with a small test case and/or instructions on how to reproduce plz?

 

   Thank you,

    Edson

On Fri, Dec 9, 2011 at 6:34 PM, jmgreen <john.green@hp.com> wrote:

I was able to work around this problem by filtering out the KnowledgePackage
containing my NormalizedEvent.   In Drools 5.2.0 there was no problem adding
this KnowledgePackage multiple times but apparently 5.3.0 doesn't cope with
it well.   I'm still not sure if that is a feature or a defect in 5.3.0.
In any event doing the following make the exception go away.

I'm still curious if this is a feature or a defect in 5.3.0.   Any thoughts
or opinions regarding are welcome.



   String globals = readDrlfile("globals.drl");
   String newRules = readDrlfile("rulesToAdd.drl");
   knowledgeBuilder.add(ResourceFactory.newReaderResource(new
StringReader(globals + newRules)));
   if (knowledgeBuilder.hasErrors()) {
       throw exception ...
   }
   // No exception so compile succeeded --- BTW, it's using JANINO

  Collection<KnowledgePackage> pkgs =
knowledgeBuilder.getKnowledgePackages();

pkgs=filterOutAnyPackageThatHasNoRulesAndNameMatchingNormalizeEventPackageName(pkgs);
  knowledgeBase.addKnowledgePackages(pkgs);  // NO ERROR ANYMORE




--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-5-3-0-Final-throws-RuntimeDroolsException-Unable-to-merge-resource-attribute-for-type-den-tp3573815p3574420.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



 

--
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com