I have checkout jboss-head and build it.  I follow the TrailBlazer example.  

[ Entity Beans PAR file ]
author.par
--META-INF
-- -- persistence.xml
-- -- MANIFEST.MF
-- -- org/jboss/ejb3demo/Article.class
-- -- org/jboss/ejb3demo/Author.class

[ Session Beans Archive ]
authors-bean.ejb3
-- org/jboss/ejb3demo/Authors.class
-- org/jboss/ejb3demo/AuthorsBean.class

Article.class and Author.class are entity beans.

persistence.xml:

<?xml version="1.0" encoding="UTF-8"?>
  | <entity-manager>
  |   <name>articles</name>
  |   <jta-data-source>java:/DefaultDS</jta-data-source>
  |   <properties>
  |     <property name="hibernate.hbm2ddl.auto"
  |               value="create-drop"/>
  |   </properties>
  | </entity-manager>

AuthorBeans.java:

@Stateless 
  | @Remote(Authors.class)
  | public class AuthorsBean implements Authors
  | {
  |     @PersistenceContext(unitName="articles") 
  |     private EntityManager manager; 
  |     
  |     public void addArticle(Author author, String title, String body)
  |     {
  |         manager.persist(author);
  |         author.addArticle(title, body);
  |     }
  | . . . .
  | }

When Entity is deployed:

Info Message:

00:03:17,921 INFO  [JaccHelper] JACC Policy Configuration for deployment has 
been put in service
00:03:17,921 INFO  [Ejb3Deployment] EJB3 deployment time took: 15
00:03:17,921 INFO  [EJB3Deployer] Deployed: 
file:/C:/jboss/server/all/deploy/author.par


Error Message:

00:03:48,093 INFO  [EJB3Deployer] Deployed: 
file:/C:/jboss/server/all/deploy/authors-beans.ejb3
00:03:48,109 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:service=EJB3,name=AuthorsBean
  State: NOTYETINSTALLED
  I Depend On:
    entity.manager:name=articles

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: entity.manager:name=articles
  State: NOTYETINSTALLED
  Depends On Me:
    jboss.j2ee:service=EJB3,name=AuthorsBean


What am I doing wrong?

Thanks,
-Julian




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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to