Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 23813 invoked from network); 19 Jul 2010 17:41:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jul 2010 17:41:05 -0000 Received: (qmail 70481 invoked by uid 500); 19 Jul 2010 17:41:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 70460 invoked by uid 500); 19 Jul 2010 17:41:04 -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 70453 invoked by uid 99); 19 Jul 2010 17:41:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 17:41:04 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 17:40:54 +0000 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o6JHeVRM010696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Jul 2010 17:40:33 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o6JHa5dS019900 for ; Mon, 19 Jul 2010 17:40:30 GMT Received: from abhmt003.oracle.com by acsmt355.oracle.com with ESMTP id 417294041279561187; Mon, 19 Jul 2010 10:39:47 -0700 Received: from [129.148.71.199] (/129.148.71.199) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 19 Jul 2010 10:39:47 -0700 Message-ID: <4C448DE2.4010405@oracle.com> Date: Mon, 19 Jul 2010 13:39:46 -0400 From: Kim Haase Reply-To: camilla.haase@oracle.com User-Agent: Thunderbird 2.0.0.23 (X11/20090910) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Problem of using Xalan in PlanExporter tool References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4C448E0E.027B:SCFMA4539814,ss=1,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Nirmal, The recommended mechanism is documented in the Derby Developer's Guide: http://db.apache.org/derby/docs/dev/devguide/devguide-single.html#cdevstandardsxml Hope this a) makes sense and b) works. Kim On 07/19/10 10:10 AM, Nirmal Fernando wrote: > Hi All, > > I used xalan.jar's classes to convert a XML to HTML > using an XSL style sheet. I was successfully compile > and build the code. > > But yesterday Bryan mentioned that > the code is failed to compile successfully, in his environment. > > Today I found that problem is with JDK version and xalan. > JDK/JRE by default contain a xalan-java classes in it and according > to xalan site (http://xml.apache.org/xalan-j/faq.html#faq-N100EF) > JDK/JRE 1.4, and JDK/JRE 5.0 is packaged with an old > version of Xalan-Java and the JDK/JRE will attempt to use this version > instead of any on the classpath. > > In my case I didn't get any errors is because, I'm using java 1.6.0, > but Bryan (Derby as well) using java 1.4.2. > For this problem there's a work around given at Xalan site. > It is, > > "To use a newer version of Xalan-Java and override the one packaged > with the JDK: > use the Endorsed Standards Override > Mechanism(http://java.sun.com/j2se/1.4.2/docs/guide/standards/). > Place the xalan.jar, serializer.jar, xercesImpl.jar and xml-apis.jar in the > \lib\endorsed directory, where is where the > runtime software is installed." > > Another option would be to avoid using new version of xalan, > and try to use old version that is packaged with JDK/JRE 1.4. > I'm now looking the possibilty of using old version of xalan. > > If you have any other idea please suggest me. > > Thank you very much! > > -- > Best Regards, > Nirmal > > C.S.Nirmal J. Fernando > Department of Computer Science & Engineering, > Faculty of Engineering, > University of Moratuwa, > Sri Lanka. >