1 Reply Latest reply on Apr 2, 2006 11:56 PM by Russ

    Unable to Deploy EJB3.0 project jar

    Russ Newbie

      Guys:

      Okay, I am following a simple tutorial of creating an entity and statless session beans. I am use JBoss 4.0.3SP1, JDK 1.5.06. I can compile and deploy using ant. There is no problems. However, launching the server has problems. I have no other projects running on the App Server other than this project. I have followed the instructions of readying the AS to run EJB3.0 standard projects using the follow instructions:

      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=80345


      However, the server still complains about the project:

      [19:40:01,859] [WARN ] [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EJB3,jar=EJB3Demo.jar,name=BookBean
      [19:40:01,859] [WARN ] [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EJB3,jar=EJB3Demo.jar,name=BookBean
      [19:40:01,875] [WARN ] [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=EJB3Demo.jar
      java.lang.RuntimeException: Field javax.persistence.EntityManager com.russ.library.BookBean.em @PersistenceUnit in error: EMPTY STRING unitName but there is no deployments in scope
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldDependencies(PersistenceContextHandler.java:361)
       at org.jboss.ejb3.injection.PersistenceContextHandler.loadDependencies(PersistenceContextHandler.java:413)
      


      I have search the form and internet concerning the error, but no one has offered a solution to this type of error.

      Any help would be greatly appreciated.


      Russ