<!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">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;">
    Migrating JBoss cache in JBoss 5.1.0
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/prabhun">Prabhu Natarajan</a> in <i>JBoss Cache</i> - <a href="http://community.jboss.org/message/588771#588771">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,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-;">Earlier I have wrongly posted this in Installation and Configuration forum:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am involved in migrating JBoss AS from 4.2.3 to 5.1.0</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We had a JBoss cache version 1.2.4 that is shipped with JBoss 4.2.3. Now when I migrate to JBoss 5.1.0 I got the below error.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>org.jboss.deployers.spi.DeploymentException: Error deploying: Cyrus.cache:service=TreeCache,type=Listener</p><p>Deployment "vfszip:/E:/apps/jboss-5.1.0.GA/server/all/deploy/listenerservice-1.3.8-tui.ear/" is in error due to the following reason(s): java.lang.NoSuchFieldError: name</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then I realised I need to migrate JBoss cache also which I did [Jboss cache version 3.1.0]. However now I am getting the below error</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2011-02-17 17:03:02,824 ERROR <a class="jive-link-external-small" href="/thread/org.jboss.kernel.plugins.dependency.AbstractKernelController">org.jboss.kernel.plugins.dependency.AbstractKernelController</a> (ResourceContainer.invoker.nonDaemon-1) Error installing to Create: name=Cyrus.cache:service=TreeCache,type=Listener state=Configured mode=Manual requiredState=Create</p><p>org.jboss.cache.config.ConfigurationException: Must call setConfiguration() or setCache() before call to create()</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Our setup is as below</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We use xdoclet to generate the required artifacts.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p> xdoclet generates the <strong>jboss-service.xml</strong>. It uses a jboss-service.ent file which is under the nerge directory</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>jboss-service.ent has the following entries for JBoss 4,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>For JBoss 5.1.0 I have changed that as below</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>In the code no where I could find TreeCache.start() or create(), I think this is handled internally within TreeCache. Thats why just having an entry org.jboss.cache.TreeCache in the&#160; jboss-service.xml created and started the Cache ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>However I think this approach will not work with CacheJmxWrapper in JBoss 5.1.0</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Do I need to follow the steps provided in section 4.2. JMX-Based Deployment in JBoss AS (JBoss AS 5.x and 4.x) here</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-external-small" href="http://docs.jboss.org/jbosscache/2.1.0.GA/userguide_en/html_single/index.html#jmx.mbeans" target="_blank">http://docs.jboss.org/jbosscache/2.1.0.GA/userguide_en/html_single/index.html#jmx.mbeans</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>to get the cache created and started?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Regards,</p><p>Prabhu</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/588771#588771">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>