Announcement Announcement Module
No announcement yet.
Bean Creation Problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bean Creation Problem

    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 mployeeService;

    public interface EmployeeEjbLocal extends IEmployeeService{



    <jee:local-slsb id="empLocal" jndi-name="EmployeeEjbLocal"
    business-interface=" session.EmployeeEjbLocal">

    <bean id="login" class=" ion">
    <property name="empService" ref="empLocal"></property>

    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 loyeeEjbLocal,org.springframework.aop.SpringProxy, org.springframework.aop.framework.Advised' to required type ' EmployeeService' for property 'empService'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy306 implementing loyeeEjbLocal,org.springframework.aop.SpringProxy, org.springframework.aop.framework.Advised] to required type [ mployeeService] for property 'empService': no matching editors or conversion strategy found