Forwarding to dev list
---------- Forwarded message ----------
From: Tishan Dahanayaka <[email protected]>
Date: Wed, Aug 8, 2012 at 8:25 PM
Subject: Axis2Server : Error loading key store
To: Sagara Gunathunga <[email protected]>
Cc: Nuwan Wimalasekara <[email protected]>
Hi,
I am an intern working under patch automation. For a scenario I am working
on I have to start a axis2server with https enabled. for that I use
SampleAxis2Server[1]
axisServer = new SampleAxis2Server("test_axis2_server_9015.xml");
axisServer.deployService(SampleAxis2Server.LB_SERVICE_1);
axisServer.start();
axisServer.deployService(SampleAxis2Server.SIMPLE_STOCK_QUOTE_SERVICE);
axisServer.deployService(SampleAxis2Server.SECURE_STOCK_QUOTE_SERVICE);
In test_axis2_server_9015.xml I have given trustStore location as
"repository/resources/security/wso2carbon.jks"
Actual trustStore location is ${CARBON_HOME}/
repository/resources/security/wso2carbon.jks
If I sysout user.dir from [1] I get ${CARBON_HOME}
But when I build this I get the following exception
[2012-08-08 19:55:20,204] ERROR
{org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender} - Error opening
Keystore : repository/resources/security/wso2carbon.jks
java.io.FileNotFoundException: repository/resources/security/wso2carbon.jks
(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
org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender.createSSLContext(HttpCoreNIOSSLSender.java:203)
at
org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender.getSSLContext(HttpCoreNIOSSLSender.java:87)
at
org.apache.synapse.transport.nhttp.HttpCoreNIOSender.init(HttpCoreNIOSender.java:128)
at
org.apache.axis2.context.ConfigurationContextFactory.initTransportSenders(ConfigurationContextFactory.java:300)
at
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:231)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:93)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
at
org.wso2.carbon.automation.core.utils.axis2serverutils.SampleAxis2Server.<init>(SampleAxis2Server.java:79)
at
org.wso2.carbon.esb.patchAutomation.HttpsServiceViaHttpProxyTestCase.init(HttpsServiceViaHttpProxyTestCase.java:23)
I also tried ./repository and /repository. But they did not work either.
Hope you can give some advice regarding this. Axis2.xml is attached
herewith.
[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/platform-integration/clarity-framework/org.wso2.carbon.automation.core/src/main/java/org/wso2/carbon/automation/core/utils/axis2serverutils/SampleAxis2Server.java
--
Regards and thanks in advance,
Tishan
--
Regards,
Tishan
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="TestProxy"
transports="http"
startOnLoad="true"
trace="disable">
<target>
<inSequence>
<send>
<endpoint>
<address uri="https://localhost:9002/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
</proxy>
<sequence name="fault">
<log level="full">
<property name="MESSAGE" value="Executing default "fault" sequence"/>
<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
</log>
<drop/>
</sequence>
<sequence name="main">
<log/>
<drop/>
</sequence>
</definitions>_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev