Announcement Announcement Module
Collapse
No announcement yet.
beanRefContext.xml problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • beanRefContext.xml problem

    Hello,

    I want to use Spring MVC 3.0.5 with IBM Websphere 7.0 EJB3.0.
    I have managed to inject an stateless bean into a spring bean but I can not inject
    a spring bean into a stateless bean (I need to inject a ldapTemplate bean into DAO).

    I think the problem is with beanRefContext.xml ...

    Code:
    <bean id="contextFromBeanRef.context" class="org.springframework.context.support.ClassPathXmlApplicationContext">
    		<constructor-arg value="classpath*:app-servlet.xml" />
    	</bean>
    the error is
    EJB threw an unexpected (non-declared) exception during invocation of method "searchADUser". Exception data: javax.ejb.EJBException: session bean post construct failure; nested exception is: org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'ldapTemplate' is defined

    Does anyoane knows why the beans in app-servlet.xml are not created or what happends ?
Working...
X