Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 77554 invoked from network); 25 Oct 2009 11:08:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Oct 2009 11:08:52 -0000 Received: (qmail 76844 invoked by uid 500); 25 Oct 2009 11:08:52 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 76775 invoked by uid 500); 25 Oct 2009 11:08:52 -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 76767 invoked by uid 99); 25 Oct 2009 11:08:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 11:08:52 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FB_WORD1_END_DOLLAR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.12.242.26] (HELO smtp20.orange.fr) (80.12.242.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 11:08:41 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2001.orange.fr (SMTP Server) with ESMTP id 4715420000BC for ; Sun, 25 Oct 2009 12:08:21 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2001.orange.fr (SMTP Server) with ESMTP id 33AAB2000385 for ; Sun, 25 Oct 2009 12:08:21 +0100 (CET) Received: from [10.129.36.10] (Mix-Rennes201-2-73.w193-250.abo.wanadoo.fr [193.250.24.73]) by mwinf2001.orange.fr (SMTP Server) with ESMTP id 84FA320000BC for ; Sun, 25 Oct 2009 12:08:20 +0100 (CET) X-ME-UUID: 20091025110820544.84FA320000BC@mwinf2001.orange.fr Message-ID: <4AE431A2.2070205@wanadoo.fr> Date: Sun, 25 Oct 2009 12:08:18 +0100 From: Sylvain Leroux Organization: http://www.chicoree.fr User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Derby Discussion Subject: Re: ERROR 42X51 class not found References: <4AE31584.70700@amberpoint.com> <4AE31EA9.2070001@amberpoint.com> <4AE33C18.5050808@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I noticed that you run all your manual tests as root on your unix box (prompt sh#). Will the Derby server run under that identity too? That lets me suspect perhaps a problem with the permissions on your files/folders. That's a little bit doubtful, since usually /var/lib is readable and traversable by everyone. Anyway, as we are in an impasse here, worth trying to check those permissions (ls -l - look for rx on directories and r on files). Then try to run the following command on a shell, with CLASSPATH correctly set, and /under the identity used by Derby/: derby$ java derbyPk.Functions ^^^^^^^^ (/class/ name here!) If you get "NoSuchMethod: main" the files are readable. So this is definitively a Derby problem. On the other hand, if you still get ClassNotFound exception, check again the permissions. If you packaged your files as a JAR, search for a problem with it on your server (something wrong while building/copying the JAR?). "jar tvf" could give more informations. On that matters, (should I have put that first ;)? ), I noticed that your class path is: /var/lib/derby/db-derby-10.5.3.0-bin/lib/ But if you packaged your files as a JAR on your server, shouldn't it be: /var/lib/derby/db-derby-10.5.3.0-bin/lib/myjar.jar ^^^^^^^^^ Nothing really convincing here. I agree. But it should help narrowing the problem. Somehow... Sylvain. Thomas Hill a �crit : > derby.Functions is a class and TF_Clients_AI2 a method. > > the java code reads: > > package derbyPk; > > public class Functions { > public static void TF_Clients_AI2(int iRowID, String vcClientID, String > vcClientName) throws SQLException > { > ... > } > } > > As said all of this worked fine when running the derby Networkserver on > localhost and with the java code stored in the filesystem on localhost. > > Thanks > > > -- Website: http://www.chicoree.fr