Hello fellow Hibernaters!
I have a problem with the web application I'm currently developing. I am using Hibernate along with Spring and Struts, and deploying this on a Windows Tomcat on a development environment and on a Linux WebSphere WAS on the test and production environment.
In the application I'm (amongst other things) saving a file as a BLOB into a table in an Oracle database through Hibernate by definig my own UserType (according to the example in
http://www.hibernate.org/73.html).
The problem is as follows:
On the development environment, no problems has been intercepted. But when using WebSphere, I am not able to save the file! The log says that a a problem has occured when using(!?)
Code:
com.ibm.ws.rsadapter.jdbc.WSJdbcConnection
I have tried adding the lines...
Code:
<prop key="hibernate.transaction.manager_lookup_class">net.sf.hibernate.transaction.WebSphereTransactionManagerLookup</prop>
<prop key="hibernate.connection.provider_class">;se.vcc.pgrs.util.WSDataSourceConnectionProvider</prop>
... in the hibernate properties and implementing the class
Code:
WSDataSourceConnectionProvider
as described in
http://www.hibernate.org/204.html .
BTW the versions used are Java 1.3.1, Hibernate 2.0, Tomcat 5.0, WebSphere 5.0, SuSe Linux 8 and Oracle (& jdbc thin driver) 9.2.0.5.
I wonder... has anyone had similar problems? Do you guys have suggestions how solve this?
Swift replies are appreciated, since the delivery of the application is iminent...
Thanx in advance!
/Peter