我现在把springside的mini-web程序中的hibernate改为ibatis
修改完之后
系统提示
2010-07-14 10:54:16,156 [main] ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.ProviderManager#0': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.authentication.AuthenticationManagerFactoryBean] while setting bean property 'parent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0': Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springside.examples.miniweb.service.account.UserDetailsServiceImpl.setAccountManager(org.springside.examples.miniweb.service.account.AccountManager); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springside.examples.miniweb.service.account.AccountManager.setUserDao(org.springside.examples.miniweb.dao.account.UserDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in file [D:\workspace\mini-web\target\classes\org\springside\examples\miniweb\dao\account\UserDao.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlMapClient' is required
我的applicationContext.xml中加啦
<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">   
<property name="configLocation" value="SqlMapConfig.xml" />   
<property name="dataSource" ref="dataSource"/>     </bean>   
      
<bean id="transactionManagerIbatis"   
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">   
<property name="dataSource">
<ref local="dataSource"/>
</property>   
</bean>   
系统中因为使用了@Autowire等注释进行封装
所以没有配置文件在这里小妹想请问大家如何解决这个我饿恩梯
PS
在manager中把setDao前的@Autowire去掉到时可以,但是在applicationContext.xml中加入如下代码
<bean id="userDao"
class="org.springside.examples.miniweb.dao.account.userDao">
<property name="dataSource">
<ref local="dataSource"/>
</property>
<property name="sqlMapClient">
<ref local="sqlMapClient" />
</property>
</bean> <bean id="accountManager"
class="org.springside.examples.miniweb.service.account.AccountManager">
<property name="userDao">
<ref local="userDao"/>
</property>
</bean>
会报security中登录的那个方法空指针小妹很急  在线等ing