<!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 Applications from Tomcat 6 to Jboss AS 5.1
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/bklein33">Bruce Klein</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/628617#628617">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>  I have been assigned the task of migrating some applications that have been successfully running in Tomcat 6 to run inside the Jboss AS 5.1 container. I have had some success but I am not sure if I am going about it in the right way. The first challenge was with the classloaders which I was able to solve using the jboss-classloading.xml file in my application's war file under the WEB_INF dir. The contents of this file is discussed in the article by Joel Tosi(4/4/2011) entitled "Classloaders and You" which I have attached. The next challenge has been updating the tag library definitions. I keep running into errors like this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>ERROR [<a class="jive-link-external-small" href="https://clairmail.jira.com/wiki/display/REG/cmmobile">cmmobile</a>] Servlet.service() for servlet cmmobile threw exception</p><p>org.apache.jasper.JasperException: The absolute uri: <a class="jive-link-external-small" href="http://tiles.apache.org/tags-tiles">http://tiles.apache.org/tags-tiles</a> cannot be resolved in either web.xml or the jar files deployed with this application.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I was albe to resolve this for the jstl libs by includign this in my web.xml file: </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><taglib></p><p><span>       <taglib-uri></span><a class="jive-link-external-small" href="http://java.sun.com/jstl/core" target="_blank">http://java.sun.com/jstl/core</a><span></taglib-uri></span></p><p>       <taglib-location>/WEB-INF/tld/c.tld</taglib-location></p><p>    </taglib></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>and by downloading a c.tld file. None of this was neccessary for the the application to run under Tomcat 6. I am now running into the error described above. I manually changed web.xml to refrerence  </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" target="_blank">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a><span> where in the previous Tomcat version it was pointing to  </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" target="_blank">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd</a><span>. Similarly I manually changed the references in the tld files to "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a><span> web-jsptaglibrary_2_1.xsd from  "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/j2ee" target="_blank">http://java.sun.com/xml/ns/j2ee</a><span> web-jsptaglibrary_2_0.xsd.</span></p><p>Jboss seemed to complain about any references to j2ee.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So that leads me to my question of should I have to be manually edittting these references?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>How can I resolve the above issue? </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>All neccessary .jar files are present in the WEB-INF/lib dir however Jboss seems to ignore them in some cases.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Any help in moving this forward would be greatly appreciated.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Regards,</p><p>Bruce Klein</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/628617#628617">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>