Announcement Announcement Module
Collapse
No announcement yet.
Strange error: The type org.springframework.dao.support.DaoSupport cannot be resolved Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strange error: The type org.springframework.dao.support.DaoSupport cannot be resolved

    Hi all, i start a new web project with eclipse, using
    a fresh download of springframework 2.5.6; during the set-up of the project
    i imported some class from a previous project based upon springframework 2.5.5;

    I imported a simple class (ServiceBase) wich extends HibernateDaoSupport:

    public class ServiceBase extends HibernateDaoSupport
    {
    //class implementation
    }

    But eclipse gave me a strange error:
    "The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files".
    Can someone explain this????

  • #2
    This comes directly without any testing ... check that the filename matches with the class name. Like I said I'm not sure whether this is the actual problem.

    Comment


    • #3
      clean the project by project/clean on the eclipse main menu.

      Comment


      • #4
        DaoSupport is packaged within spring-tx. Please double check your classpath. HibernateDaoSupport is packaged within spring-orm. Maybe you missed the tx jar file.

        Comment


        • #5
          Resolved by adding spring-tx.jar.
          Tank you

          Comment


          • #6
            Resolveed : The type org.springframework.dao.support.DaoSupport cannot be resolved

            Issue : "The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files"

            Solution : By adding "spring-tx-XXX.jar" this issue is resolved.

            thanks all.

            Comment

            Working...
            X