- This topic has 3 replies, 2 voices, and was last updated 16 years, 1 month ago by Dwight.
-
AuthorPosts
-
Douglas M HurstParticipantI’m trying to go through the Spring Hibernate tutoial updated to 6.5 specs
It seems to add Hibernate ok, but when I add Spring, all goes well until I click finish
applicationContext.xml has a error where the hibernate reference is added.
<?xml version=”1.0″ encoding=”UTF-8″?>
<beans
xmlns=”http://www.springframework.org/schema/beans”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd”><bean id=”sessionFactoyBean”
class=”org.springframework.orm.hibernate3.LocalSessionFactoryBean”>
<property name=”configLocation”
value=”file:src/hibernate.cfg.xml”>
</property>
</bean></beans>I get a big red X on the bold line that starts <bean id…/>.
It looks like something was not added in th form of a library. src/hibernate.cfg.xml is certainly there.
Did I forget to click something that must be clicked under the new versions?
Douglas M HurstParticipantI notice in the hibernate3 spring 1.2 tutorial, I’m asked to add a Spring library specifically for Hibernate 3 (ORM/DAO/Hibernate3). I don’t see such a choice when I’m selecting Spring 2.5 libraries.
Douglas M HurstParticipantI manually added the Spring Spring 2.5 JDBC Persistance library and it seemed to solve the problem.
DwightParticipantpls update the tutorial. If updating the flash is a major project, at least put in some text re Spring 2.5 & the libraries that should be selected. (The tutorial i was using was the “Hibernate and Spring Tutorial” at http://127.0.0.1:53610/help/topic/com.genuitec.myeclipse.doc/html/quickstarts/hibernateandspring/index.html, and this issue arose in the second part of Section 4, adding Hibernate & Spring capabilities.)
-
AuthorPosts