File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Author

deployment error ,jpa(wl10.3.3)

mach zro
Greenhorn

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

Business Interface:BookCatalogInterface.java


SessionBean : BookCatalogBean.java


persitent.xml

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(EJBModule.java:467)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
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(ModulePersistenceUnitRegistry.java:132)
at weblogic.deployment.BasePersistenceContextProxyImpl.<init>(BasePersistenceContextProxyImpl.java:38)
at weblogic.deployment.TransactionalEntityManagerProxyImpl.<init>(TransactionalEntityManagerProxyImpl.java:35)
at weblogic.deployment.BaseEnvironmentBuilder.createPersistenceContextProxy(BaseEnvironmentBuilder.java:974)
at weblogic.deployment.BaseEnvironmentBuilder.addPersistenceContextRefs(BaseEnvironmentBuilder.java:8

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
Greenhorn

Joined: Jul 08, 2010
Posts: 4

BookCatalogBean.java 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:
entity.library.BookCatalogInterface#entity.library.BookCatalogInterface

java.lang.NullPointerException
at jsp_servlet.__webclient._jspService(__webclient.java:132)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3686)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

How to solve this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deployment error ,jpa(wl10.3.3)
 
Similar Threads
Deploying j2ee project on jboss to multiple pc's
NameNotFoundExcption
No getter method for property - Problem
Struts: No getter method for property name problem
EJB3 entity bean