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 Calling remove(Object primarykey) method from the localhome Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Calling remove(Object primarykey) method from the localhome" Watch "Calling remove(Object primarykey) method from the localhome" New topic
Author

Calling remove(Object primarykey) method from the localhome

karthik krishnarao
Greenhorn

Joined: May 26, 2011
Posts: 2
Hi,
I am trying to invoke remove(Object primarykey) method from the localhome to delete a database record. I am using container managed persistence. The code complies fine but the problem occurs when i try to deploy the ear on oracle AS. I receive the following error .

Base Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application yyyy: Error loading package at file:<path>xxxEjb.jar,

Error compiling <path>xxxEjb.jar: Syntax error in source



the code is built with jdk 1.4.2. I have included the ejbHomeRemove(Object primarykey) method in addition to the ejbRemove(Object primarykey) in the bean because oracle complained that the method mapped to remove in the localhome interface is ejbHomeRemove. This is the error i get when i don't include the ejbHomeRemove method in the Bean.

Base Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Bean implementation of public abstract void <qualifiedname>XXXLocalHome.remove(java.lang.Object) throws javax.ejb.RemoveException,javax.ejb.EJBException (bean method signature should be public void <qualifiedname>XXXBean.ejbHomeRemove(...)) not found.

I have spent a few days trying to figure this out but to no effect. Could some one please help me on this


 
jQuery in Action, 2nd edition
 
subject: Calling remove(Object primarykey) method from the localhome