<!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;"> </p><p>I have an ear structured as follows:</p><p>core-1.0.ear</p><p>     +lib</p><p>          +core-jpa-1.0.jar /*JPA 2.0 Entities */</p><p>     +core-ejb-1.0.jar     /*EJB 3.1 Lite : Only Stateless Session Beans */</p><p>     +core-web-1.0.jar   /* Servlet 3.0 based web application with XHTML/Clean-AJAX UI */</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The application.xml of this ear is:</p><p><?xml version="1.0" encoding="UTF-8"?></p><p><span><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"></span></p><p>  <description>The main application for Bazars project</description></p><p>  <display-name>core</display-name></p><p>  <module></p><p>    <java>lib/core-jpa-1.0.jar</java></p><p>  </module></p><p>  <module></p><p>    <ejb>core-ejb-1.0.jar</ejb></p><p>  </module></p><p>  <module></p><p>    <web></p><p>      <web-uri>core-web-1.0.war</web-uri></p><p>      <context-root>/shops</context-root></p><p>    </web></p><p>  </module></p><p></application></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have already configured my datasource:</p><p>23:30:35,377 INFO  [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;"> </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  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "core-1.0.ear"</p><p>23:43:10,360 INFO  [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  [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  [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  [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" => ["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  [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  [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  [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  [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;"> </p><p>The structure of core-jpa-1.0.jar is as follows:</p><p>core-jpa-1.0.jar</p><p>     +META-INF</p><p>          +persistence.xml</p><p>     +com.blazar.*  /*all entities*/</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The persistence.xml of this JPA 2.0 jar is:</p><p><?xml version="1.0" encoding="UTF-8"?></p><p><span><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"></span></p><p>    <persistence-unit name="MySQL5"></p><p>        <provider>org.hibernate.ejb.HibernatePersistence</provider></p><p>        <jta-data-source>java:jboss/datasources/MySqlDS</jta-data-source></p><p>        <properties></p><p>            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/></p><p>        </properties></p><p>    </persistence-unit></p><p></persistence></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Please can you be of any help ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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>