-
1. Re: required remove method functionality and code
mallikarjun_nbsg Jun 9, 2008 12:57 AM (in response to mallikarjun_nbsg)when trying to remove a record from the DB. I am using findByPrimaryKey(id) method and then calling home.remove method, but while deployment I am getting the following error. Please help me out to remove the record from DB.
10:01:14,271 WARN [verifier] EJB spec violation:
Bean : RCVlanHome
Method : public abstract void remove() throws RemoveException, EJBException
Section: 12.2.11
Warning: Each local home method must match a method defined in the entity bean class.
10:01:14,302 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.2/server/default/deploy/sasemsProj.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:553)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)