Results 1 to 2 of 2
  1. #1
    Shirish is offline Member
    Join Date
    Mar 2011
    Posts
    1
    Rep Power
    0

    Cool No persistence unit named 'entityManager' is available in scope MyFacade.jar.

    Any idea about this error:

    No persistence unit named 'entityManager' is available in scope MyFacade.jar. Available persistence units: []
    .
    weblogic.application.ModuleException: Exception preparing module: EJBModule(MyFacade.jar)
    Unable to deploy EJB: MerchantFacadeBean from MyFacade.jar:
    No persistence unit named 'entityManager' is available in scope MyFacade.jar. Available persistence units: []
    at weblogic.ejb.container.deployer.EJBModule.prepare( EJBModule.java:469)
    at weblogic.application.internal.flow.ModuleListenerI nvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallb ackFlow$1.next(DeploymentCallbackFlow.java:517)
    at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.DeploymentCallb ackFlow.prepare(DeploymentCallbackFlow.java:159)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.IllegalArgumentException: No persistence unit named 'entityManager' is available in scope MyFacade.jar. Available persistence units: []
    at weblogic.deployment.ModulePersistenceUnitRegistry. getPersistenceUnit(ModulePersistenceUnitRegistry.j ava:132)
    at weblogic.deployment.BasePersistenceContextProxyImp l.<init>(BasePersistenceContextProxyImpl.java:39)
    at weblogic.deployment.TransactionalEntityManagerProx yImpl.<init>(TransactionalEntityManagerProxyImpl.j ava:26)
    at weblogic.deployment.EntityManagerInvocationHandler Factory.createTransactionalEntityManagerInvocation Handler(EntityManagerInvocationHandlerFactory.java :18)
    at weblogic.deployment.BaseEnvironmentBuilder.createP ersistenceContextProxy(BaseEnvironmentBuilder.java :973)
    Truncated. see log file for complete stacktrace
    >

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    10

    Default

    Yeah well it says that it can't find any persistence units. Do you have any persisence unit defined in your persistence.xml?

Similar Threads

  1. The project does not contain a persistence unit
    By newbiejava in forum New To Java
    Replies: 1
    Last Post: 10-07-2010, 09:35 AM
  2. Named Variables and Exponents
    By kathekas in forum New To Java
    Replies: 5
    Last Post: 09-14-2009, 06:58 PM
  3. MappingException: Named query not known :
    By abhibh_1 in forum Web Frameworks
    Replies: 0
    Last Post: 08-14-2007, 12:59 PM
  4. named pipes
    By samson in forum Networking
    Replies: 1
    Last Post: 04-04-2007, 06:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •