Announcement Announcement Module
Collapse
No announcement yet.
Spring+EJB3.0+hibernate application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring+EJB3.0+hibernate application

    I am trying to develop one application which shows few data of all candidate. I am using spring and Ejb. My web portion is handled by spring and service through an d connectivity through hibernate. But when ever i m trying to start the the server its showing error,

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'Manager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: ejb not bound
    I know i am doing something wrong in application-context.xml where spring is integrating with EJB. Can any body help me out.I am in a serious help as I am stuck on this from past 3 days.


    My applicationContext.xml is

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:context="http://www.springframework.org/schema/context"
           xmlns:jee="http://www.springframework.org/schema/jee"
           xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
           http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd">
           
           
           <bean id="Manager" class="org.springframework.jndi.JndiObjectFactoryBean" >
    		<property name="jndiName" value="java:comp/env/ejb/DAO" />
    		
    	</bean> 
           
     </beans>
Working...
X