Hi Chanaka,

Thanks for the information.


On Tue, Apr 8, 2014 at 4:52 AM, Chanaka Fernando <chana...@wso2.com> wrote:

> Hi Udara,
>
> This is nothing to do with ESB. This is a limitation in the CipherTool
> implementation. Currently it is running only inside the bin directory. Same
> behavior can be observed in all the products which ships the ciphertool.sh.
>
> You are welcome to fix this issue since this is a platform wide
> requirement. :D
>
> Thanks,
> Chanaka
>
>
> On Tue, Apr 8, 2014 at 10:05 AM, Udara Liyanage <ud...@wso2.com> wrote:
>
>> Hi,
>>
>> When I try to run ciphertool.sh from outside the bin folder I get the
>> following error. When I run the script within bin folder it works.
>> Is n't is a limitation ? or is the expected way to run?
>>
>> [udara@puppet:~/software/wso2/wso2esb-4.8.0
>> $* sh bin/ciphertool.sh -Dconfigure*
>> Exception in thread "main" org.wso2.ciphertool.CipherToolException:
>> IOError reading primary key Store details from carbon.xml file
>>  at org.wso2.ciphertool.CipherTool.handleException(CipherTool.java:861)
>> at
>> org.wso2.ciphertool.CipherTool.getPrimaryKeyStoreData(CipherTool.java:305)
>>  at org.wso2.ciphertool.CipherTool.initCipher(CipherTool.java:180)
>> at org.wso2.ciphertool.CipherTool.main(CipherTool.java:80)
>> *Caused by: java.io.FileNotFoundException:
>> /home/udara/software/wso2/repository/conf/carbon.xml (No such file or
>> directory)*
>> at java.io.FileInputStream.open(Native Method)
>>  at java.io.FileInputStream.<init>(FileInputStream.java:120)
>> at java.io.FileInputStream.<init>(FileInputStream.java:79)
>>  at
>> sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
>> at
>> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
>>  at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:651)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
>>  at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:772)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
>>  at
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
>> at
>> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:232)
>>  at
>> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
>> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)
>>  at
>> org.wso2.ciphertool.CipherTool.getPrimaryKeyStoreData(CipherTool.java:289)
>> ... 2 more
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to