---
title: "class 'org.springframework.orm.hibernate3.LocalSessionFactoryBean' not found解决方法"
author: "bati99"
date: "2011-12-16T09:38:58Z"
tags: []
categories: ["编程语言"]
slug: "class-org-springframework-orm-hibernate3-localsessionfactorybean-not-found"
draft: false
lastmod: "2011-12-16T09:38:58Z"
id: 1313524
url: "https://bati99.iteye.com/blog/1313524"
---

在做Spring+Struts+Hibernate时，在刚增加了Hibernate开发能力后，增加Spring开发能力时，applicationContext.xml产生错误：class 'org.springframework.orm.hibernate3.LocalSessionFactoryBean' not found，在百度和Google上搜索了半天，没有找到解决方法。无意见看到一个网友的操作方法，呵呵，终于解决了，没有红叉了，现在把方法帖出来，供有此问题的朋友参考。

问题如下图所示：


![](http://dl.iteye.com/upload/attachment/606758/81387ac4-2005-3d35-ae38-3157422af341.jpg)

解决方法如下：
![](http://dl.iteye.com/upload/attachment/606760/f7888338-3ab7-3551-b237-2e04a6996364.jpg)

![](http://dl.iteye.com/upload/attachment/606762/9f7d9d3e-4771-377f-80c4-8bd39b3558ed.jpg)

![](http://dl.iteye.com/upload/attachment/606764/03ffcef7-8a5f-3004-8c1c-c5ad47490931.jpg)