Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 88505 invoked from network); 16 Jun 2005 09:30:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2005 09:30:15 -0000 Received: (qmail 51953 invoked by uid 500); 16 Jun 2005 09:30:11 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 51928 invoked by uid 500); 16 Jun 2005 09:30:11 -0000 Mailing-List: contact ojb-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Users List" Reply-To: "OJB Users List" Delivered-To: mailing list ojb-user@db.apache.org Received: (qmail 51913 invoked by uid 99); 16 Jun 2005 09:30:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of Roland.Ribi@braunvieh.ch designates 212.80.100.68 as permitted sender) Received: from mail.braunvieh.ch (HELO mail.braunvieh.ch) (212.80.100.68) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 16 Jun 2005 02:30:06 -0700 Received: from 192.168.168.22 [192.168.168.22] by mail.braunvieh.ch with XWall v3.33d ; Thu, 16 Jun 2005 11:10:18 +0200 Received: by sbzvzgsrv1.braunvieh.ch with Internet Mail Service (5.5.2650.21) id ; Thu, 16 Jun 2005 11:11:11 +0200 Message-ID: <6FC2B4C5FA24D4118DAD00508BC74A5DDB16CA@sbzvzgsrv1.braunvieh.ch> From: Ribi Roland To: "'ojb-user@db.apache.org'" Subject: Tomcat 5.0, JNDI-DataSource and Blobs Date: Thu, 16 Jun 2005 11:11:10 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Since I moved the config of the connection pool from repository.xml to server.xml and get the connection via JNDI-lookup the broker throws the following Exception: ch.braunvieh.dbutils.DirectoryImageUploadVisitor - org.apache.ojb.broker.PersistenceBrokerSQLException: SQL failure while insert object data for class ch.braunvieh.ojb.argus.TFotoMitOrig, ..... [Oracle thin driver cannot update BLOB values with length>2000. (Consider using Oracle9i as OJB platform.)] .... Any hints? I did'nt change the JDBC-Driver classes or any other Property... The old config in repository.xml was: And now it is: The Connection-Pool is defined as follows in the server.xml: factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName oracle.jdbc.driver.OracleDriver url jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)( HOST=saturn.braunvieh.ch)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=AR01.satur n.braunvieh.ch)(SERVER=DEDICATED))) username xxxxx password xxxxx initialSize 1 maxActive 5 maxIdle 2 minIdle 1 maxWait -1 validationQuery SELECT PA_ANI.nGetAniID('US 184087.2') FROM DUAL testOnBorrow true testOnReturn true testWhileIdle false timeBetweenEvictionRunsMillis 3600000 numTestsPerEvictionRun 5 minEvictableIdleTimeMillis 1800000 whenExhaustedAction 2 --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For additional commands, e-mail: ojb-user-help@db.apache.org