This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes deployment error ,jpa(wl10.3.3) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "deployment error ,jpa(wl10.3.3)" Watch "deployment error ,jpa(wl10.3.3)" New topic

deployment error ,jpa(wl10.3.3)

mach zro

Joined: Jul 08, 2010
Posts: 4
I tried to write a simple appn using jpa


SessionBean :


But getting error at the time of deployment on weblogic 10.3.3 server:
Unable to deploy EJB: BookCatalogBean from book.jar:

No persistence unit named 'EntityBean' is available in scope book.jar. Available persistence units: []

at weblogic.ejb.container.deployer.EJBModule.prepare(
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(
at weblogic.application.internal.flow.DeploymentCallbackFlow$
at weblogic.application.utils.StateMachineDriver.nextState(
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(
Truncated. see log file for complete stacktrace

Caused By: java.lang.IllegalArgumentException: No persistence unit named 'EntityBean' is available in scope book.jar. Available persistence units: []
at weblogic.deployment.ModulePersistenceUnitRegistry.getPersistenceUnit(
at weblogic.deployment.BasePersistenceContextProxyImpl.<init>(
at weblogic.deployment.TransactionalEntityManagerProxyImpl.<init>(
at weblogic.deployment.BaseEnvironmentBuilder.createPersistenceContextProxy(
at weblogic.deployment.BaseEnvironmentBuilder.addPersistenceContextRefs(

try to be more clear, i'm in lack of ideas in this problem, even it sounds like a classic :I have spend hours trying to play around with this but have got nowhere.
please suggest solution
mach zro

Joined: Jul 08, 2010
Posts: 4 specify @Stateless(mappedName="entity/library/BookCatalogInterface")
and WebClient.jsp with bci = (BookCatalogInterface) ic.lookup("entity/library/BookCatalogInterface");
But getting error
Error:Unable to resolve 'entity.library.BookCatalogInterface'. Resolved 'entity.library'
I check jndi tree on console which specify Binding Name:

at jsp_servlet.__webclient._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.securedExecute(
at weblogic.servlet.internal.WebAppServletContext.execute(

How to solve this
I agree. Here's the link:
subject: deployment error ,jpa(wl10.3.3)
jQuery in Action, 3rd edition