-
Feb 20th, 2007, 09:58 AM
#1
java.lang.NoClassDefFoundError : org/objectweb/jotm/Current
Hi Folks,
I am using Geronimo as container and trying to create Trasaction manger which uses jotm it give error as follows.
javax.servlet.ServletException: Error creating bean with name 'jotm' defined in file [C:\dev\tools\websphere\bin\test.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.transaction.jta.JotmFactoryBea n]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/objectweb/jotm/Current
my test.xml looks like this
<beans>
<bean id="jotm" class="org.springframework.transaction.jta.JotmFac toryBean"/>
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTran sactionManager">
<constructor-arg>
<ref local="jotm" />
</constructor-arg>
</bean>
<bean id="accountManager" class="com.anfcorp.spring.test.DefaultAccountManag er"/>
<bean id="accountManager1"
class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="transactionManager"/></property>
<property name="target"><ref local="accountManager"/></property>
<property name="transactionAttributes">
<props>
<prop key="inseerert*">
PROPAGATION_REQUIRED, ISOLATION_READ_COMMITTED</prop>
<prop key="transfer*">
PROPAGATION_REQUIRED, ISOLATION_SERIALIZABLE</prop>
<prop key="deposit*">
PROPAGATION_REQUIRED, ISOLATION_READ_COMMITTED</prop>
</props>
</property>
</bean>
</beans>
i have jotm.jar file in ear file. but still it gives the same error.
Any suggestion on this highly appreciated.
Thanks,
Srikanth
-
Feb 20th, 2007, 10:04 AM
#2
The required jar must not be on the classpath of the application, hence the error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules