facebook

Adding Spring 3.2 capability

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #286590 Reply

    DougMH
    Member

    I’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&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd”&gt;

    <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?

    #286592 Reply

    DougMH
    Member

    I 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.

    #286593 Reply

    DougMH
    Member

    I manually added the Spring Spring 2.5 JDBC Persistance library and it seemed to solve the problem.

    #289848 Reply

    Dwight
    Participant

    pls 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.)

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Adding Spring 3.2 capability

You must be logged in to post in the forum log in