<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
New version of process with modification in java class : the change is not taken into account
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/v.lepretre%40cadwin.com">Valery LEPRETRE</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/533722#533722">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Maciej,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks for the zip. I'll look in it as soon as  possible.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote">I mean that I deploy my resources directly to data base using ant task,  pretty the same as test cases do. So application server is not involved  at all. I suspect that this is the case for you. That either classes or  class loaders are cached somehow...<br/></blockquote><p>Yes,  I do the same. Direct writing in the database with Ant. I suppose too it's a cache problem.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote">I would say that these that are stored in data base but as your case  illustrates it is not always true. Since either way class loaders are  involved it is probably issue with them. If classes are not available  for application server (not placed in userlibs) then the only one is to  load them from LOB.</blockquote><p>Does it mean the java code is read from the LOB and compiled before it's use?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I've done the following test (still with JBoss 5.1.0 and with Oracle & HSQLDB)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I deploy my famous "Test2" process</p><p>I stop the JBoss server</p><p>I remove the jar file from userlibs</p><p>I restart JBoss and run Test2 (the process works)</p><p>With a query, I set to null (empty) the LOB corresponding to the Java1 class</p><p>I run Test2, it's Ok</p><p>I stop and start JBoss</p><p>I run Test2, <strong>it's Ok</strong> (Wow)</p><p>With a query, I set to null (empty) the LOB corresponding to the process definition.</p><p>I run Test2, <strong style="font-family: arial,helvetica,sans-serif; "><strong> </strong></strong>and I get a beautiful "<strong>org.jbpm.api.JbpmException</strong>" (which seems normal)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So I think it's a problem related to JBoss (cache), but I don't know where to look to fix that problem. Have you an idea?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks again for your time</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Valéry</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong><br/></strong></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/533722#533722">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>