I have problem with iBatis on production environment (Linux + Tomcat 5.0.30).
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean
with name 'sqlMapClient' defined in ServletContext reso
urce [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested
exception is org.springframework.beans.FatalBeanExcepti
on: Could not instantiate class
[org.springframework.orm.ibatis.SqlMapClientFactory Bean]; constructor threw
exception; nested except
ion is java.lang.NoClassDefFoundError:
com.ibatis.sqlmap.engine.transaction.external.Exte rnalTransactionConfig
org.springframework.beans.FatalBeanException: Could not instantiate class
[org.springframework.orm.ibatis.SqlMapClientFactory Bean];
constructor threw exception; nested exception is java.lang.NoClassDefFoundError:
com.ibatis.sqlmap.engine.transaction.external.Exte r
nalTransactionConfig
java.lang.NoClassDefFoundError:
com.ibatis.sqlmap.engine.transaction.external.Exte rnalTransactionConfig
at
org.springframework.orm.ibatis.SqlMapClientFactory Bean.class$(SqlMapClientFactoryBean.java:84)
at
org.springframework.orm.ibatis.SqlMapClientFactory Bean.<init>(SqlMapClientFactoryBean.java:84)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:274)
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:78)
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:55)
at
org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:48)
at
org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactor
y.java:310)
iBatis jars (ibatis-common-2.jar, ibatis-sqlmap-2.jar) are in /WEB-INF/lib. I tried to copy these jars into tomcat_home/shared/lib, but result was same. On windows machine same war works fine. Any suggestion?


Reply With Quote