I fix this issue just created two application context xml files:
1st. application-context.xml with entityManagerFactory bean. And registers in web.xml
Code:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/application-context.xml
</param-value>
</context-param>
2nd. application-context-web.xml without entityManagerFactory bean. And registers in web.xml
Code:
<servlet>
<servlet-name>controller</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/application-context-web.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>