<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: java.lang.ExceptionInInitializerError,Could not instantiate TransactionMana in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723599#M756319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure this is the right value for the class name?&lt;/P&gt;&lt;P&gt;org.hibernate.transaction.SAPWebASTransactionManagerLookup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;No, i am not sure. i just copied it from a example. but i think i will not need it. so i have deleted them now.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks as well like you have implemented a primary index scheme (next value) that is not supported by your DB ?&lt;/P&gt;&lt;P&gt;See error on DUAL &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I just used sequence for the primary key in my Person.hbm.xml.  even i change it to native, it comes back with the same error too.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Person.hbm.xml:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;class name="src.hibernate.Person" table="TMP_PERSON"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;id name="id" column="PERSONID"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;generator class="native"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;java class:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;public class Person {&lt;/P&gt;&lt;P&gt;	private Long id;&lt;/P&gt;&lt;P&gt;                getter and setter&lt;/P&gt;&lt;P&gt;...}&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;my method in a stateless session bean:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;public Long createPerson(&lt;/P&gt;&lt;P&gt;		String surname,&lt;/P&gt;&lt;P&gt;		String firstname,&lt;/P&gt;&lt;P&gt;		String tel,&lt;/P&gt;&lt;P&gt;		String email) {&lt;/P&gt;&lt;P&gt;		Session session = null;&lt;/P&gt;&lt;P&gt;		Transaction tx = null;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		try {&lt;/P&gt;&lt;P&gt;			session = HibernateSessionFactory.openSession();&lt;/P&gt;&lt;P&gt;			tx = session.beginTransaction();&lt;/P&gt;&lt;P&gt;			Person aPerson = new Person();&lt;/P&gt;&lt;P&gt;			aPerson.setSurname(surname);&lt;/P&gt;&lt;P&gt;			aPerson.setFirstname(firstname);&lt;/P&gt;&lt;P&gt;			aPerson.setTelNr(tel);&lt;/P&gt;&lt;P&gt;			aPerson.setEmail(email);&lt;/P&gt;&lt;P&gt;			Long personId = (Long)session.save(aPerson);&lt;/P&gt;&lt;P&gt;			tx.commit();&lt;/P&gt;&lt;P&gt;			return personId;&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;		} catch (HibernateException e) {&lt;/P&gt;&lt;P&gt;			if (tx != null)&lt;/P&gt;&lt;P&gt;				tx.rollback();&lt;/P&gt;&lt;P&gt;			throw new HibernateException(e);&lt;/P&gt;&lt;P&gt;		} finally {&lt;/P&gt;&lt;P&gt;			HibernateSessionFactory.closeSession(session);&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Nov 2006 16:24:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-12T16:24:44Z</dc:date>
    <item>
      <title>java.lang.ExceptionInInitializerError,Could not instantiate TransactionMana</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaq-p/1723596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;i am using SAP Netweaver Developer studio. have problem using hibernate in a EJB Modul Project. i have create a stateless session bean to writie the bussiness logic using my hibernate mapping classes, but somehow i get the error:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Details: com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method createPerson.&lt;/P&gt;&lt;P&gt;	at src.ejb.HibernateLocalLocalObjectImpl0.createPerson(HibernateLocalLocalObjectImpl0.java:407)&lt;/P&gt;&lt;P&gt;	at com.servlet.TestServlet.doPost(TestServlet.java:66)&lt;/P&gt;&lt;P&gt;	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)&lt;/P&gt;&lt;P&gt;	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)&lt;/P&gt;&lt;P&gt;	at java.security.AccessController.doPrivileged(Native Method)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)&lt;/P&gt;&lt;P&gt;	at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)&lt;/P&gt;&lt;P&gt;Caused by: java.lang.ExceptionInInitializerError&lt;/P&gt;&lt;P&gt;	at src.hibernate.HibernateSessionFactory.&amp;lt;clinit&amp;gt;(HibernateSessionFactory.java:29)&lt;/P&gt;&lt;P&gt;	at src.ejb.HibernateBean.createPerson(HibernateBean.java:158)&lt;/P&gt;&lt;P&gt;	at src.ejb.HibernateLocalLocalObjectImpl0.createPerson(HibernateLocalLocalObjectImpl0.java:391)&lt;/P&gt;&lt;P&gt;	... 17 more&lt;/P&gt;&lt;P&gt;Caused by: org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup&lt;/P&gt;&lt;P&gt;	at org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(TransactionManagerLookupFactory.java:47)&lt;/P&gt;&lt;P&gt;	at org.hibernate.transaction.JTATransactionFactory.configure(JTATransactionFactory.java:48)&lt;/P&gt;&lt;P&gt;	at org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:51)&lt;/P&gt;&lt;P&gt;	at org.hibernate.cfg.SettingsFactory.createTransactionFactory(SettingsFactory.java:401)&lt;/P&gt;&lt;P&gt;	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:129)&lt;/P&gt;&lt;P&gt;	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1933)&lt;/P&gt;&lt;P&gt;	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1216)&lt;/P&gt;&lt;P&gt;	at src.hibernate.HibernateSessionFactory.&amp;lt;clinit&amp;gt;(HibernateSessionFactory.java:24)&lt;/P&gt;&lt;P&gt;	... 19 more&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;is there  anybody can tell me why i am getting this error? i was sitting in front of the computer for days now, but could find out where i am doing wrong.&lt;/P&gt;&lt;P&gt;i have tested my hibernate classes without session beans(in a normal java Project, every thing works fine. and i tried to do exactly what they have done in the HibernateExampleEHCache examples, to combine my hibernate with session beans together, but couldn't get the programm running.  &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Nov 2006 21:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaq-p/1723596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-11T21:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ExceptionInInitializerError,Could not instantiate TransactionMana</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723597#M756317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;now i have delete this part from my hibernate,cfg,xml&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;        &amp;lt;property name="transaction.factory_class"&amp;gt;&lt;/P&gt;&lt;P&gt;        	org.hibernate.transaction.JTATransactionFactory&lt;/P&gt;&lt;P&gt;        &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;property name="transaction.manager_lookup_class"&amp;gt;&lt;/P&gt;&lt;P&gt;        	org.hibernate.transaction.SAPWebASTransactionManagerLookup&lt;/P&gt;&lt;P&gt;        &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;property name="hibernate.session_factory_name"&amp;gt;&lt;/P&gt;&lt;P&gt;       		hibernate/SessionFactory&lt;/P&gt;&lt;P&gt;        &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;property name="hibernate.cache.provider_class"&amp;gt;&lt;/P&gt;&lt;P&gt;       		org.hibernate.cache.EhCacheProvider&lt;/P&gt;&lt;P&gt;        &amp;lt;/property&amp;gt;  &lt;/P&gt;&lt;P&gt;        &amp;lt;!&lt;DEL&gt;&amp;lt;property name="hibernate.cache.use_query_cache"&amp;gt;true&amp;lt;/property&amp;gt;&lt;/DEL&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;the error changed to:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;org.hibernate.HibernateException: org.hibernate.exception.GenericJDBCException: could not get next sequence value&lt;/P&gt;&lt;P&gt;Caused by: com.sap.sql.log.OpenSQLException: The SQL statement "SELECT "HIBERNATE_SEQUENCE"."NEXTVAL" FROM "DUAL"" contains the semantics error[s]: table "DUAL" unknown&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Nov 2006 22:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723597#M756317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-11T22:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ExceptionInInitializerError,Could not instantiate TransactionMana</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723598#M756318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure this is the right value for the class name?&lt;/P&gt;&lt;P&gt;org.hibernate.transaction.SAPWebASTransactionManagerLookup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it on the classpath?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        F.J. Brandelik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks as well like you have implemented a primary index scheme (next value) that is not supported by your DB ?&lt;/P&gt;&lt;P&gt;See error on DUAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Nov 2006 14:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723598#M756318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-12T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ExceptionInInitializerError,Could not instantiate TransactionMana</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723599#M756319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure this is the right value for the class name?&lt;/P&gt;&lt;P&gt;org.hibernate.transaction.SAPWebASTransactionManagerLookup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;No, i am not sure. i just copied it from a example. but i think i will not need it. so i have deleted them now.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks as well like you have implemented a primary index scheme (next value) that is not supported by your DB ?&lt;/P&gt;&lt;P&gt;See error on DUAL &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I just used sequence for the primary key in my Person.hbm.xml.  even i change it to native, it comes back with the same error too.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Person.hbm.xml:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;class name="src.hibernate.Person" table="TMP_PERSON"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;id name="id" column="PERSONID"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;generator class="native"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;java class:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;public class Person {&lt;/P&gt;&lt;P&gt;	private Long id;&lt;/P&gt;&lt;P&gt;                getter and setter&lt;/P&gt;&lt;P&gt;...}&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;my method in a stateless session bean:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;public Long createPerson(&lt;/P&gt;&lt;P&gt;		String surname,&lt;/P&gt;&lt;P&gt;		String firstname,&lt;/P&gt;&lt;P&gt;		String tel,&lt;/P&gt;&lt;P&gt;		String email) {&lt;/P&gt;&lt;P&gt;		Session session = null;&lt;/P&gt;&lt;P&gt;		Transaction tx = null;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		try {&lt;/P&gt;&lt;P&gt;			session = HibernateSessionFactory.openSession();&lt;/P&gt;&lt;P&gt;			tx = session.beginTransaction();&lt;/P&gt;&lt;P&gt;			Person aPerson = new Person();&lt;/P&gt;&lt;P&gt;			aPerson.setSurname(surname);&lt;/P&gt;&lt;P&gt;			aPerson.setFirstname(firstname);&lt;/P&gt;&lt;P&gt;			aPerson.setTelNr(tel);&lt;/P&gt;&lt;P&gt;			aPerson.setEmail(email);&lt;/P&gt;&lt;P&gt;			Long personId = (Long)session.save(aPerson);&lt;/P&gt;&lt;P&gt;			tx.commit();&lt;/P&gt;&lt;P&gt;			return personId;&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;		} catch (HibernateException e) {&lt;/P&gt;&lt;P&gt;			if (tx != null)&lt;/P&gt;&lt;P&gt;				tx.rollback();&lt;/P&gt;&lt;P&gt;			throw new HibernateException(e);&lt;/P&gt;&lt;P&gt;		} finally {&lt;/P&gt;&lt;P&gt;			HibernateSessionFactory.closeSession(session);&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Nov 2006 16:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723599#M756319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-12T16:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ExceptionInInitializerError,Could not instantiate TransactionMana</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723600#M756320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;changed the generator class to increment, then works ok. seems like native and sequence will not be supported!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ting Ao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Nov 2006 17:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-exceptionininitializererror-could-not-instantiate-transactionmana/qaa-p/1723600#M756320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-12T17:47:02Z</dc:date>
    </item>
  </channel>
</rss>

