<div>Hi,</div>  <div>&nbsp;</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp; I am using Hibernate3.jar and using jboss server. </div>  <div>&nbsp;</div>  <div>I am getting "could not register synchronization with JTA TransactionManager" in the server.</div>  <div>&nbsp;</div>  <div>This problem comes when there is a failure in the transaction with the database. After getting this error i cannot able to procede further. Each time i need to restart the server.&nbsp; </div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>[org.egov.infstr.utils.HibernateUtil] In getSessionFactory<BR>2007-10-12 17:55:16,281 INFO&nbsp; [org.egov.infstr.utils.HibernateUtil] FactoryName&nbsp; java:/hibernate/EGovHibernateRamFactory<BR>2007-10-12 17:55:16,281 DEBUG [org.egov.infstr.utils.HibernateUtil] Obtained session factory<BR>2007-10-12 17:55:16,281 ERROR [org.egov.infstr.utils.HibernateUtil] Hibernate Exception opening session:could not register synchronization with JTA TransactionManager<BR>2007-10-12
 17:55:16,281 INFO&nbsp; [STDOUT] org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager<BR>&nbsp;at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:174)<BR>&nbsp;at org.hibernate.jdbc.JDBCContext.&lt;init&gt;(JDBCContext.java:75)<BR>&nbsp;at org.hibernate.impl.SessionImpl.&lt;init&gt;(SessionImpl.java:215)<BR>&nbsp;at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:470)<BR>&nbsp;at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:494)<BR>&nbsp;at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:502)<BR>&nbsp;at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:160)<BR>&nbsp;at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:247)<BR>&nbsp;at org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:59)<BR>&nbsp;at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<BR>&nbsp;at org.egov.infstr.client.filter.SetEncodingFilter.doFilter(SetEncodingFilter.java:39)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<BR>&nbsp;at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:73)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<BR>&nbsp;at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)<BR>&nbsp;at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<BR>&nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<BR>&nbsp;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<BR>&nbsp;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<BR>&nbsp;at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)<BR>&nbsp;at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)<BR>&nbsp;at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)<BR>&nbsp;at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)<BR>&nbsp;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<BR>&nbsp;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<BR>&nbsp;at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<BR>&nbsp;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<BR>&nbsp;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)<BR>&nbsp;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)<BR>&nbsp;at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<BR>&nbsp;at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)<BR>&nbsp;at java.lang.Thread.run(Thread.java:595)<BR>Caused by: javax.transaction.RollbackException: Already marked for rollback TransactionImpl:XidImpl[FormatId=257, GlobalId=dma2/18, BranchQual=, localId=18]<BR>&nbsp;at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:602)<BR>&nbsp;at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:164)</div> 
 <div>&nbsp;</div>  <div>&nbsp;</div>  <div>Please help me&nbsp; in this regards,</div>  <div>Pradeep</div>  <div>&nbsp;</div><p>&#32;


      <!--5--><hr size=1></hr> Get the freedom to save as many mails as you wish. <a href="http://in.rd.yahoo.com/tagline_mail_5/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/">Click here to know how.</a>