• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Help with ERROR [URLDeploymentScanner] Incomplete Deployment listing:

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I´m doing an enterprise application
Here is my persistence unit in the EJB:
<?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="WPC-ejbPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/wpc_pa1</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.archive.autodetection" value="class"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
</properties>
</persistence-unit>
</persistence>

And when I deployed it; I get the next message:

16:55:02,041 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=WPC.ear,jar=WPC-ejb.jar,unitName=WPC-ejbPU
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=wpc_pa1,service=DataSourceBinding
Depends On Me:
jboss.j2ee:ear=WPC.ear,jar=WPC-ejb.jar,name=OrganizacionFacadeBean,service=E
JB3

ObjectName: jboss.j2ee:ear=WPC.ear,jar=WPC-ejb.jar,name=OrganizacionFacadeBean,s
ervice=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:ear=WPC.ear,jar=WPC-ejb.jar,unitName=WPC-ejbPU

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:name=wpc_pa1,service=DataSourceBinding
State: NOTYETINSTALLED
Depends On Me:
persistence.units:ear=WPC.ear,jar=WPC-ejb.jar,unitName=WPC-ejbPU

Here is the session bean it mentions:
package dao;

import domain.Organizacion;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
*
* @author windows
*/
@Stateless
public class OrganizacionFacadeBean implements OrganizacionFacadeRemote {

@PersistenceContext
private EntityManager em;

public void create(Organizacion organizacion) {
em.persist(organizacion);
}

public void edit(Organizacion organizacion) {
em.merge(organizacion);
}

public void remove(Organizacion organizacion) {
em.remove(em.merge(organizacion));
}

public Organizacion find(Object id) {
return em.find(Organizacion.class, id);
}

public List<Organizacion> findAll() {
return em.createQuery("select object(o) from Organizacion as o").getResultList();
}

}

and my remote interface:
package dao;

import domain.Organizacion;
import java.util.List;
import javax.ejb.Remote;

/**
*
* @author windows
*/
@Remote
public interface OrganizacionFacadeRemote {

void create(Organizacion organizacion);

void edit(Organizacion organizacion);

void remove(Organizacion organizacion);

Organizacion find(Object id);

List<Organizacion> findAll();
}

Why is this happening?


 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"linker linker"

Please click on the "My Private Messages" link on top of this page, for a message from JavaRanch.
 
reply
    Bookmark Topic Watch Topic
  • New Topic