Ok, have to stay on that track then ;-)
After adding the jar from sourceforce (cglib-2.2_beta1.jar)
I get the message;
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'accountService' defined in ServletContext resource
[/WEB-INF/spring.xml]: Initialization of bean failed; nested exception is
java.lang.NoClassDefFoundError: org/objectweb/asm/Type
Not giving up that easy I tried the jar what is shipped with
'spring-framework-2.0.3-with-dependencies' in the lib folder under cglib. It
is called cglib-nodep-2.1_3.jar
This gave a simple error about 'Superclass has no null constructors but no
arguments were given', added a empty constructor and Walla, it works
Thus larry could you add the following to finish the converting from
IbatisDao to springDao with ibatis sqlmaps?
1) Add cglib-nodep-2.1_3.jar to the classpath
2) OrderService.java
Add the annotation for spring to implement transactions, meaning
at @Transactional just above the insertOrder method
at @Transactional(readOnly=true)just above the getOrder method
Add a empty constructor;
public OrderService() {
}
3) Spring config
Add the following to the spring config file;
<!-- TRANSACTIONS -->
<bean id="txManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
</bean>
<bean
class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCr
eator"/>
<bean
class="org.springframework.transaction.interceptor.TransactionAttributeSourc
eAdvisor">
<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.AnnotationTransactionAttri
buteSource"/>
</property>
</bean>