Changed it this way
<Call name="addConnector">
    <Arg>
      <New class="org.eclipse.jetty.server.ServerConnector">
        <Arg><Ref refId="UQHServer"/></Arg>
        <Arg>
          <New class="org.eclipse.jetty.server.HttpConnectionFactory">
              <Arg>
                <Ref refId="httpConfig"></Ref>
              </Arg>
          </New>
        </Arg>
      </New>

    </Arg>
    <Set name="Port">9006</Set>
    <Set name="IdleTimeOut">30000</Set>

  </Call>

But getting illegal Argument Exception.

Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.invokeConstructor(XmlConfiguration.java:749)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.construct(XmlConfiguration.java:1095)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:1049)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1638)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1539)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:1036)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1638)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1539)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.access$500(XmlConfiguration.java:369)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1768)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1744)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:919)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:512)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:454)
at
org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:354)
at
org.eclipse.jetty.xml.XmlConfiguration.lambda$main$0(XmlConfiguration.java:1874)
... 9 more
Caused by: java.lang.IllegalArgumentException: Null HttpConfiguration
at
org.eclipse.jetty.server.HttpConnectionFactory.<init>(HttpConnectionFactory.java:55)
at
org.eclipse.jetty.server.HttpConnectionFactory.<init>(HttpConnectionFactory.java:46)
... 29 more

On Fri, Feb 7, 2020 at 2:21 PM Simone Bordet <[email protected]> wrote:

> Hi,
>
> On Fri, Feb 7, 2020 at 9:18 AM Balaji Srinivasan <[email protected]>
> wrote:
> >
> > Am having this configuration for setting up ssl with jetty 9
> >
> > <Configure id="UQHServer" class="org.eclipse.jetty.server.Server">
> >
> >   <!-- if NIO is not available, use
> org.eclipse.jetty.server.ssl.SslSocketConnector -->
> >
> >   <New id="sslContextFactory"
> class="org.eclipse.jetty.util.ssl.SslContextFactory$Server">
> >     <Set name="KeyStorePath"><Property name="jetty.home" default="."
> />/etc/keystore</Set>
> >     <Set name="KeyStorePassword">PWD</Set>
> >     <Set name="KeyManagerPassword">PWD</Set>
> > <!--    <Set name="TrustStore"><Property name="jetty.home" default="."
> />/etc/keystore</Set>
> >     <Set name="TrustStorePassword">USHURMEREACHMOB</Set>-->
> >   </New>
> >
> > <!--  HTTP Config -->
> >   <New id="httpConfig"
> class="org.eclipse.jetty.server.HttpConfiguration">
> >     <Set name="SecureScheme">https</Set>
> >     <Set name="SecurePort">8575</Set>
> >     <Set name="OutputBufferSize">32768</Set>
> >   </New>
> >
> > <!--  HTTP Connector-->
> >   <Call name="addConnector">
> >     <Arg>
> >       <New class="org.eclipse.jetty.server.ServerConnector">
> >         <Arg><Get id="server" name="server"/></Arg>
>
> This should be:
>
> <Arg><Ref refid="UQHServer" /></Arg>
>
> --
> Simone Bordet
> ----
> http://cometd.org
> http://webtide.com
> Developer advice, training, services and support
> from the Jetty & CometD experts.
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>


-- 
*Warm Regards*

*Balaji S*
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to