Hi Irham,

This seem to be a bug in the kernel where we create the fragment bundle
with the log4j.properties file. Here we are building the file path to the
conf directory w.r.t. to the components directory path [1] which is wrong
IMO. Due to that we are ignoring the system property enforced by the
command line argument.

@Sameera: Are we going to support this feature? If so we should fix this.
WDYT?

[1]
https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/extensions/Log4jPropFileFragmentBundleCreator.java#L42

Thanks.
/Gayashan

On Mon, Jan 5, 2015 at 11:43 AM, Irham Iqbal <[email protected]> wrote:

> Hi
>
> ./wso2server.sh --help says
>
> -Dcarbon.config.dir.path=<path>    Overwrite the conf directory path where
> we keep all configuration files like carbon.xml, axis2.xml etc.
>
> I moved the $*CARBON_HOME*/repository/conf directory to another place and
> ran as
> ./wso2server.sh -Dcarbon.config.dir.path=new_config_folder_path
>
> I am getting following FileNotFoundException exception
>
> java.io.FileNotFoundException:
> /Users/irham/products/wso2as-6.0.0-SNAPSHOT/repository/components/../conf/log4j.properties
> (No such file or directory)
>     at java.io.FileInputStream.open(Native Method)
>     at java.io.FileInputStream.<init>(FileInputStream.java:120)
>     at org.wso2.carbon.server.util.Utils.copyFile(Utils.java:511)
>
> Thanks,
> Iqbal
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94718314517
Blog : gayashan-a.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to