Results 1 to 3 of 3

Thread: Pb Oracle Blob bea wls 8.1sp2 hibernate 2.1.6 spring 1.1.1

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    2

    Default Pb Oracle Blob bea wls 8.1sp2 hibernate 2.1.6 spring 1.1.1

    Hi,

    I have a problem by storing a blob field in the oracle db. It works well on Tomcat but not on Webblogic (classcast exception)
    -------------------------------------------
    In the applicationContext.xml
    <bean class="org.springframework.jdbc.support.lob.Oracle LobHandler" id="lobHandler">

    <bean
    class="org.springframework.orm.hibernate.LocalSess ionFactoryBean" id="sessionFactory">
    <property name="dataSource"> <ref bean="dataSource" />
    </property>
    <property name="lobHandler"><ref bean="lobHandler" /></property>
    ....

    ------------------------
    in the hibernate hbm file
    <property column="GI_BLOB" name="giBlob" type="org.springframework.orm.hibernate.support.Bl obByteArrayType"/>

    in the java class
    -------------------
    getHibernateTemplate().save(graphicalItem);

    thanks for your help
    Benoit

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    Can you please post more information about the actual exception. Are you using the WebLogic NativeJdbcExtractor?
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Oct 2004
    Posts
    2

    Default

    Dear Rod,

    We localise the problem. This problem comes from the oracle driver provided by weblogic 8.1sp2. We upgraded to weblogic sp3 and use the the *oracle thin driver 9.0.1,9.2,10

    Now it works fine

    Thanks a lot and to the spring team for the great product!
    Benoit

Similar Threads

  1. Replies: 5
    Last Post: Feb 3rd, 2009, 05:19 AM
  2. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  3. Spring code remarks
    By Alarmnummer in forum Architecture
    Replies: 18
    Last Post: Apr 7th, 2005, 07:17 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 7
    Last Post: Aug 21st, 2004, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •