Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 90042 invoked from network); 9 Oct 2008 06:03:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2008 06:03:22 -0000 Received: (qmail 21025 invoked by uid 500); 9 Oct 2008 06:03:20 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 20993 invoked by uid 500); 9 Oct 2008 06:03:20 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 20982 invoked by uid 99); 9 Oct 2008 06:03:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 23:03:20 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_SECURITYSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.5.75.124] (HELO elfyard.com) (69.5.75.124) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 06:02:16 +0000 Received: from [192.168.1.143] (s2-e1.30-0-atreidessoftwaregrupsrl2.fdx.ro [89.39.32.234] (may be forged)) by elfyard.com (8.12.11.20060308/8.12.11) with ESMTP id m9961n3F003291 for ; Thu, 9 Oct 2008 02:01:50 -0400 Message-ID: <48ED9E4B.10807@elfyard.com> Date: Thu, 09 Oct 2008 09:01:47 +0300 From: Valentin Cozma User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Derby Discussion Subject: Re: Unexpected sealing violation References: <63036b910810081411k7e33abafw93b4877d27ef7a65@mail.gmail.com> In-Reply-To: <63036b910810081411k7e33abafw93b4877d27ef7a65@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on elfyard.com X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=ham version=2.63 Richard Scott wrote: > Derby gurus: > > I am seeing an unexpected sealing violation on > org.apache.derby.iapi.services.monitor. There is not more than one > instance of derby.jar in the classpath (as you can verify below). > > I have an application (under construction) that starts several > services from within the application. Among these are Jetty to > support a web app, and Derby using the network server (via > NetworkServerControl) instead of using the embedded model. These > services start without incident, and as expected, I can access the > application's database externally (via ij, for instance). However, > when there's a hit on the web-app which triggers a client-side > connection to the database (using the > org.apache.derby.jdbc.ClientDriver), it barfs with > "java.lang.SecurityException: sealing violation: package > org.apache.derby.iapi.services.monitor is sealed". > > Can this be fixed other than by starting Derby externally to the > application (which works just fine)? > > Here's what getSysinfo() spits out when after the engine is started: > > Appreciate whatever enlightenment you can provide! what I can tell you is that I'm using embedded+network derby and jetty in the same jvm , with no problem at all. first start derby, then jetty. 10.3.3.0, all 4 derby jars in classpath, didn't bother about the order ever. I do remember that I ran into that "sealing violation" once, I think it was a library or version problem. hope this helps.