I have *aplicationContext.xml* - configuration file: <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory" /> </bean>
<bean id="transactionProxy" abstract="true" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager"> <ref bean="transactionManager" /> </property> <property name="transactionAttributes"> <props> <prop key="insert*">PROPAGATION_REQUIRED</prop> <prop key="update*">PROPAGATION_REQUIRED</prop> <prop key="save*">PROPAGATION_REQUIRED</prop> <prop key="*">PROPAGATION_REQUIRED, readOnly</prop> </props> </property> </bean> And when i try to use aplicationContext in *Registration page*: public class Registration { @Property @Persist @Validate("required") private GenderType genderType; @Property @Persist private User user; private UserManager userManager; @Inject private ApplicationContext applicationContext; @SetupRender public void initialize() { if (user == null) { user = new UserBean(); } } public void onValidateFromRegistrationForm() { //TODO add validation logic } public void onSuccessFromRegistrationForm() { //TODO register user } } *I got this error:* [ERROR] ioc.Registry Error obtaining injected value for field com.borko.healthcare.tapestry.pages.Registration.applicationContext: No service implements the interface org.springframework.context.ApplicationContext. [ERROR] ioc.Registry Operations trace: [ERROR] ioc.Registry [ 1] Creating instantiator for component class com.borko.healthcare.tapestry.pages.Registration [ERROR] ioc.Registry [ 2] Running component class transformations on com.borko.healthcare.tapestry.pages.Registration [ERROR] ioc.Registry [ 3] Injecting field com.borko.healthcare.tapestry.pages.Registration.applicationContext [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Error obtaining injected value for field com.borko.healthcare.tapestry.pages.Registration.applicationContext: No service implements the interface org.springframework.context.ApplicationContext. org.apache.tapestry5.ioc.internal.OperationException: Error obtaining injected value for field com.borko.healthcare.tapestry.pages.Registration.applicationContext: No service implements the interface org.springframework.context.ApplicationContext. at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121) -- View this message in context: http://tapestry.1045711.n5.nabble.com/No-service-implements-the-interface-org-springframework-context-ApplicationContext-tp5716043.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