<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=iso-8859-2">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @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.Stylwiadomocie-mail17
        {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:"Calibri","sans-serif";
color:#1F497D'>Thanks for the quick answer Esteban.<br>
<br>
I checked the jars on both my client side and in the webapps\drools-guvnor\WEB-INF\lib
of the guvnor install and they&#8217;re both: drools-core-5.1.1.jar (I even put
the same jar myself to make sure).<br>
<br>
I&#8217;ve also tried to change the value of </span><span style='font-size:
10.0pt;font-family:"Courier New";color:black'>private static final long serialVersionUID
= 510l;</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> in both </span><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>drools-5.1.1-src\drools-core\src\main\java\org\drools\rule\Package.java
</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>and </span><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>DialectRuntimeRegistry.java</span><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'> but when I do this, the </span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>local class
incompatible: stream classdesc serialVersionUID = 5308493362083281112 </span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>changes
as well.<br>
<br>
I&#8217;m sure there is something silly I must be doing on my side, but I
cannot find what.<br>
<br>
All the best,<br>
Pierre<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;
font-size:0 pt'>

<p class=MsoNormal><b><span style='font-family:"Tahoma","sans-serif"'>Od:</span></b><span
style='font-family:"Tahoma","sans-serif"'> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b>W imieniu </b>esteban.aliverti@gmail.com<br>
<b>Wysła</b></span><b><span lang=PL style='font-family:"Tahoma","sans-serif"'>no:</span></b><span
lang=PL style='font-family:"Tahoma","sans-serif"'> Thursday, October 07, 2010
8:08 PM<br>
<b>Do:</b> Rules Users List<br>
<b>Temat:</b> Re: [rules-users] Loading packages from KnowledgeAgent and Guvnor
5.1<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Make sure that the drools'
version you are using matches with Guvnor's version.<br clear=all>
<br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
<br>
Esteban Aliverti<br>
- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com
</a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal>2010/10/7 Pierre de Leusse &lt;<a
href="mailto:pdl@agh.edu.pl">pdl@agh.edu.pl</a>&gt;<o:p></o:p></p>

<div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>Hello everyone,</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>I&#8217;ve deployed Guvnor as a war in
Tomcat and I&#8217;m trying to load a drools example
(drools-5.1.1-src/drools-examples/drools-examples-brms/mortgage-example/mortgage-sample-repository.xml)
as a package into a KnowledgeAgent using the code shown there (<a
href="http://pastebin.com/TvJn9PeQ" target="_blank">http://pastebin.com/TvJn9PeQ</a>).</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>I get a few exceptions including: </span>java.io.InvalidClassException:
org.drools.rule.Package; local class incompatible: stream classdesc
serialVersionUID = 400, local class serialVersionUID = 510 <span
style='font-size:11.0pt;color:#1F497D'>(full trace available at </span><a
href="http://pastebin.com/fRvRMtfR" target="_blank">http://pastebin.com/fRvRMtfR</a><span
style='font-size:11.0pt;color:#1F497D'>).</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>I&#8217;ve tried several things,
including checking the serialVersionUID of
org.drools.rule.DialectRuntimeRegistry and org.drools.rule.Package as the jiira
(<a
href="https://jira.jboss.org/browse/BRMS-320?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs"
target="_blank">https://jira.jboss.org/browse/BRMS-320?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs</a>)
suggests, but no luck.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>My code may be buggy and I would welcome
corrections/suggestions.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>All the best,</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>Pierre</span><o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>