java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Ejb as shared library problem
    via by 676767,
  • Persistence unit not found when deploying as virtual application
    via by c82b575e-ffa7-4943-9b8e-d7259fd4be03,
    • java.lang.IllegalArgumentException: No persistence unit named 'entityManager' is available in scope jsf_ejb_jpa. Available persistence units: [] at weblogic.persistence.ModulePersistenceUnitRegistry.getPersistenceUnit(ModulePersistenceUnitRegistry.java:130) at weblogic.persistence.BasePersistenceContextProxyImpl.init(BasePersistenceContextProxyImpl.java:40) at weblogic.persistence.TransactionalEntityManagerProxyImpl.init(TransactionalEntityManagerProxyImpl.java:31) at weblogic.persistence.EntityManagerInvocationHandlerFactory.createTransactionalEntityManagerInvocationHandler(EntityManagerInvocationHandlerFactory.java:20) at weblogic.persistence.PersistenceManagerObjectFactory.createPersistenceContextProxy(PersistenceManagerObjectFactory.java:66) at weblogic.persistence.PersistenceManagerObjectFactory.getObjectInstance(PersistenceManagerObjectFactory.java:31) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:251) at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:406) at weblogic.j2eeclient.java.ClientReadOnlyContextWrapper.lookup(ClientReadOnlyContextWrapper.java:35) at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130) at javax.naming.InitialContext.lookup(InitialContext.java:392) at javax.naming.InitialContext.doLookup(InitialContext.java:265) at com.oracle.pitchfork.inject.Jsr250Metadata.jndiLookup(Jsr250Metadata.java:307) at com.oracle.pitchfork.inject.Jsr250Metadata.resolveByName(Jsr250Metadata.java:303) at com.oracle.pitchfork.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:266) at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:228) at com.oracle.pitchfork.inject.Jsr250Metadata.inject(Jsr250Metadata.java:219) at com.oracle.pitchfork.spi.BaseComponentBrokerImpl.getBean(BaseComponentBrokerImpl.java:63) at com.oracle.pitchfork.spi.EjbComponentCreatorBrokerImpl.getBean(EjbComponentCreatorBrokerImpl.java:33) at weblogic.ejb.container.injection.EjbComponentCreatorImpl.getBean(EjbComponentCreatorImpl.java:76) at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:209) at weblogic.ejb.container.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:235) at weblogic.ejb.container.manager.StatelessManager.createBean(StatelessManager.java:293) at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:185) at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:114) at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:174) at weblogic.ejb.container.internal.BaseLocalObject.getBeanInstance(BaseLocalObject.java:146) at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:103) at weblogic.ejb.container.internal.BaseLocalObject.__WL_preInvoke(BaseLocalObject.java:67) at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:20) at com.example.dao.jpa.JpaUserDAO_wrkew_UserDAOImpl.add(Unknown Source) at com.example.backing.IndexBacking.addUser(IndexBacking.java:38)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,