Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2615

IOC autobuild conflict between org.hibernate.Session and the FullTextSession from the hibernate serach module

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.15
    • 5.0.15
    • tapestry-hibernate
    • None

    Description

      i use Tapestry's hibernate module and wrote an service that use the FullTextSession from the hibernate search module.
      since howards svn commit (release 686850 / TAPESTRY-2571: Add configuration to turn off the automatic creation of ValueEncoders for Hibernate entities)
      my application throw an exception at startup like this:

      Caused by: java.lang.RuntimeException: Service interface org.hibernate.Session is matched by 2 services: FullTextSession, Session.
      Automatic dependency resolution requires that exactly one service implement the interface.

      my suggestion is:
      add a Marker "HibernateCore" to all Session parameters in the build calls in HibernateModule

      Attachments

        1. Hibernate_Session_Marker.patch
          5 kB
          Sven Homburg

        Activity

          People

            hlship Howard Lewis Ship
            homburgs Sven Homburg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: