On Sat, Apr 14, 2012 at 6:33 PM, Dushan Abeyruwan <dus...@wso2.com> wrote:

> Hi
>   I just copied all the nessasary file such as synapse.properties and
> nhttp.properties to the CARBON_HOME/repositiry/conf/ and still I was not
> able load those property files and I can see at the MiscellaneousUtil.java
> still the read input stream as Null
>

The conf directory is not added to the classpath, hence dropping the files
there will not work. Dropping the files into CARBON_HOME/lib may work. If
not please open an L1 Jira item.


>
> cheers
>  Dushan
>
> On Sat, Apr 14, 2012 at 5:55 PM, Dushan Abeyruwan <dus...@wso2.com> wrote:
>
>> Hi
>>   Thax will try this
>>
>> cheers
>> Dushan
>>
>>
>> On Sat, Apr 14, 2012 at 8:27 AM, Supun Malinga <sup...@wso2.com> wrote:
>>
>>> Hi Dushan,
>>>
>>> We don't have CARBON_HOME/lib/core/ anymore, after tomcat osgification.
>>> Think we should move those property files into
>>>   CARBON_HOME/repository/conf/advanced.
>>>
>>> thanks,
>>>
>>> On Thu, Apr 5, 2012 at 7:04 PM, Dushan Abeyruwan <dus...@wso2.com>wrote:
>>>
>>>> Hi
>>>>   Btw I tested this one with the very recently built
>>>> ESB wso2esb-4.0.0-SNAPSHOT.zip
>>>>
>>>>
>>>> On Thu, Apr 5, 2012 at 7:02 PM, Dushan Abeyruwan <dus...@wso2.com>wrote:
>>>>
>>>>> Hi
>>>>>   Seems like the property files resides in
>>>>> ESB_HOME/lib/core/WEB-INF/classes not loading I think this may be due the
>>>>> recent changers done on carbon core can some one tell me the alternatives
>>>>> we can follow to get this work done ref
>>>>> https://wso2.org/jira/browse/ESBJAVA-946
>>>>>
>>>>> MiscellaneousUtil.java
>>>>>
>>>>>  public static Properties loadProperties(String filePath) {
>>>>>
>>>>>         Properties properties = new Properties();
>>>>>         ClassLoader cl =
>>>>> Thread.currentThread().getContextClassLoader();
>>>>>
>>>>>         if (log.isDebugEnabled()) {
>>>>>             log.debug("Loading a file '" + filePath + "' from
>>>>> classpath");
>>>>>         }
>>>>>
>>>>>         InputStream in = cl.getResourceAsStream(filePath);
>>>>>         if (in == null) {
>>>>>             if (log.isDebugEnabled()) {
>>>>>                 log.debug("Unable to load file '" + filePath + "'");
>>>>>             }
>>>>>
>>>>>             filePath = "conf" +
>>>>>                     Fil
>>>>>
>>>>> cheers
>>>>>  Dushan Abeyruwan
>>>>> *Senior Software Engineer*
>>>>> *Integration Technologies Team*
>>>>> *WSO2 Inc. http://wso2.com/*
>>>>> *Mobile:(+94)714408632*
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Dushan Abeyruwan
>>>> *Senior Software Engineer*
>>>> *Integration Technologies Team*
>>>> *WSO2 Inc. http://wso2.com/*
>>>> *Mobile:(+94)714408632*
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>> email - sup...@wso2.com <sup...@wso2.com>
>>> mobile - 071 56 91 321
>>>
>>>
>>
>>
>> --
>> Dushan Abeyruwan
>> *Senior Software Engineer*
>> *Integration Technologies Team*
>> *WSO2 Inc. http://wso2.com/*
>> *Mobile:(+94)714408632*
>>
>>
>
>
> --
> Dushan Abeyruwan
> *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com/*
> *Mobile:(+94)714408632*
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to