This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Calling remove(Object primarykey) method from the localhome
 
jQuery in Action, 3rd edition