Hello, everybody!
I am getting an exception:
"Error obtaining injected value for field
tap.execounting.pages.TeacherPage.tMed: No service implements the interface
tap.execounting.dal.mediators.TeacherMedImpl."

So the problem seems strange to me, because of:
1) TeacherMed - is an interface, and TeacherMedImpl is the implementing
class accordingly.
2) But the exception is about "no service implements the interface
TeacherMedImpl" - which is the class.

Additional info:
These classes are located in the same package.
Exception occurs regardless of where binder.bind is called from. I have
added my own module and enlisted him in Submodules.
If I call binder.bind(TeacherMedImpl.class) everything is fine, regardless
of where the call is coming from.

bind code:

package tap.execounting.dal.mediators;

import org.apache.tapestry5.ioc.ServiceBinder;

public class MediatorModule {
        public static void bind(ServiceBinder binder) {
                //binder.bind(TeacherMed.class, TeacherMedImpl.class); //not 
works
                binder.bind(TeacherMedImpl.class); //roger that
        }

}




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/again-strange-No-service-implements-the-interface-tap-execounting-dal-mediators-TeacherMedImpl-tp5714888.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to