Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 9648 invoked from network); 15 Apr 2006 16:54:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Apr 2006 16:54:57 -0000 Received: (qmail 43493 invoked by uid 500); 15 Apr 2006 16:54:56 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 43461 invoked by uid 500); 15 Apr 2006 16:54:56 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 43452 invoked by uid 99); 15 Apr 2006 16:54:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 09:54:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 09:54:55 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6840371429F for ; Sat, 15 Apr 2006 16:54:01 +0000 (GMT) Message-ID: <40535105.1145120041424.JavaMail.jira@brutus> Date: Sat, 15 Apr 2006 16:54:01 +0000 (GMT+00:00) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-415) sysinfo with -cp client option should not print error saying DB2 jar file and driver class are missing In-Reply-To: <1753853787.1120088277257.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-415?page=all ] Bryan Pendleton updated DERBY-415: ---------------------------------- Attachment: derby-415.diff Attached is derby-415.diff, a patch proposal. This change modifies the behavior of -cp as follows: - if you run "java sysinfo -cp", then if you have either the jcc driver or the derby network client in your classpath, that is treated as success. If you have neither driver, then a failure is reporting listing both libraries as failed. - if you run "java sysinfo -cp client", then we assume that you are specifically interested in the client JDBC drivers, so we report a failure for either missing library. The only way to have success with "-cp client" is to have both. This is not exactly what David asked for. In his case, he wanted "-cp client" to treat the case where you have the Derby Network Client, but *not* the JCC driver, as a success. This patch behaves that way with plain old "-cp", but not with "-cp client". My feeling was that if you specifically said "-cp client", you wanted to get all the details about the client JDBC library portion of your classpath, so such a person might well care about whether or not the JCC library was found. But maybe I'm just being over-cautious here. Please have a look at this patch and tell me what you think. > sysinfo with -cp client option should not print error saying DB2 jar file and driver class are missing > ------------------------------------------------------------------------------------------------------ > > Key: DERBY-415 > URL: http://issues.apache.org/jira/browse/DERBY-415 > Project: Derby > Type: Bug > Components: Services > Versions: 10.1.1.0 > Reporter: David Van Couvering > Assignee: Bryan Pendleton > Priority: Minor > Attachments: derby-415.diff > > If you run > java org.apache.derby.tools.sysinfo -cp client SimpleApp.class > you get > FOUND IN CLASS PATH: > Derby Client libraries (derbyclient.jar) > user-specified class (SimpleApp) > NOT FOUND IN CLASS PATH: > Derby Client libraries (db2jcc.jar) > (com.ibm.db2.jcc.DB2Driver not found.) > The "NOT FOUND IN CLASSPATH" output is confusing and invalid because we're testing the network client, not the DB2 JCC client. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira