This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling remove(Object primarykey) method from the localhome
 
Similar Threads
RemoveException vs RemoteException
session bean exception
Error deploying message driven bean
Help needed in .EAR deployment on Oracle Application Server 10g
Error while deploying .ear