Dear all,

I am using spring ioc and ejbsession beans.My ejb localBean is extending the interface.

In context.xml am assigning ejblocal to interface.Then i am getting the following convertion exception. My code:

import javax.ejb.Local;

import com.carrefour.fr.portail.carburant.emp.services.IE mployeeService;

@Local
public interface EmployeeEjbLocal extends IEmployeeService{

}

xml


<jee:local-slsb id="empLocal" jndi-name="EmployeeEjbLocal"
business-interface="com.carrefour.fr.portail.carburant.emp. session.EmployeeEjbLocal">
</jee:local-slsb>

<bean id="login" class="com.fr.carrefour.portail.carburant.LoginAct ion">
<property name="empService" ref="empLocal"></property>
</bean>


LoginAction
private IEmployeeService empService;

public IEmployeeService getEmpService() {
return empService;
}

public void setEmpService(IEmployeeService empService) {
System.out.println("Checking in login action");
this.empService = empService;
}

org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'login' defined in ServletContext resource [/WEB-INF/actions-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedEx ception: Failed to convert property value of type '$Proxy306 implementing com.carrefour.fr.portail.carburant.emp.session.Emp loyeeEjbLocal,org.springframework.aop.SpringProxy, org.springframework.aop.framework.Advised' to required type 'com.carrefour.fr.portail.carburant.emp.services.I EmployeeService' for property 'empService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy306 implementing com.carrefour.fr.portail.carburant.emp.session.Emp loyeeEjbLocal,org.springframework.aop.SpringProxy, org.springframework.aop.framework.Advised] to required type [com.carrefour.fr.portail.carburant.emp.services.IE mployeeService] for property 'empService': no matching editors or conversion strategy found