Thanks for the explanation.

Jaliya

----- Original Message ----- From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, February 25, 2006 8:08 PM
Subject: Re: [Axis 2] Could not create the configuration context from a file.


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~



Reply via email to