[jboss-user] [EJB 3.0] New message: "Error on deploy persistence unit"

Jose M. M. M. do-not-reply at jboss.com
Thu Feb 25 12:58:18 EST 2010


User development,

A new message was posted in the thread "Error on deploy persistence unit":

http://community.jboss.org/message/528577#528577

Author  : Jose M. M. M.
Profile : http://community.jboss.org/people/jotremar

Message:
--------------------------------------------------------------
When i try to deploy a ejb project it say:
 
Failed to create Resource Practica_final-ejb.jar - cause: java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **") Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall") Deployment "persistence.unit:unitName=#ejbPU" is missing the following dependencies: Dependency "jboss.jca:name=comercioBD,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **") DEPLOYMENTS IN ERROR: Deployment "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' ** Deployment "jboss.jca:name=comercioBD,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' ** -> org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **") Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall") Deployment "persistence.unit:unitName=#ejbPU" is missing the following dependencies: Dependency "jboss.jca:name=comercioBD,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **") DEPLOYMENTS IN ERROR: Deployment "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' ** Deployment "jboss.jca:name=comercioBD,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **
 
 
My files:
-------------------persistence.xml---------------
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
  <persistence-unit name="ejbPU" transaction-type="JTA">
    <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
    <jta-data-source>java:/comercioBD</jta-data-source>
    <class>modelo.Seccion</class>
    <class>modelo.Producto</class>
    <class>modelo.Cliente</class>
    <class>modelo.Venta</class>
    <exclude-unlisted-classes>true</exclude-unlisted-classes>
    <properties>
    </properties>
  </persistence-unit>
</persistence>
 
 
 
------------------ejbPU-ds.xml-------------------
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
  <local-tx-datasource>
    <jndi-name>comercioBD</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/practica_final</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>root</user-name>
    <password>root</password>
    <min-pool-size>5</min-pool-size>
    <max-pool-size>20</max-pool-size>
    <idle-timeout-minutes>5</idle-timeout-minutes>
  </local-tx-datasource>
</datasources>
 
 
 
 
 
----------------ejb-------------
@Stateless
public class TiendaBean implements TiendaRemote, TiendaLocal {
    public static final String RemoteJNDIName =  TiendaBean.class.getSimpleName() + "/remote";
    public static final String LocalJNDIName =  TiendaBean.class.getSimpleName() + "/local";
    @PersistenceContext
    private EntityManager em;
 
...
 
}

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/528577#528577




More information about the jboss-user mailing list