Announcement Announcement Module
Collapse
No announcement yet.
Fail to create JTA transaction using WLS 8.1 and Spring 1.2.8 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fail to create JTA transaction using WLS 8.1 and Spring 1.2.8

    Hi,

    I tried to use JTA transaction in my transaction manager by specifying this:

    <bean id="jndiTemplate"
    class="org.springframework.jndi.JndiTemplate">
    <property name="environment">
    <props>
    <prop key="java.naming.factory.initial">
    weblogic.jndi.WLInitialContextFactory
    </prop>
    <prop key="java.naming.provider.url">t3://127.0.0.1:7001</prop>
    </props>
    </property>
    </bean>

    <bean id="transactionManager_jta"
    class="org.springframework.transaction.jta.WebLogi cJtaTransactionManager">
    <property name="jndiTemplate">
    <ref bean="jndiTemplate" />
    </property>
    </bean>

    Then, I called an CMT SLSB and it works fine. However, when I tried to access database, a CannotCreateTransactionException was thrown:

    [java] org.springframework.transaction.CannotCreateTransa ctionException: JTA failure on begin; nested exception is javax.transaction.SystemException: No default ORB selected for the current thread [java] javax.transaction.SystemException: No default ORB selected for the current thread [java] at weblogic.corba.j2ee.transaction.TransactionManager Impl.getTxFactory(TransactionManagerImpl.java:91) [java] at weblogic.corba.j2ee.transaction.TransactionManager Impl.begin(TransactionManagerImpl.java:116) [java] at weblogic.corba.j2ee.transaction.TransactionManager Wrapper.begin(TransactionManagerWrapper.java:94) [java] at org.springframework.transaction.jta.WebLogicJtaTra nsactionManager.doJtaBegin(WebLogicJtaTransactionM anager.java:272) [java] at org.springframework.transaction.jta.JtaTransaction Manager.doBegin(JtaTransactionManager.java:628) [java] at org.springframework.transaction.support.AbstractPl atformTransactionManager.getTransaction(AbstractPl atformTransactionManager.java:283) [java] at org.springframework.transaction.interceptor.Transa ctionA

    After that, when I included 'weblogic.jar' to the classpath, it works. Therefore, I would like to know if 'weblogic.jar' is required to use WebLogic JTA transaction ?

    Thanks.

    Regards,
    Koala
Working...
X