Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling remove(Object primarykey) method from the localhome

 
karthik krishnarao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic