Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 47181 invoked from network); 7 Jun 2005 07:54:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jun 2005 07:54:41 -0000 Received: (qmail 13971 invoked by uid 500); 7 Jun 2005 07:54:37 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 13921 invoked by uid 500); 7 Jun 2005 07:54:36 -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 13904 invoked by uid 99); 7 Jun 2005 07:54:36 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from manta.curalia.se (HELO manta.curalia.se) (213.115.149.212) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Jun 2005 00:54:34 -0700 Received: from manta.curalia.se (manta.curalia.se [213.115.149.212]) by manta.curalia.se (Postfix) with ESMTP id D5181ABC031 for ; Tue, 7 Jun 2005 09:53:54 +0200 (CEST) Received: from [192.168.1.5] (unknown [80.64.176.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by manta.curalia.se (Postfix) with ESMTP id A23C0ABC008 for ; Tue, 7 Jun 2005 09:53:54 +0200 (CEST) Message-ID: <42A553F7.3020804@apache.org> Date: Tue, 07 Jun 2005 09:59:51 +0200 From: =?ISO-8859-1?Q?Martin_Kal=E9n?= Organization: ASF User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Users List Subject: Re: Problem borrowing a connection from pool References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Oscar Herrera S wrote: > Hello, actually I decided to write after having spent some time looking on > the archives and not having found any problem like mine, or perhaps I just > looked wrong. It's always OK to ask - if it's a FAQ we will just point you to the webpages. :) > Actually I'm using OJB 1.0.1 in a project, and I'm having some trouble on it > when deploying on a Solaris server, it works fine on a Windows machine, but > is a requirement from the client it must run on a Solaris machine. So > basically the error I'm getting is > [03/Jun/2005:11:31:53] INFO (11047): CORE3282: stdout: access denied > (java.lang.reflect.ReflectPermission suppressAccessChecks) > [03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr: at > java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107) > > [03/Jun/2005:11:31:53] WARNING (11047): CORE3283: stderr: at > org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:194) You are running OJB in a JVM with a security policy. The security policy in effect does not allow OJB to programmatically change the access level of the ConnectionManager implementation's constructor. You will need to add something like this to your security policy: permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; More background on Java security policy in link [1] below. I see several "com.iplanet.ias.web.WebContainer" in your stacktrace, meaning that you are running Sun iPlanet aka SunONE J2EE application server. See link [2] for SunONE security specifics, the "server.policy" file is what you are looking for to add the "suppressAccessChecks" permission. On a side note, you state that your repository_database contains: platform="Oracle" but that you are using Oracle 9i as RDBMS. Change the OJB platform to "Oracle9i" to get transparent support for large CLOBs and BLOBs using the thin-driver. If you get any exceptions or warnings in the logs about failed Oracle-specific init under Sun Enterprise Server I would like you to post the complete stacktrace/message so that we can add this as a known J2EE environment in the OJB Oracle platform. Regards, Martin [1] http://java.sun.com/j2se/1.4.2/docs/guide/security/PolicyFiles.html [2] http://docs.sun.com/source/816-7149-10/dgsecure.html --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For additional commands, e-mail: ojb-user-help@db.apache.org