Discussions

Hi,
I add a new method into an existing stateless session bean EquipmentServiceSession. the method signature is like
/**
* @ejbgen:remote-method
* is-idempotent=true
*/
public EquipmentInfo[] getActiveEquipment(Date effectiveFrom, Date effectiveTo) throws ...
After rebuilding the EAR and trying to deploy it onto a Weblogic Server 8.1, get the following exception
===========================
Kernel>> <Stack trace for message 149004
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: prepare failed for semspack.jar
Module: semspack.jar Error: Exception preparing module: EJBModule(semspack.jar,status=NEW)
Unable to deploy EJB: C:\bea\USER_P~1\domains\CMRSDO~1\.\myserver\.wlnotdelete\semspackEAS\semspack.jar from semspack.jar:
weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to set the idempotency for method 'getActiveEquipment(java.util.Date,java.util.Date)' on EJB 'EquipmentServiceSession'. No matching method could be found. Please verify the method signature specified in the weblogic-ejb-jar.xml file matches that of your interface for this EJB.
……
Caused by: java.lang.Throwable: Substituted for the exception weblogic.ejb.container.deployer.DeploymentDescriptorException which lacks a String contructor, original message - Unable to set the idempotency for method 'getActiveEquipment(java.util.Date,java.util.Date)' on EJB 'EquipmentServiceSession'. No matching method could be found. Please verify the method signature specified in the weblogic-ejb-jar.xml file matches that of your interface for this EJB.
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.processIdempotency(MBeanDeploymentInfoImpl.java:1116)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.processSpecificMethodIdempotency(MBeanDeploymentInfoImpl.java:1091)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.initializeIdempotentMethods(MBeanDeploymentInfoImpl.java:739)
at weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.(MBeanDeploymentInfoImpl.java:232)
at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1186)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:372)
===============================
I checked the generated weblogic-ejb-jar.xml, the method definition is in it and matches the generated remote interface of this EJB.
Any idea for the issue? Thanks in advance.

TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations technology projects - with its network of technology-specific websites, events and online magazines.