<!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;">
    EAR Deployment Failure on JBOSS AS 7
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/Bruno1982">Bruno Feki</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/641866#641866">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>I have an ear structured as follows:</p><p>core-1.0.ear</p><p>&#160;&#160;&#160;&#160; +lib</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; +core-jpa-1.0.jar /*JPA 2.0 Entities */</p><p>&#160;&#160;&#160;&#160; +core-ejb-1.0.jar&#160;&#160;&#160;&#160; /*EJB 3.1 Lite : Only Stateless Session Beans */</p><p>&#160;&#160;&#160;&#160; +core-web-1.0.jar&#160;&#160; /* Servlet 3.0 based web application with XHTML/Clean-AJAX UI */</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The application.xml of this ear is:</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p><span>&lt;application xmlns="</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>" xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>" xsi:schemaLocation="</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> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee/application_6.xsd" target="_blank">http://java.sun.com/xml/ns/javaee/application_6.xsd</a><span>" version="6"&gt;</span></p><p>&#160; &lt;description&gt;The main application for Bazars project&lt;/description&gt;</p><p>&#160; &lt;display-name&gt;core&lt;/display-name&gt;</p><p>&#160; &lt;module&gt;</p><p>&#160;&#160;&#160; &lt;java&gt;lib/core-jpa-1.0.jar&lt;/java&gt;</p><p>&#160; &lt;/module&gt;</p><p>&#160; &lt;module&gt;</p><p>&#160;&#160;&#160; &lt;ejb&gt;core-ejb-1.0.jar&lt;/ejb&gt;</p><p>&#160; &lt;/module&gt;</p><p>&#160; &lt;module&gt;</p><p>&#160;&#160;&#160; &lt;web&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;web-uri&gt;core-web-1.0.war&lt;/web-uri&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;context-root&gt;/shops&lt;/context-root&gt;</p><p>&#160;&#160;&#160; &lt;/web&gt;</p><p>&#160; &lt;/module&gt;</p><p>&lt;/application&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have already configured my datasource:</p><p>23:30:35,377 INFO&#160; [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jboss/datasources/MySqlDS]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>However, when i want to deploy the ear on JBOSS AS 7.0.2.Final, I have got the following error:</p><p>23:43:10,068 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "core-1.0.ear"</p><p>23:43:10,360 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "core-web-1.0.war"</p><p>23:43:10,362 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "lib/core-jpa-1.0.jar"</p><p>23:43:10,362 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "core-ejb-1.0.jar"</p><p>23:43:10,580 INFO&#160; [org.jboss.as.server.controller] (HttpManagementService-threads - 1) Deployment of "core-1.0.ear" was rolled back with failure message {"Services with missing/unavailable dependencies" =&gt; ["jboss.deployment.unit.\"core-1.0.ear\".PARSE missing [jboss.deployment.subunit.\"core-1.0.ear\".\"lib/core-jpa-1.0.jar\".STRUCTURE ]"]}</p><p>23:43:10,602 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment lib/core-jpa-1.0.jar in 20ms</p><p>23:43:10,607 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment core-ejb-1.0.jar in 25ms</p><p>23:43:10,614 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment core-web-1.0.war in 33ms</p><p>23:43:10,620 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment core-1.0.ear in 39ms</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The structure of core-jpa-1.0.jar is as follows:</p><p>core-jpa-1.0.jar</p><p>&#160;&#160;&#160;&#160; +META-INF</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; +persistence.xml</p><p>&#160;&#160;&#160;&#160; +com.blazar.*&#160; /*all entities*/</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The persistence.xml of this JPA 2.0 jar is:</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p><span>&lt;persistence xmlns="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span>" version="2.0"&gt;</span></p><p>&#160;&#160;&#160; &lt;persistence-unit name="MySQL5"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jta-data-source&gt;java:jboss/datasources/MySqlDS&lt;/jta-data-source&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;properties&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/properties&gt;</p><p>&#160;&#160;&#160; &lt;/persistence-unit&gt;</p><p>&lt;/persistence&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Please can you be of any help ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks a lot in advance.</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/641866#641866">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>