java - MalformedParameterizedTypeException when starting the server when defining 2 services which uses each other -


i have 2 service classes defined in ejb configuration file.

servicea interface serviceaimpl implementation of serviceb other interface servicebimpl implementation of that

each service needs other service internal operations. ejb configuration definition this

public servicea getservicea(){    return new serviceaimpl(getserviceb()); }  public serviceb getserviceb(){   return new servicebimpl(getservicea()); } 

but when start server there org.springframework.beans.factory.beancreationexception

saying

initialization of bean failed; nested exception java.lang.reflect.malformedparameterizedtypeexception 

any ideas solve , in better way


Comments