Announcement Announcement Module
Collapse
No announcement yet.
EJB Trasaction & Spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EJB Trasaction & Spring

    Hi,
    I have a session bean which extends from org.springframework.ejb.support.AbstractStatelessS essionBean.
    and my spring context file for the EJB.


    <bean id="x1" class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName"><value>jdbc/x1</value></property>
    </bean>

    <bean id="x2" class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName"><value>jdbc/x2</value></property>
    </bean>


    <bean id="test1" class="test1DAO"> <!-- read only calls -->
    <property name="dataSource"><ref bean="x1"/></property>
    </bean>


    <bean id="test2" class="test2DAO">
    <property name="dataSource"><ref bean="x2"/></property>
    </bean>

    I use EJB Transaction and not spring.
    In the "onEJBCreate", i get the service bean "test2" & "test1".
    I have made transaction property to "NOT SUPPORTED", for
    all remote methods calls which forwards to "test1" bean, as it is read only.
    I have a "create" call on EJB which in turn call "create" of test2 bean.
    There is no call to any function of test1 in the "create" of EJB remote call.
    When i make call "create" EJB Remote method, then i get the below exception.
    The interesting part is that when i make second call to the same ejb method, it works fine.
    I am using WAS 5.1.



    Any idea why?
    Thanks

    [9/3/04 9:55:45:097 EDT] 349dac90 TransactionIm E WTRN0062E: An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction.
    [9/3/04 9:55:45:287 EDT] 349dac90 LocalTransact E J2CA0030E: Method enlist caught java.lang.IllegalStateException
    at com.ibm.ejs.jts.jta.TransactionImpl.enlistResource (TransactionImpl.java:567)
    at com.ibm.ejs.jts.jta.JTSXA.enlistResource(JTSXA.jav a:1061)
    at com.ibm.ejs.jts.jta.JTSXA.enlistOnePhase(JTSXA.jav a:1038)
    at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(Loc alTransactionWrapper.java:507)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactio nPending(ConnectionEventListener.java:743)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImp l.processInteractionPendingEvent(WSRdbManagedConne ctionImpl.java:1299)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:328)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMeta Data(WSJdbcConnection.java:1014)
    at org.springframework.jdbc.support.JdbcUtils.extract DatabaseMetaData(JdbcUtils.java:95)
    at org.springframework.jdbc.support.SQLErrorCodesFact ory.getErrorCodes(SQLErrorCodesFactory.java:209)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.setDataSource(SQLErrorCodeSQLExc eptionTranslator.java:115)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.<init>(SQLErrorCodeSQLExceptionT ranslator.java:96)
    at org.springframework.jdbc.support.JdbcAccessor.getE xceptionTranslator(JdbcAccessor.java:76)
    at org.springframework.jdbc.support.JdbcAccessor.afte rPropertiesSet(JdbcAccessor.java:93)
    at org.springframework.jdbc.core.JdbcTemplate.<init>( JdbcTemplate.java:131)
    at org.springframework.jdbc.core.support.JdbcDaoSuppo rt.setDataSource(JdbcDaoSupport.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:723)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:627)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:759)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:786)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:775)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:793)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:633)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:267)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:223)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:71)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:66)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:470)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:431)
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:399)
    at org.springframework.ejb.support.AbstractEnterprise Bean.loadBeanFactory(AbstractEnterpriseBean.java:1 15)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:63)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.ejs.container.StatelessBeanO.<init>(Statel essBeanO.java:132)
    at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMSt atelessBeanO.java:53)
    at com.ibm.ejs.container.CMStatelessBeanOFactory.crea te(CMStatelessBeanOFactory.java:40)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:586)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:673)
    at com.ibm.ejs.container.activator.UncachedActivation Strategy.atActivate(UncachedActivationStrategy.jav a:78)
    at com.ibm.ejs.container.activator.Activator.activate Bean(Activator.java:516)
    at com.ibm.ejs.container.EJSContainer.preInvoke_inter nal(EJSContainer.java:2609)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2337)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2322)
    at com.test.admin.Testcheck.ejb.EJSRemoteStatelessTMT estRule_6f44ed3f.createRule(EJSRemoteStatelessTMTe stRule_6f44ed3f.java:114)
    at com.test.admin.Testcheck.ejb._TMTestRule_Stub.crea teRule(_TMTestRule_Stub.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.invoke(SimpleRemoteSlsbInvokerInte rceptor.java:99)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :139)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy3.createRule(Unknown Source)
    at com.test.actions.TestAction.saveTestRuleAction(Tes tAction.java:483)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:280)
    at org.apache.struts.actions.LookupDispatchAction.exe cute(LookupDispatchAction.java:252)
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:948)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:530)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.Cacheable InvocationContext.invoke(CacheableInvocationContex t.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)
    while trying to enlist resources from datasource jdbc/oem with the Transaction Manager for the current transaction, and threw a Exception.
    [9/3/04 9:55:45:898 EDT] 349dac90 SQLErrorCodes W org.springframework.jdbc.support.SQLErrorCodesFact ory Error while getting database metadata
    [9/3/04 9:55:45:908 EDT] 349dac90 SQLErrorCodes W org.springframework.jdbc.support.SQLErrorCodesFact ory TRAS0014I: The following exception was logged org.springframework.jdbc.support.MetaDataAccessExc eption: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: DSRA9002E: ResourceException with error code null: javax.resource.ResourceException: enlist: caught Exception
    at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(Loc alTransactionWrapper.java:609)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactio nPending(ConnectionEventListener.java:743)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImp l.processInteractionPendingEvent(WSRdbManagedConne ctionImpl.java:1299)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:328)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMeta Data(WSJdbcConnection.java:1014)
    at org.springframework.jdbc.support.JdbcUtils.extract DatabaseMetaData(JdbcUtils.java:95)
    at org.springframework.jdbc.support.SQLErrorCodesFact ory.getErrorCodes(SQLErrorCodesFactory.java:209)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.setDataSource(SQLErrorCodeSQLExc eptionTranslator.java:115)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.<init>(SQLErrorCodeSQLExceptionT ranslator.java:96)
    at org.springframework.jdbc.support.JdbcAccessor.getE xceptionTranslator(JdbcAccessor.java:76)
    at org.springframework.jdbc.support.JdbcAccessor.afte rPropertiesSet(JdbcAccessor.java:93)
    at org.springframework.jdbc.core.JdbcTemplate.<init>( JdbcTemplate.java:131)
    at org.springframework.jdbc.core.support.JdbcDaoSuppo rt.setDataSource(JdbcDaoSupport.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:723)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:627)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:759)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:786)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:775)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:793)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:633)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:267)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:223)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:71)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:66)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:470)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:431)
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:399)
    at org.springframework.ejb.support.AbstractEnterprise Bean.loadBeanFactory(AbstractEnterpriseBean.java:1 15)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:63)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.ejs.container.StatelessBeanO.<init>(Statel essBeanO.java:132)
    at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMSt atelessBeanO.java:53)
    at com.ibm.ejs.container.CMStatelessBeanOFactory.crea te(CMStatelessBeanOFactory.java:40)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:586)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:673)
    at com.ibm.ejs.container.activator.UncachedActivation Strategy.atActivate(UncachedActivationStrategy.jav a:78)
    at com.ibm.ejs.container.activator.Activator.activate Bean(Activator.java:516)
    at com.ibm.ejs.container.EJSContainer.preInvoke_inter nal(EJSContainer.java:2609)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2337)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2322)
    at com.test.admin.Testcheck.ejb.EJSRemoteStatelessTMT estRule_6f44ed3f.createRule(EJSRemoteStatelessTMTe stRule_6f44ed3f.java:114)
    at com.test.admin.Testcheck.ejb._TMTestRule_Stub.crea teRule(_TMTestRule_Stub.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.invoke(SimpleRemoteSlsbInvokerInte rceptor.java:99)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :139)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy3.createRule(Unknown Source)
    at com.test.actions.TestAction.saveTestRuleAction(Tes tAction.java:483)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:280)
    at org.apache.struts.actions.LookupDispatchAction.exe cute(LookupDispatchAction.java:252)
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:948)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:530)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.Cacheable InvocationContext.invoke(CacheableInvocationContex t.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)
    -------- chained exception -------
    java.lang.IllegalStateException
    at com.ibm.ejs.jts.jta.TransactionImpl.enlistResource (TransactionImpl.java:567)
    at com.ibm.ejs.jts.jta.JTSXA.enlistResource(JTSXA.jav a:1061)
    at com.ibm.ejs.jts.jta.JTSXA.enlistOnePhase(JTSXA.jav a:1038)
    at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(Loc alTransactionWrapper.java:507)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactio nPending(ConnectionEventListener.java:743)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImp l.processInteractionPendingEvent(WSRdbManagedConne ctionImpl.java:1299)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:328)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMeta Data(WSJdbcConnection.java:1014)
    at org.springframework.jdbc.support.JdbcUtils.extract DatabaseMetaData(JdbcUtils.java:95)
    at org.springframework.jdbc.support.SQLErrorCodesFact ory.getErrorCodes(SQLErrorCodesFactory.java:209)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.setDataSource(SQLErrorCodeSQLExc eptionTranslator.java:115)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.<init>(SQLErrorCodeSQLExceptionT ranslator.java:96)
    at org.springframework.jdbc.support.JdbcAccessor.getE xceptionTranslator(JdbcAccessor.java:76)
    at org.springframework.jdbc.support.JdbcAccessor.afte rPropertiesSet(JdbcAccessor.java:93)
    at org.springframework.jdbc.core.JdbcTemplate.<init>( JdbcTemplate.java:131)
    at org.springframework.jdbc.core.support.JdbcDaoSuppo rt.setDataSource(JdbcDaoSupport.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:723)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:627)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:759)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:786)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:775)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:793)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:633)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:267)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:223)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:71)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:66)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:470)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:431)
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:399)
    at org.springframework.ejb.support.AbstractEnterprise Bean.loadBeanFactory(AbstractEnterpriseBean.java:1 15)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:63)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.ejs.container.StatelessBeanO.<init>(Statel essBeanO.java:132)
    at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMSt atelessBeanO.java:53)
    at com.ibm.ejs.container.CMStatelessBeanOFactory.crea te(CMStatelessBeanOFactory.java:40)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:586)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:673)
    at com.ibm.ejs.container.activator.UncachedActivation Strategy.atActivate(UncachedActivationStrategy.jav a:78)
    at com.ibm.ejs.container.activator.Activator.activate Bean(Activator.java:516)
    at com.ibm.ejs.container.EJSContainer.preInvoke_inter nal(EJSContainer.java:2609)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2337)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2322)
    at com.test.admin.Testcheck.ejb.EJSRemoteStatelessTMT estRule_6f44ed3f.createRule(EJSRemoteStatelessTMTe stRule_6f44ed3f.java:114)
    at com.test.admin.Testcheck.ejb._TMTestRule_Stub.crea teRule(_TMTestRule_Stub.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.invoke(SimpleRemoteSlsbInvokerInte rceptor.java:99)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :139)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy3.createRule(Unknown Source)
    at com.test.actions.TestAction.saveTestRuleAction(Tes tAction.java:483)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:280)
    at org.apache.struts.actions.LookupDispatchAction.exe cute(LookupDispatchAction.java:252)
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:948)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:530)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.Cacheable InvocationContext.invoke(CacheableInvocationContex t.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)

    java.sql.SQLException: DSRA9002E: ResourceException with error code null: javax.resource.ResourceException: enlist: caught Exception
    at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(Loc alTransactionWrapper.java:609)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactio nPending(ConnectionEventListener.java:743)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImp l.processInteractionPendingEvent(WSRdbManagedConne ctionImpl.java:1299)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:328)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMeta Data(WSJdbcConnection.java:1014)
    at org.springframework.jdbc.support.JdbcUtils.extract DatabaseMetaData(JdbcUtils.java:95)
    at org.springframework.jdbc.support.SQLErrorCodesFact ory.getErrorCodes(SQLErrorCodesFactory.java:209)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.setDataSource(SQLErrorCodeSQLExc eptionTranslator.java:115)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.<init>(SQLErrorCodeSQLExceptionT ranslator.java:96)
    at org.springframework.jdbc.support.JdbcAccessor.getE xceptionTranslator(JdbcAccessor.java:76)
    at org.springframework.jdbc.support.JdbcAccessor.afte rPropertiesSet(JdbcAccessor.java:93)
    at org.springframework.jdbc.core.JdbcTemplate.<init>( JdbcTemplate.java:131)
    at org.springframework.jdbc.core.support.JdbcDaoSuppo rt.setDataSource(JdbcDaoSupport.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:723)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:627)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:759)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:786)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:775)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:793)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:633)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:267)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:223)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:71)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:66)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:470)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:431)
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:399)
    at org.springframework.ejb.support.AbstractEnterprise Bean.loadBeanFactory(AbstractEnterpriseBean.java:1 15)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:63)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.ejs.container.StatelessBeanO.<init>(Statel essBeanO.java:132)
    at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMSt atelessBeanO.java:53)
    at com.ibm.ejs.container.CMStatelessBeanOFactory.crea te(CMStatelessBeanOFactory.java:40)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:586)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:673)
    at com.ibm.ejs.container.activator.UncachedActivation Strategy.atActivate(UncachedActivationStrategy.jav a:78)
    at com.ibm.ejs.container.activator.Activator.activate Bean(Activator.java:516)
    at com.ibm.ejs.container.EJSContainer.preInvoke_inter nal(EJSContainer.java:2609)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2337)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2322)
    at com.test.admin.Testcheck.ejb.EJSRemoteStatelessTMT estRule_6f44ed3f.createRule(EJSRemoteStatelessTMTe stRule_6f44ed3f.java:114)
    at com.test.admin.Testcheck.ejb._TMTestRule_Stub.crea teRule(_TMTestRule_Stub.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.invoke(SimpleRemoteSlsbInvokerInte rceptor.java:99)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :139)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy3.createRule(Unknown Source)
    at com.test.actions.TestAction.saveTestRuleAction(Tes tAction.java:483)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:280)
    at org.apache.struts.actions.LookupDispatchAction.exe cute(LookupDispatchAction.java:252)
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:948)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:530)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.Cacheable InvocationContext.invoke(CacheableInvocationContex t.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)
    -------- chained exception -------
    java.lang.IllegalStateException
    at com.ibm.ejs.jts.jta.TransactionImpl.enlistResource (TransactionImpl.java:567)
    at com.ibm.ejs.jts.jta.JTSXA.enlistResource(JTSXA.jav a:1061)
    at com.ibm.ejs.jts.jta.JTSXA.enlistOnePhase(JTSXA.jav a:1038)
    at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(Loc alTransactionWrapper.java:507)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactio nPending(ConnectionEventListener.java:743)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImp l.processInteractionPendingEvent(WSRdbManagedConne ctionImpl.java:1299)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:328)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMeta Data(WSJdbcConnection.java:1014)
    at org.springframework.jdbc.support.JdbcUtils.extract DatabaseMetaData(JdbcUtils.java:95)
    at org.springframework.jdbc.support.SQLErrorCodesFact ory.getErrorCodes(SQLErrorCodesFactory.java:209)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.setDataSource(SQLErrorCodeSQLExc eptionTranslator.java:115)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.<init>(SQLErrorCodeSQLExceptionT ranslator.java:96)
    at org.springframework.jdbc.support.JdbcAccessor.getE xceptionTranslator(JdbcAccessor.java:76)
    at org.springframework.jdbc.support.JdbcAccessor.afte rPropertiesSet(JdbcAccessor.java:93)
    at org.springframework.jdbc.core.JdbcTemplate.<init>( JdbcTemplate.java:131)
    at org.springframework.jdbc.core.support.JdbcDaoSuppo rt.setDataSource(JdbcDaoSupport.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:723)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:627)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:759)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:786)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:775)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:793)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:633)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:267)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:223)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:71)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:66)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:470)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:431)
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:399)
    at org.springframework.ejb.support.AbstractEnterprise Bean.loadBeanFactory(AbstractEnterpriseBean.java:1 15)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:63)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.ejs.container.StatelessBeanO.<init>(Statel essBeanO.java:132)
    at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMSt atelessBeanO.java:53)
    at com.ibm.ejs.container.CMStatelessBeanOFactory.crea te(CMStatelessBeanOFactory.java:40)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:586)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:673)
    at com.ibm.ejs.container.activator.UncachedActivation Strategy.atActivate(UncachedActivationStrategy.jav a:78)
    at com.ibm.ejs.container.activator.Activator.activate Bean(Activator.java:516)
    at com.ibm.ejs.container.EJSContainer.preInvoke_inter nal(EJSContainer.java:2609)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2337)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2322)
    at com.test.admin.Testcheck.ejb.EJSRemoteStatelessTMT estRule_6f44ed3f.createRule(EJSRemoteStatelessTMTe stRule_6f44ed3f.java:114)
    at com.test.admin.Testcheck.ejb._TMTestRule_Stub.crea teRule(_TMTestRule_Stub.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.invoke(SimpleRemoteSlsbInvokerInte rceptor.java:99)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :139)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy3.createRule(Unknown Source)
    at com.test.actions.TestAction.saveTestRuleAction(Tes tAction.java:483)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:280)
    at org.apache.struts.actions.LookupDispatchAction.exe cute(LookupDispatchAction.java:252)
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:948)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:530)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.Cacheable InvocationContext.invoke(CacheableInvocationContex t.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)

    at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(Ad apterUtil.java:1004)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:342)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMeta Data(WSJdbcConnection.java:1014)
    at org.springframework.jdbc.support.JdbcUtils.extract DatabaseMetaData(JdbcUtils.java:95)
    at org.springframework.jdbc.support.SQLErrorCodesFact ory.getErrorCodes(SQLErrorCodesFactory.java:209)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.setDataSource(SQLErrorCodeSQLExc eptionTranslator.java:115)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.<init>(SQLErrorCodeSQLExceptionT ranslator.java:96)
    at org.springframework.jdbc.support.JdbcAccessor.getE xceptionTranslator(JdbcAccessor.java:76)
    at org.springframework.jdbc.support.JdbcAccessor.afte rPropertiesSet(JdbcAccessor.java:93)
    at org.springframework.jdbc.core.JdbcTemplate.<init>( JdbcTemplate.java:131)
    at org.springframework.jdbc.core.support.JdbcDaoSuppo rt.setDataSource(JdbcDaoSupport.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:723)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:627)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:759)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:786)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:775)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:793)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:633)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:267)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:223)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:71)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:66)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:470)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:431)
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:399)
    at org.springframework.ejb.support.AbstractEnterprise Bean.loadBeanFactory(AbstractEnterpriseBean.java:1 15)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:63)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.ejs.container.StatelessBeanO.<init>(Statel essBeanO.java:132)
    at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMSt atelessBeanO.java:53)
    at com.ibm.ejs.container.CMStatelessBeanOFactory.crea te(CMStatelessBeanOFactory.java:40)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:586)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:673)
    at com.ibm.ejs.container.activator.UncachedActivation Strategy.atActivate(UncachedActivationStrategy.jav a:78)
    at com.ibm.ejs.container.activator.Activator.activate Bean(Activator.java:516)
    at com.ibm.ejs.container.EJSContainer.preInvoke_inter nal(EJSContainer.java:2609)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2337)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2322)
    at com.test.admin.Testcheck.ejb.EJSRemoteStatelessTMT estRule_6f44ed3f.createRule(EJSRemoteStatelessTMTe stRule_6f44ed3f.java:114)
    at com.test.admin.Testcheck.ejb._TMTestRule_Stub.crea teRule(_TMTestRule_Stub.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.invoke(SimpleRemoteSlsbInvokerInte rceptor.java:99)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :139)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy3.createRule(Unknown Source)
    at com.test.actions.TestAction.saveTestRuleAction(Tes tAction.java:483)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:280)
    at org.apache.struts.actions.LookupDispatchAction.exe cute(LookupDispatchAction.java:252)
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:948)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:530)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.Cacheable InvocationContext.invoke(CacheableInvocationContex t.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)
    .
    org.springframework.jdbc.support.MetaDataAccessExc eption: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: DSRA9002E: ResourceException with error code null: javax.resource.ResourceException: enlist: caught Exception
    at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(Loc alTransactionWrapper.java:609)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactio nPending(ConnectionEventListener.java:743)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImp l.processInteractionPendingEvent(WSRdbManagedConne ctionImpl.java:1299)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:328)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMeta Data(WSJdbcConnection.java:1014)
    at org.springframework.jdbc.support.JdbcUtils.extract DatabaseMetaData(JdbcUtils.java:95)
    at org.springframework.jdbc.support.SQLErrorCodesFact ory.getErrorCodes(SQLErrorCodesFactory.java:209)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.setDataSource(SQLErrorCodeSQLExc eptionTranslator.java:115)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.<init>(SQLErrorCodeSQLExceptionT ranslator.java:96)
    at org.springframework.jdbc.support.JdbcAccessor.getE xceptionTranslator(JdbcAccessor.java:76)
    at org.springframework.jdbc.support.JdbcAccessor.afte rPropertiesSet(JdbcAccessor.java:93)
    at org.springframework.jdbc.core.JdbcTemplate.<init>( JdbcTemplate.java:131)
    at org.springframework.jdbc.core.support.JdbcDaoSuppo rt.setDataSource(JdbcDaoSupport.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:723)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:627)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:759)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:786)
    at org.springframework.beans.BeanWrapperImpl.setPrope rtyValues(BeanWrapperImpl.java:775)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:793)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:633)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:267)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:223)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:80)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:65)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:71)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:66)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:470)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:247)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:204)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:135)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:431)
    at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:399)
    at org.springframework.ejb.support.AbstractEnterprise Bean.loadBeanFactory(AbstractEnterpriseBean.java:1 15)
    at org.springframework.ejb.support.AbstractStatelessS essionBean.ejbCreate(AbstractStatelessSessionBean. java:63)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.ibm.ejs.container.StatelessBeanO.<init>(Statel essBeanO.java:132)
    at com.ibm.ejs.container.CMStatelessBeanO.<init>(CMSt atelessBeanO.java:53)
    at com.ibm.ejs.container.CMStatelessBeanOFactory.crea te(CMStatelessBeanOFactory.java:40)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:586)
    at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome. java:673)
    at com.ibm.ejs.container.activator.UncachedActivation Strategy.atActivate(UncachedActivationStrategy.jav a:78)
    at com.ibm.ejs.container.activator.Activator.activate Bean(Activator.java:516)
    at com.ibm.ejs.container.EJSContainer.preInvoke_inter nal(EJSContainer.java:2609)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2337)
    at com.ibm.ejs.container.EJSContainer.preInvoke(EJSCo ntainer.java:2322)
    at com.test.admin.Testcheck.ejb.EJSRemoteStatelessTMT estRule_6f44ed3f.createRule(EJSRemoteStatelessTMTe stRule_6f44ed3f.java:114)
    at com.test.admin.Testcheck.ejb._TMTestRule_Stub.crea teRule(_TMTestRule_Stub.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.invoke(SimpleRemoteSlsbInvokerInte rceptor.java:99)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :139)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
    at $Proxy3.createRule(Unknown Source)
    at com.test.actions.TestAction.saveTestRuleAction(Tes tAction.java:483)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:280)
    at org.apache.struts.actions.LookupDispatchAction.exe cute(LookupDispatchAction.java:252)
    at org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInsta nce.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.s ervice(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleSer vlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.se rvice(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletRefere nceState.dispatch(ValidServletReferenceState.java: 42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceRef erence.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.handleWebAppDispatch(WebAppRequestDispatcher. java:948)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.dispatch(WebAppRequestDispatcher.java:530)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForwar d(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.Cacheable InvocationContext.invoke(CacheableInvocationContex t.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:186)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:610)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:431)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:593)
    -------- chained exception -------
    java.lang.IllegalStateException
    at com.ibm.ejs.jts.jta.TransactionImpl.enlistResource (TransactionImpl.java:567)
    at com.ibm.ejs.jts.jta.JTSXA.enlistResource(JTSXA.jav a:1061)
    at com.ibm.ejs.jts.jta.JTSXA.enlistOnePhase(JTSXA.jav a:1038)
    at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(Loc alTransactionWrapper.java:507)
    at com.ibm.ejs.j2c.ConnectionEventListener.interactio nPending(ConnectionEventListener.java:743)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImp l.processInteractionPendingEvent(WSRdbManagedConne ctionImpl.java:1299)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTr ansactionIfNecessary(WSJdbcConnection.java:328)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.getMeta Data(WSJdbcConnection.java:1014)
    at org.springframework.jdbc.support.JdbcUtils.extract DatabaseMetaData(JdbcUtils.java:95)
    at org.springframework.jdbc.support.SQLErrorCodesFact ory.getErrorCodes(SQLErrorCodesFactory.java:209)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.setDataSource(SQLErrorCodeSQLExc eptionTranslator.java:115)
    at org.springframework.jdbc.support.SQLErrorCodeSQLEx ceptionTranslator.<init>(SQLErrorCodeSQLExceptionT ranslator.java:96)
    at org.springframework.jdbc.support.JdbcAccessor.getE xceptionTranslator(JdbcAccessor.java:76)
    at org.springframework.jdbc.support.JdbcAccessor.afte rPropertiesSet(JdbcAccessor.java:93)
    at org.springframework.jdbc.core.JdbcTemplate.<init>( JdbcTemplate.java:131)
    at org.springframework.jdbc.core.support.JdbcDaoSuppo rt.setDataSource(JdbcDaoSupport.java:58)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.springframework.beans.BeanWrapperImpl.setPr

  • #2
    Yes, you must use a JDBC XA compliant driver or if you're app server supports (I know BEA WL does), you can use the normal driver and then just allow support for global transactions. These settings are available under the webconsole JDBC settings area.

    Best,
    Lou

    Comment

    Working...
    X