Results 1 to 6 of 6

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

  1. #1

    Default 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. #2
    Join Date
    Apr 2005
    Location
    Finland
    Posts
    314

    Default

    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.
    if a trainstation is where the train stops, what's a workstation...

  3. #3
    Join Date
    Dec 2006
    Posts
    311

    Default

    clean the project by project/clean on the eclipse main menu.

  4. #4
    Join Date
    Nov 2006
    Posts
    12

    Default

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

  5. #5

    Default

    Resolved by adding spring-tx.jar.
    Tank you

  6. #6

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •