Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 6015 invoked from network); 26 Feb 2006 01:08:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Feb 2006 01:08:38 -0000 Received: (qmail 79557 invoked by uid 500); 26 Feb 2006 01:08:31 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 79542 invoked by uid 500); 26 Feb 2006 01:08:31 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 79531 invoked by uid 99); 26 Feb 2006 01:08:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2006 17:08:31 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.68.5.15] (HELO relay01.pair.com) (209.68.5.15) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 25 Feb 2006 17:08:30 -0800 Received: (qmail 87540 invoked from network); 26 Feb 2006 01:08:09 -0000 Received: from unknown (HELO ?127.0.0.1?) (unknown) by unknown with SMTP; 26 Feb 2006 01:08:09 -0000 X-pair-Authenticated: 203.198.128.78 Message-ID: <4400FF76.2060001@opensource.lk> Date: Sat, 25 Feb 2006 19:08:06 -0600 From: Deepal Jayasinghe User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Re: [Axis 2] Could not create the configuration context from a file. References: <656aa4fd0602241029n42c65c7fibaa48e16b7b88b72@mail.gmail.com> In-Reply-To: <656aa4fd0602241029n42c65c7fibaa48e16b7b88b72@mail.gmail.com> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 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 Hi Jaliya; First its not a bug :) The reason is it is not require to have axis2.xml file inside the repository , it can be any where. So if some one giving both repository and axis2.xml location then he has to give absolute path for both of them. You can give only the repo location into the constructor in that case deployment guy will check for axis2.xml file in the sub-dir called "conf". Note : createConfigurationContextFromFileSystem(para1, para2) , here either or both para1 and para2 can be NULL. Jaliya Ekanayake wrote: > Hi Deepal, > > In my cllient I initialized the configuration context as follows but > it alway gives me FileNotFound exception. > > ConfigurationContext configContext = ConfigurationContextFactory. > createConfigurationContextFromFileSystem( > repository.getAbsolutePath(), > repository.getName() + "/axis2.xml"); > > > It seems to me that the code at line 488 in DeployementEngine, > > in = new FileInputStream(axis2_xml_file_name) ; > shoule be > in = new > FileInputStream(axis2repository+File.separator+axis2_xml_file_name); > > Thanks, > > Jaliya -- Thanks, Deepal ................................................................ ~Future is Open~