-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: net.sf.hibernate.HibernateException: Could not obtain WebSph
PostPosted: Thu Oct 14, 2004 7:30 am 
Newbie

Joined: Fri Sep 17, 2004 8:00 am
Posts: 6
Hibernate version:2

Mapping documents:<hibernate-configuration>
<session-factory>

<!-- Don't forget to copy your JDBC driver to the lib/ directory! -->

<!-- Datasource -->
<property name="connection.datasource">java:comp/env/jdbc/ds1</property>

<!-- Database Settings -->
<property name="default_schema">orcl</property>
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="show_sql">true</property>

<!-- JDBC Settings -->
<property name="jdbc.use_streams_for_binary">true</property>
<property name="max_fetch_depth">1</property>

<!-- Cache settings -->
<property name="cache.provider_class">net.sf.hibernate.cache.HashtableCacheProvider</property>
<!-- Transaction API -->
<property name="transaction.manager_lookup_class">
net.sf.hibernate.transaction.WebSphereTransactionManagerLookup</property>

<!-- Mapping files. -->
<mapping resource="com/company/product/model/Schedule.hbm.xml"/>
<mapping resource="com/company/product/model/RegisteredContent.hbm.xml"/>
<mapping resource="com/company/product/model/CommunicationProtocol.hbm.xml"/>

</session-factory>

</hibernate-configuration>


Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:14/10/04 12:19:45:867 IST] 7736eb89 SystemErr R net.sf.hibernate.HibernateException: Could not obtain WebSphere JTSXA instance
at net.sf.hibernate.transaction.WebSphereTransactionManagerLookup.getTransactionManager(WebSphereTransactionManagerLookup.java:49)
at net.sf.hibernate.transaction.JTATransactionFactory.configure(JTATransactionFactory.java:48)
at net.sf.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:48)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:65)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
at com.cibenix.magellan.persistence.PersistentUtil.init(PersistentUtil.java:86)
at com.cibenix.magellan.persistence.PersistentUtil.<init>(PersistentUtil.java:64)
at com.cibenix.magellan.persistence.PersistentUtil.getInstance(PersistentUtil.java:52)
at com.cibenix.magellan.dao.CMSDAO.createRegisteredContent(CMSDAO.java:34)
at com.cibenix.magellan.cms.CMSEJBBean.createRegisteredContent(CMSEJBBean.java:81)
at com.cibenix.magellan.cms.EJSRemoteStatelessCMSEJB_b5d3c101.createRegisteredContent(EJSRemoteStatelessCMSEJB_b5d3c101.java:22)
at com.cibenix.magellan.cms._CMSEJB_Stub.createRegisteredContent(_CMSEJB_Stub.java:293)
at com.cibenix.magellan.delegates.CMSDelegate.createRegisteredContent(CMSDelegate.java:114)
at com.cibenix.magellan.actions.RegisterContentAction.execute(RegisterContentAction.java:77)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.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.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Caused by: java.lang.ClassNotFoundException: com.ibm.ejs.jts.jta.JTSXA
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at net.sf.hibernate.transaction.WebSphereTransactionManagerLookup.getTransactionManager(WebSphereTransactionManagerLookup.java:40)
... 39 more


Name and version of the database you are using:

The generated SQL (show_sql=true):none

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 9:25 am 
Newbie

Joined: Fri Sep 17, 2004 8:00 am
Posts: 6
Is anyone out there at all? Could really do with some help on this problem
thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 12:37 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You don't have to ask every hour, you know. Consider commercial support if you need guaranteed support response times.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 12:45 pm 
Newbie

Joined: Fri Sep 17, 2004 8:00 am
Posts: 6
sorry if i offended you.....but do you have any idea what I am doing wrong?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.