<!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="https://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;">
    Classpath issue JBoss 7.0.2 Final
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/ashman">ashman</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/717028#717028">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 everyone,</p><p><br/>As a total newbie, this is my first post, so please be kind!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to upgrade a project which is currently running on JBoss 4.0.5 to JBoss 7.0.2 Final. I am getting some classpath issues, and it has been driving me nuts. I have read other posts regarding similar issues, but anything I have tries just simply hasn't worked.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have an EAR file with several WARs inside. When I try and deploy the EAR file I am getting several&#160; <span style="font-size: 10pt;"><span style="font-size: 10pt;">"Class Path entry</span> does not point to a valid jar for a Class-Path reference" errors:</span></p><p><span style="font-size: 10pt;">&#160; <p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry log4j.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/commons-logging.jar" does not point to a valid jar for a Class-Path reference.</p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry log4j-core.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/commons-logging.jar" does not point to a valid jar for a Class-Path reference.</p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry activation.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/mail.jar" does not point to a valid jar for a Class-Path reference.</p></span></p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-beanutils.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.</p><p><p align="left">18:03:55,991 WARN [org.jboss.as.ejb3.deployment.processors.dd.SecurityRoleRefDDProcessor] (MSC service thread 1-2) security-role-ref for message driven beans isn't yet implemented</p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-collections.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.</p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-dbcp.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.</p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-digester.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.</p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-logging.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.</p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-pool.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.</p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry commons-validator.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.</p></p><p align="left">18:03:55,991 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry jakarta-oro.jar in "/C:/jboss-as-web-7.0.2.Final/bin/content/Lms.ear/LmsWeb.war/WEB-INF/lib/struts.jar" does not point to a valid jar for a Class-Path reference.</p><p align="left"><span style="font-size: 10pt;"></span></p><p align="left"><span style="font-size: 10pt;"><span style="font-size: 10pt;"><span style="font-size: 10pt;">I</span>t looks like the&#160; libraries log4j.jar, log4j-core.jar, activation.jar etc. cannot be referenced from commons-logging.jar,mail.jar and </span>struts.jar. The weird thing is that all there jars are all in the same WEB-INF/lib folder in the WAR. I have tried adding the offending jars to the manifest classpath...no joy. Have tried to add them as dependencies (org.apache.log4j, org.apache.commons.logging etc.) in the manifest...no joy.</span></p><p align="left"><span style="font-size: 10pt;"></span></p><p align="left"><span style="font-size: 10pt;"></span>What am I doing wrong?</p><p align="left"><span style="font-size: 10pt;"></span></p><p align="left"><span style="font-size: 10pt;"></span>The directory structure in the WAR is as follows:</p><p align="left"><span style="font-size: 10pt;"></span></p><p align="left"><span style="font-size: 10pt;"></span>LmsWeb</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160; common</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160; css</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160; images</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160; js</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160; licensee</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160; META-INF</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160; test</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160; WEB-INF</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; classes</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lib<span style="font-size: 10pt;">&#160; </span><p align="left"><span style="font-size: 10pt;"></span></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="font-size: 10pt;"></span>All these libraries (except <span style="font-size: 10pt;"></span>jboss-ejb-api_3.1_spec-1.0.1.Final.jar) have been here within this structure, and the application runs fine under 4.0.5.</p><p align="left"><span style="font-size: 10pt;"></span></p><p align="left"><span style="font-size: 10pt;"></span>Any help would be appreciated!</p><p align="left"><span style="font-size: 10pt;"></span></p><p align="left"><span style="font-size: 10pt;"></span>Regards,</p><p align="left"><span style="font-size: 10pt;"></span>Ash</p><p align="left"><span style="font-size: 10pt;"></span></p></p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; commons-beansutil.jar</span></p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; commons-collections.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>commons-dbcp.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>commons-digester.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>commons-fileupload.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>commons-lang.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>commons-logging.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>commons-pool.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>commons-resources.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>commons-validator.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>jakarta-oro.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>javax.servlet.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>javax.servlet.jap.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>jboss-ejb-api_3.1_spec-1.0.1.Final.jar<a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a></p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>log4j.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>mail.jar</p><p align="left"><span style="font-size: 10pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>struts.jar</p><p align="left"><span style="font-size: 10pt;"></span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tiles.jar<a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a><a class="jive-link-anchor-small">#</a></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/717028#717028">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>