facebook

Vanilla Spring-Hibernate Web Project Compilation Problem

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #286649 Reply

    John Mattos
    Member

    Hi there

    I created a new web project (no maven support) in MyEclipse 6.5, then added Spring support, then added hibernate support, and it seems not to have added all the necessary jar files.

    Within the ApplicationContext.xml, It cant find

    org.apache.commons.dbcp.BasicDataSource
    org.springframework.orm.hibernate3.LocalSessionFactoryBean

    I tried to keep it as simple as possible… what did I miss?

    #286694 Reply

    Loyal Water
    Member

    Right click on your project and go to Build path > Add Library > MyEclipse Library and add the “Spring Persistence core lib” and the “Spring 2.5 Persistence JDBC lib”.

    #286697 Reply

    John Mattos
    Member

    Makes sense, but the question is why wouldnt it add the persistence core and JDBC core jar’s if I added spring capability and added hibernate capability…?

    #286721 Reply

    Loyal Water
    Member

    You have an option of adding these jars when you add the spring capabilities to your project. These files are not added by default. Since you didn’t add these files while adding the spring capabilities, you can add them from the MyEclipse library like I suggested.

    #286724 Reply

    John Mattos
    Member

    ah okay. thanks.

    #286820 Reply

    Loyal Water
    Member

    Your Welcome.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Vanilla Spring-Hibernate Web Project Compilation Problem

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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