Announcement Announcement Module
Collapse
No announcement yet.
java.lang.NoClassDefFoundError : org/objectweb/jotm/Current Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    The required jar must not be on the classpath of the application, hence the error.

    Comment

    Working...
    X