I am a new to Stripes developement. After working on sample application using
Hibernate, Spring application is throwing error like
net.sourceforge.stripes.exception.StripesRuntimeException: Unable to find
SpringBean with name [userInfoService] or type
[com.flex.UserInfoServiceImpl] in the Spring application context.
net.sourceforge.stripes.integration.spring.SpringHelper.findSpringBean(SpringHelper.java:270)
net.sourceforge.stripes.integration.spring.SpringHelper.injectBeans(SpringHelper.java:128)
net.sourceforge.stripes.integration.spring.SpringHelper.injectBeans(SpringHelper.java:93)
net.sourceforge.stripes.integration.spring.SpringHelper.injectBeans(SpringHelper.java:81)
Is any one help me on how to resolve the error?
I have defined the Spring Configuration file like
Spring-Model.xml
<beans default-autowire="byName">
<bean id="txManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager" />
<bean
class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"
/>
<bean
class="org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor">
<property name="transactionInterceptor" ref="txInterceptor" />
</bean>
<bean id="txInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager" ref="txManager" />
<property name="transactionAttributeSource">
<bean
class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"
/>
</property>
</bean>
<bean id="userInfoService" class="com.flex.UserInfoServiceImpl" />
<bean id="codeTableService" class="com.flex.CodeTableServiceImpl" />
</beans>
Spring-resources.xml
<beans default-autowire="byName">
<bean id="sessionFactory"
class="com.flex.palutla.spring.util.AnnotationSessionFactoryBean">
<property name="dataSource" ref="FlexDataSource" />
<property name="configLocation"
value="/WEB-INF/hibernate.cfg.xml" />
<property name="configurationClass"
value="org.hibernate.cfg.AnnotationConfiguration" />
property name="hibernateProperties">
<props>
<prop
key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
</props>
</property>
</bean>
<bean id="userInfoDAO" class="com.flex.dao.impl.UserInfoDAOImpl" />
<bean id="codeTableDAO" class="com.flex.dao.impl.CodeTableDAOImpl" />
</beans>
--
View this message in context:
http://old.nabble.com/net.sourceforge.stripes.exception.StripesRuntimeException%3A-Unable-to-find-SpringBean-with-name--userInfoService--or-type--com.flex.UserInfoServiceImpl--in-the-Spring-application-context.-tp26948001p26948001.html
Sent from the stripes-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users