改成
<property name="target"><ref bean="loginService"/></property>
后报这个错误Error creating bean with name 'userManager' defined in ServletContext resource [/WEB-INF/config/spring/spring-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice
<property name="target"><ref bean="loginService"/></property>
后报这个错误Error creating bean with name 'userManager' defined in ServletContext resource [/WEB-INF/config/spring/spring-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice
解决方案 »
- acegi 下消息传输后的乱码问题
- struts2运行在Tomcat 注入EJB 找不到
- mysql数据乱码问题,求教高手,查了网上解决方法,但好像有新的问题
- Hibernate映射+HQL语句问题
- 《Java Persistence with Hibernate》(Hibernate实战)中一段代码不理解?
- windows7缓存的原理
- 求教:jboss中如何配置无状态Session EJB的连接池的最小EJB实例数量
- hibernate 奇怪问题?
- 谁知道sun的网站
- Strut2s 中的action要怎么实现相对路径啊
- 学了j2se想进一步学j2ee,急盼各位高手给点指导,推荐一本读物
- 开源项目:Jdon Framework
<bean id="kizaiTxManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="kizaiSessionFactory" />
</bean>
<tx:advice id="kizaiTxAdvice"
transaction-manager="kizaiTxManager">
<tx:attributes>
<tx:method name="*" rollback-for="Exception" />
</tx:attributes>
</tx:advice>
<aop:config>
<aop:advisor advice-ref="kizaiTxAdvice"
pointcut="execution(* org.opencarp.kizai.service.*.set*(..))" />
</aop:config>
以后要学会看报错信息:
Instantiation of bean failed;
nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/AdviceNoClassDefFoundError: 就是说类没有找到,一般是因为JAR包没有加进去的原因
当然还有可能的是JAR包的版本不对,在当前的JAR包版本中,还没有这个类