Bruno Feki [http://community.jboss.org/people/Bruno1982] created the discussion

"EAR Deployment Failure on JBOSS AS 7"

To view the discussion, visit: http://community.jboss.org/message/641866#641866

--------------------------------------------------------------
Hi,

I have an ear structured as follows:
core-1.0.ear
     +lib
          +core-jpa-1.0.jar /*JPA 2.0 Entities */
     +core-ejb-1.0.jar     /*EJB 3.1 Lite : Only Stateless Session Beans */
     +core-web-1.0.jar   /* Servlet 3.0 based web application with 
XHTML/Clean-AJAX UI */

The application.xml of this ear is:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns=" http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee"; xmlns:xsi=" 
http://www.w3.org/2001/XMLSchema-instance 
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" 
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee  
http://java.sun.com/xml/ns/javaee/application_6.xsd 
http://java.sun.com/xml/ns/javaee/application_6.xsd"; version="6">
  <description>The main application for Bazars project</description>
  <display-name>core</display-name>
  <module>
    <java>lib/core-jpa-1.0.jar</java>
  </module>
  <module>
    <ejb>core-ejb-1.0.jar</ejb>
  </module>
  <module>
    <web>
      <web-uri>core-web-1.0.war</web-uri>
      <context-root>/shops</context-root>
    </web>
  </module>
</application>

I have already configured my datasource:
23:30:35,377 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service 
thread 1-4) Bound data source [java:jboss/datasources/MySqlDS]

However, when i want to deploy the ear on JBOSS AS 7.0.2.Final, I have got the 
following error:
23:43:10,068 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) 
Starting deployment of "core-1.0.ear"
23:43:10,360 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) 
Starting deployment of "core-web-1.0.war"
23:43:10,362 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) 
Starting deployment of "lib/core-jpa-1.0.jar"
23:43:10,362 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) 
Starting deployment of "core-ejb-1.0.jar"
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 
]"]}
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
23:43:10,607 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) 
Stopped deployment core-ejb-1.0.jar in 25ms
23:43:10,614 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) 
Stopped deployment core-web-1.0.war in 33ms
23:43:10,620 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) 
Stopped deployment core-1.0.ear in 39ms

The structure of core-jpa-1.0.jar is as follows:
core-jpa-1.0.jar
     +META-INF
          +persistence.xml
     +com.blazar.*  /*all entities*/

The persistence.xml of this JPA 2.0 jar is:
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns=" http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence"; version="2.0">
    <persistence-unit name="MySQL5">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <jta-data-source>java:jboss/datasources/MySqlDS</jta-data-source>
        <properties>
            <property name="hibernate.dialect" 
value="org.hibernate.dialect.MySQL5Dialect"/>
        </properties>
    </persistence-unit>
</persistence>

Please can you be of any help ?

Thanks a lot in advance.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/641866#641866]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to