<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Guys,<div><br></div><div>Any idea about this? It would appear as if even if Infinispan 5.0 is deployed in isolated mode, the JAXB layer might have issues with previously loaded XSD?</div><div><div><br></div><div>Cheers,</div><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Bertrand Renuart <<a href="mailto:do-not-reply@jboss.com">do-not-reply@jboss.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">February 18, 2011 5:31:17 PM GMT+01:00<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Galder Zamarreņo <<a href="mailto:galder.zamarreno@redhat.com">galder.zamarreno@redhat.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>[Infinispan] - Re: Infinispan 5.0.0 on JBoss AS 6.0.0</b><br></span></div><br>
<div 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">JBoss 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;">
Re: Infinispan 5.0.0 on JBoss AS 6.0.0
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/brenuart">Bertrand Renuart</a> in <i>Infinispan</i> - <a href="http://community.jboss.org/message/588389#588389">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Adding <em>META-INF/jboss-classloading.xml</em> as you propose does the trick - jars contained in my ear are loaded intstead of those provided by JBoss AS.</p><div style="min-height: 8pt; height: 8pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <br class="webkit-block-placeholder"></div><p><strong>BUT...</strong> Infinispan still fails to initialize with the following error:</p><div style="min-height: 8pt; height: 8pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <br class="webkit-block-placeholder"></div><pre class="jive-pre"><code class="jive-code jive-xml">javax.xml.bind.UnmarshalException: unexpected element (uri:<span class="jive-xml-quote">urn:infinispan:config:5.0</span>, local:<span class="jive-xml-quote">infinispan</span>). Expected elements are <span class="jive-xml-tag"><{urn:infinispan:config:4.2}infinispan></span></code></pre><div style="min-height: 8pt; height: 8pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <br class="webkit-block-placeholder"></div><div style="min-height: 8pt; height: 8pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <br class="webkit-block-placeholder"></div><div style="min-height: 8pt; height: 8pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <br class="webkit-block-placeholder"></div><p>For your information, this happens only when starting JBoss with the "all" configuration - it does work correctly with the "default" configuration.</p><p>My understanding is as follows:</p><ol><li>The "all" configuration contains Clustering support which makes use of Infinispan (version 4.2.0). The Clustering features are initialized before any application is deployed;</li><li>Infinispan relies on JAXB to read/parse its configuration - the InfinispanConfiguration class is unmarshalled using JAXB.</li><li>Then comes the initialization of Infinispan within my application - version 5.x and not 4.2.0. For whatever reason, this time JAXB fails to unmarshal it correctly.</li></ol><div style="min-height: 8pt; height: 8pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <br class="webkit-block-placeholder"></div><p>The second time JAXB complains with an expected urn of the form :config:4.2 - this looks like a left over from the first unmarshalling (done when JBoss initialized its clustering support). This would also explains why everything works perfectly when deploying under the "default" profile which doesn't contain clustering support...</p><div style="min-height: 8pt; height: 8pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> <br class="webkit-block-placeholder"></div><p>Do you have any idea on how to solve this issue ?</p><p>Is there a way to tell JAXB to "flush" anything it may have collected about the previous unmarshalling ?</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Reply to this message by <a href="http://community.jboss.org/message/588389#588389">going to Community</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Start a new discussion in Infinispan at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2057">Community</a></div>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>--</div><div>Galder Zamarreņo</div><div>Sr. Software Engineer</div><div>Infinispan, JBoss Cache</div></span></span>
</div>
<br></div></body></html>