You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "Gerdes, Mike" <Mi...@airbus.com> on 2006/05/05 10:54:31 UTC
servicemix-http parameter setting
Hi,
just a small question, how do I set the SSL paremeters for the servicemix-http component?
This is my http:endpoint definition:
<http:endpoint service="demo:simple-service"
endpoint="simple-service"
role="consumer"
locationURI="https://localhost:8192/Service/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soap="true"
keyPassword="server"
keyStore="C:\.keystore2"
keyStorePassword="server"
trustStore="C:\Programme\Java\jdk1.5.0_06\jre\lib\security\cacerts"
trustStorePassword="changeit"
needClientAuth="true"
wantClientAuth="true"
/>
And I always get:
Caught: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.servicemix.http.HttpEndpoint' defined in file [D:\esb
\incubator-servicemix-3.0-SNAPSHOT\examples\soap-binding\.\servicemix.xml]: Erro
r setting property values; nested exception is org.springframework.beans.NotWrit
ablePropertyException: Invalid property 'keyPassword' of bean class [org.apache.
servicemix.http.HttpEndpoint]: Bean property 'keyPassword' is not writable or ha
s an invalid setter method: Does the parameter type of the setter match the retu
rn type of the getter?
So I gues it is just a small error :)
This mail has originated outside your organization, either from an external partner or the Global Internet. Keep this in mind if you answer this message.
Antwort: servicemix-http parameter setting
Posted by Ju...@hvb.sozvers.at.
Attributes keyPassword, keyStore, keyStorePassword, trustStore,
trustStorePassword, needClientAuth and wantClientAuth are no attributes of
the class HttpEndpoint, but are attributes of the class SslParameters.
HttpEndpoint has an attribute 'ssl' as instance of the class
SslParameters.
public class HttpEndpoint extends SoapEndpoint {
protected ExtensibilityElement binding;
protected String locationURI;
protected Map wsdls = new HashMap();
protected SslParameters ssl;
...
}
public class SslParameters {
private String keyPassword;
private String keyStore;
private String keyStorePassword;
private String keyStoreType = "JKS"; // type of the key store
private String trustStore;
private String trustStorePassword;
private String trustStoreType = "JKS";
private String protocol = "TLS";
private String algorithm = "SunX509"; // cert algorithm
private boolean wantClientAuth = false;
private boolean needClientAuth = false;
...
}
Therefore you have to setup the ssl attribute correctly.
Kind regards
Juergen
"Gerdes, Mike" <Mi...@airbus.com>
05.05.2006 10:54
Bitte antworten an servicemix-users
An: <se...@geronimo.apache.org>
Kopie:
Thema: servicemix-http parameter setting
Hi,
just a small question, how do I set the SSL paremeters for the
servicemix-http component?
This is my http:endpoint definition:
<http:endpoint
service="demo:simple-service"
endpoint="simple-service"
role="consumer"
locationURI="
https://localhost:8192/Service/"
defaultMep="
http://www.w3.org/2004/08/wsdl/in-out"
soap="true"
keyPassword="server"
keyStore="C:\.keystore2"
keyStorePassword="server"
trustStore="C:\Programme\Java\jdk1.5.0_06\jre\lib\security\cacerts"
trustStorePassword="changeit"
needClientAuth="true"
wantClientAuth="true"
/>
And I always get:
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating
bean with name 'org.apache.servicemix.http.HttpEndpoint' defined in file
[D:\esb
\incubator-servicemix-3.0-SNAPSHOT\examples\soap-binding\.\servicemix.xml]:
Erro
r setting property values; nested exception is
org.springframework.beans.NotWrit
ablePropertyException: Invalid property 'keyPassword' of bean class
[org.apache.
servicemix.http.HttpEndpoint]: Bean property 'keyPassword' is not writable
or ha
s an invalid setter method: Does the parameter type of the setter match
the retu
rn type of the getter?
So I gues it is just a small error :)
This mail has originated outside your organization, either from an
external partner or the Global Internet. Keep this in mind if you answer
this message.