mercredi 18 mars 2015

Accessing external EJB in Spring project

I have my Spring project, say SpringMVCExample and also system-core, where I have EJB bean PlaceService. Simple question:


how can I make this bean accessible in SpringMVCExample? In my SpringMVCExample build path looks like: enter image description here


and system-core enter image description here


Also, in SpringMVCExample inside servlet-context.xml there is



<jee:jndi-lookup id="PlaceServiceLocal" jndi-name="ejb:/system_core//PlaceService!com.example.servicesLocal.PlaceServiceLocal" />


Unfortunately, I am not able to use this bean because of the following error:



ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/example/servicesLocal/PlaceServiceLocal


Any thoughts? Regards


Aucun commentaire:

Enregistrer un commentaire