I've written a simple stateless session bean:

@Stateless
  | public class DALBean implements IDALLocal, IDALRemote 
  | {
  |     @PersistenceContext(unitName="blah")
  |     protected EntityManager em;
  | 
  |     
  |     public void addData() 
  |     {
  |             // TODO Auto-generated method stub
  | 
  |     }
  | 
  |     public void updateData() 
  |     {
  |             // TODO Auto-generated method stub
  | 
  |     }
  | 
  |     public void deleteData() 
  |     {
  |             // TODO Auto-generated method stub
  | 
  |     }
  | 
  |     public Collection <Listing> selectData(int accountId) 
  |     {
  |             
  |     }
  | }
I have also defined persistence.xml file in the META-INF folder:

<?xml version="1.0" encoding="UTF-8"?>
  | <xml-body>
  | <persistence>
  |  <persistence-unit name="blah">
  |     <jta-data-source>java:/DefaultDS</jta-data-source>
  |     <properties>
  |       <property name="hibernate.hbm2ddl.auto"
  |                 value="create-drop"/>
  |     </properties>
  |  </persistence-unit>
  | </persistence>
  | </xml-body>
When I start JBoss 4.0.4RC1 I get the following error:

22:07:30,956 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:service=EJB3,jar=benchmarkejb3.jar,name=DALBean
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:unitName=blah

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:unitName=blah
  State: NOTYETINSTALLED
  Depends On Me:
    jboss.j2ee:service=EJB3,jar=benchmarkejb3.jar,name=DALBean

Can you, please, help me with this!!!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931745#3931745

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931745


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to