Announcement

Collapse
No announcement yet.

There is no default persistence unit in this deployment

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • There is no default persistence unit in this deployment

    hallo liebe foris,

    ich bin zum ersten mal hier und versuch mich grad an einer j2ee anwendung.

    ich bekomme beim deployen auf dem jboss 4.2 folgende fehlermeldung:

    Code:
    11:52:05,937 WARN  [ServiceController] Ignoring request to stop nonexistent serv
    ice: jboss.j2ee:ear=candi.ear,jar=candi.jar,name=AuthenticationBean,service=EJB3
    ...
    11:52:05,953 WARN  [ServiceController] Problem starting service jboss.j2ee:servi
    ce=EJB3,module=candi.jar
    java.lang.RuntimeException: Illegal @PersistenceUnit on private javax.persistenc
    e.EntityManager de.package.candi.persistence.CopyOfCandiPersitenceBean.em :The
    re is no default persistence unit in this deployment.
            at org.jboss.injection.PersistenceUnitHandler.handleFieldAnnotations(Per
    sistenceUnitHandler.java:247)
    ...
    11:52:06,031 INFO  [EJB3Deployer] Deployed: file:/D:/Programme/jboss-4.2.2.GA/se
    rver/default/tmp/deploy/tmp56209candi.ear-contents/candi.jar
    11:52:06,046 INFO  [TomcatDeployer] deploy, ctxPath=/candi, warUrl=.../tmp/deplo
    y/tmp56209candi.ear-contents/candi-exp.war/
    11:52:06,203 INFO  [EARDeployer] Started J2EE application: file:/D:/Programme/jb
    oss-4.2.2.GA/server/default/deploy/candi.ear
    11:52:06,203 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
    
    --- MBeans waiting for other MBeans ---
    ObjectName: jboss.j2ee:service=EJB3,module=candi.jar
      State: FAILED
      Reason: java.lang.RuntimeException: Illegal @PersistenceUnit on private javax.
    persistence.EntityManager de.package.candi.persistence.CopyOfCandiPersitenceBe
    an.em :There is no default persistence unit in this deployment.
    
    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
    ObjectName: jboss.j2ee:service=EJB3,module=candi.jar
      State: FAILED
      Reason: java.lang.RuntimeException: Illegal @PersistenceUnit on private javax.
    persistence.EntityManager de.package.candi.persistence.CopyOfCandiPersitenceBe
    an.em :There is no default persistence unit in this deployment.
    
    
    11:52:06,281 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
    080
    11:52:06,312 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
    11:52:06,328 INFO  [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBos
    s_4_2_2_GA date=200710221139)] Started in 21s:500ms
    was bedeutet "there is no default persistence unit in this deployment" ?
    ichhab gelsesen, dass bei jboss per default die hsqldb eingerichtet ist.
    need help
    Zuletzt editiert von ma_ria; 26.10.2008, 20:04.

  • #2
    so ich hab eine mysql datenbank doch noch zum laufen gebracht
    hab mich an folgende anleitung gehalten:
    http://ltiwww.epfl.ch/Eclipse/LoadingJBoss.html

    hoffe es hilft jemandem
    schöne grüße
    maria

    Comment

    Working...
    X