[jboss-user] [EJB 3.0] - Re: remove method functionality in CMP Bean

mallikarjun_nbsg do-not-reply at jboss.com
Mon Jun 9 00:54:08 EDT 2008

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)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156523#4156523

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156523

More information about the jboss-user mailing list