<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Edson,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks for&nbsp; your feedback.&nbsp; 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). &nbsp;&nbsp; <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">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).
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Please let me know how I can open a new issue in Jira and/or how best to deliver this project to you.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">John
<o:p></o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
<b>On Behalf Of </b>Edson Tirelli<br>
<b>Sent:</b> Friday, December 09, 2011 5:34 PM<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] 5.3.0.Final throws RuntimeDroolsException: Unable to merge resource attribute for type declaration<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">&nbsp; &nbsp;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?<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp; &nbsp;Thank you,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">&nbsp; &nbsp; Edson<o:p></o:p></p>
<div>
<p class="MsoNormal">On Fri, Dec 9, 2011 at 6:34 PM, jmgreen &lt;<a href="mailto:john.green@hp.com">john.green@hp.com</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">I was able to work around this problem by filtering out the KnowledgePackage<br>
containing my NormalizedEvent. &nbsp; In Drools 5.2.0 there was no problem adding<br>
this KnowledgePackage multiple times but apparently 5.3.0 doesn't cope with<br>
it well. &nbsp; I'm still not sure if that is a feature or a defect in 5.3.0.<br>
In any event doing the following make the exception go away.<br>
<br>
I'm still curious if this is a feature or a defect in 5.3.0. &nbsp; Any thoughts<br>
or opinions regarding are welcome.<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
&nbsp; &nbsp;String globals = readDrlfile(&quot;globals.drl&quot;);<br>
&nbsp; &nbsp;String newRules = readDrlfile(&quot;rulesToAdd.drl&quot;);<br>
&nbsp; &nbsp;knowledgeBuilder.add(ResourceFactory.newReaderResource(new<br>
StringReader(globals &#43; newRules)));<br>
&nbsp; &nbsp;if (knowledgeBuilder.hasErrors()) {<br>
&nbsp; &nbsp; &nbsp; &nbsp;throw exception ...<br>
&nbsp; &nbsp;}<br>
&nbsp; &nbsp;// No exception so compile succeeded --- BTW, it's using JANINO<o:p></o:p></p>
</div>
<p class="MsoNormal">&nbsp; Collection&lt;KnowledgePackage&gt; pkgs =<br>
knowledgeBuilder.getKnowledgePackages();<br>
<br>
pkgs=filterOutAnyPackageThatHasNoRulesAndNameMatchingNormalizeEventPackageName(pkgs);<br>
&nbsp; knowledgeBase.addKnowledgePackages(pkgs); &nbsp;// NO ERROR ANYMORE<br>
<span style="color:#888888"><br>
<br>
<br>
<br>
<span class="hoenzb">--</span><br>
<span class="hoenzb">View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-5-3-0-Final-throws-RuntimeDroolsException-Unable-to-merge-resource-attribute-for-type-den-tp3573815p3574420.html" target="_blank">
http://drools.46999.n3.nabble.com/rules-users-5-3-0-Final-throws-RuntimeDroolsException-Unable-to-merge-resource-attribute-for-type-den-tp3573815p3574420.html</a></span><br>
<span class="hoenzb">Sent from the Drools: User forum mailing list archive at Nabble.com.</span><br>
<span class="hoenzb">_______________________________________________</span><br>
<span class="hoenzb">rules-users mailing list</span><br>
<span class="hoenzb"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a></span><br>
<span class="hoenzb"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></span></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">-- <br>
&nbsp; Edson Tirelli<br>
&nbsp; JBoss Drools Core Development<br>
&nbsp; JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><o:p></o:p></p>
</div>
</div>
</body>
</html>