Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

https web pu

How do I configure https/port/keystore/password in a web pu.
I have tried an embedded jetty-web.xml file.

Including:
 <Call name="addConnector">
    <Arg>
      <New class="org.eclipse.jetty.server.ssl.SslSocketConnector">
        <Set name="Port">8443</Set>
        <Set name="maxIdleTime">30000</Set>
        <Set name="keystore"><SystemProperty name="jetty.home" default="." />/etc/keystore</Set>
        <Set name="password">password</Set>
        <Set name="keyPassword"></Set>
        <Set name="truststore"><SystemProperty name="jetty.home" default="." />/etc/keystore</Set>
        <Set name="trustPassword">password</Set>
      </New>
    </Arg>
</Call>

causes the deployment of web pu to hang. (using class org.mortbay.jetty.security.SslSocketConnector deploys but class cannot be found).

How does https port work with mulitple instances ? Does it increment automatically .. as with the non-https port.

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2012-12-18 06:07:59 -0600

ianf gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

The solution is to use a custom jetty.pu.xml file in the META-INF/spring/ folder of the war file.
The custom jetty.pu.xml file should contains an SSL connector bean in the list, as described in:
http://wiki.gigaspaces.com/wiki/display/XAP9/WebJettyProcessingUnitContainer#WebJettyProcessingUnitContainer-SecuringJettyContainer

answered 2012-12-19 05:10:08 -0600

ianf gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-12-18 06:07:59 -0600

Seen: 71 times

Last updated: Dec 19 '12