Error in HTTPS configuration for Jetty-9.4.14(Unable to configure HTTPS in Jetty 9.4.14)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in HTTPS configuration for Jetty-9.4.14(Unable to configure HTTPS in Jetty 9.4.14)

Himalaya Jha
HI,

Here is the error what I am geeting when trying to configure https in Jetty 9.4.14.

I followed these steps :
1. Uncommented following piece of code in cm_https.xml file

<Item>
<New class="org.eclipse.jetty.server.ProxyConnectionFactory"/>
</Item>

2. Created keystore file

3. Made changes in ccm.server.properties

The same steps I followed for Jetty 8 and it worked absolutely fine, But for Jetty 9.4.14 I am getting following errors;

Can anybody please help me with the solution in details ??


I will be very thankful!!!!

I am also attaching the screenshot for the error.

[ccm_root@synredhat6qa2 bin]$ ccm_server -start
Starting Jetty:
Jetty running pid=19579
Exception in thread "main" java.security.PrivilegedActionException: org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration$1: class org.eclipse.jetty.util.ssl.SslContextFactory.setKeyStore(class java.lang.String). Found setters for java.security.KeyStore
at java.security.AccessController.doPrivileged(AccessController.java:707)
at org.eclipse.jetty.xml.Xmlconfiguration.main(Xmlconfiguration.java:1511)
Caused by: org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration$1: class org.eclipse.jetty.util.ssl.SslContextFactory.setKeyStore(class java.lang.String). Found setters for java.security.KeyStore
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:661)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.configure(Xmlconfiguration.java:466)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.newObj(Xmlconfiguration.java:875)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.itemValue(Xmlconfiguration.java:1309)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.value(Xmlconfiguration.java:1214)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.newArray(Xmlconfiguration.java:936)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.itemValue(Xmlconfiguration.java:1313)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.value(Xmlconfiguration.java:1214)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.newObj(Xmlconfiguration.java:842)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.itemValue(Xmlconfiguration.java:1309)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.value(Xmlconfiguration.java:1214)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.access$500(Xmlconfiguration.java:326)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration$AttrOrElementNode.getList(Xmlconfiguration.java:1442)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration$AttrOrElementNode.getList(Xmlconfiguration.java:1417)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.call(Xmlconfiguration.java:780)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.configure(Xmlconfiguration.java:472)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.configure(Xmlconfiguration.java:413)
at org.eclipse.jetty.xml.Xmlconfiguration.configure(Xmlconfiguration.java:311)
at org.eclipse.jetty.xml.Xmlconfiguration$1.run(Xmlconfiguration.java:1558)
at org.eclipse.jetty.xml.Xmlconfiguration$1.run(Xmlconfiguration.java:1512)
at java.security.AccessController.doPrivileged(AccessController.java:703)
... 1 more
Suppressed: java.lang.NoSuchMethodException: org.eclipse.jetty.util.ssl.SslContextFactory.setKeyStore(java.lang.String)
at java.lang.Class.newNoSuchMethodException(Class.java:561)
at java.lang.Class.throwExceptionOrReturnNull(Class.java:1194)
at java.lang.Class.getMethodHelper(Class.java:1258)
at java.lang.Class.getMethod(Class.java:1186)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:544)
... 21 more
Suppressed: java.lang.NoSuchFieldException: TYPE
at java.lang.Class.getField(Class.java:1080)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:557)
... 21 more
Suppressed: java.lang.NoSuchFieldException: KeyStore
at java.lang.Class.getField(Class.java:1080)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:572)
... 21 more
Suppressed: java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:601)
... 21 more
Suppressed: java.lang.NoSuchMethodException: java.security.KeyStore.<init>(java.lang.String)
at java.lang.Class.newNoSuchMethodException(Class.java:561)
at java.lang.Class.getConstructor(Class.java:603)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:644)
... 21 more 


Regards,
Himalaya 

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Error in HTTPS configuration for Jetty-9.4.14(Unable to configure HTTPS in Jetty 9.4.14)

Himalaya Jha
Please help me with the solution, In which xml files  or where should I make changes.


On Wed, Oct 2, 2019 at 10:41 PM Himalaya Jha <[hidden email]> wrote:
HI,

Here is the error what I am geeting when trying to configure https in Jetty 9.4.14.

I followed these steps :
1. Uncommented following piece of code in cm_https.xml file

<Item>
<New class="org.eclipse.jetty.server.ProxyConnectionFactory"/>
</Item>

2. Created keystore file

3. Made changes in ccm.server.properties

The same steps I followed for Jetty 8 and it worked absolutely fine, But for Jetty 9.4.14 I am getting following errors;

Can anybody please help me with the solution in details ??


I will be very thankful!!!!

I am also attaching the screenshot for the error.

[ccm_root@synredhat6qa2 bin]$ ccm_server -start
Starting Jetty:
Jetty running pid=19579
Exception in thread "main" java.security.PrivilegedActionException: org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration$1: class org.eclipse.jetty.util.ssl.SslContextFactory.setKeyStore(class java.lang.String). Found setters for java.security.KeyStore
at java.security.AccessController.doPrivileged(AccessController.java:707)
at org.eclipse.jetty.xml.Xmlconfiguration.main(Xmlconfiguration.java:1511)
Caused by: org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration$1: class org.eclipse.jetty.util.ssl.SslContextFactory.setKeyStore(class java.lang.String). Found setters for java.security.KeyStore
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:661)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.configure(Xmlconfiguration.java:466)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.newObj(Xmlconfiguration.java:875)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.itemValue(Xmlconfiguration.java:1309)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.value(Xmlconfiguration.java:1214)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.newArray(Xmlconfiguration.java:936)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.itemValue(Xmlconfiguration.java:1313)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.value(Xmlconfiguration.java:1214)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.newObj(Xmlconfiguration.java:842)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.itemValue(Xmlconfiguration.java:1309)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.value(Xmlconfiguration.java:1214)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.access$500(Xmlconfiguration.java:326)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration$AttrOrElementNode.getList(Xmlconfiguration.java:1442)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration$AttrOrElementNode.getList(Xmlconfiguration.java:1417)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.call(Xmlconfiguration.java:780)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.configure(Xmlconfiguration.java:472)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.configure(Xmlconfiguration.java:413)
at org.eclipse.jetty.xml.Xmlconfiguration.configure(Xmlconfiguration.java:311)
at org.eclipse.jetty.xml.Xmlconfiguration$1.run(Xmlconfiguration.java:1558)
at org.eclipse.jetty.xml.Xmlconfiguration$1.run(Xmlconfiguration.java:1512)
at java.security.AccessController.doPrivileged(AccessController.java:703)
... 1 more
Suppressed: java.lang.NoSuchMethodException: org.eclipse.jetty.util.ssl.SslContextFactory.setKeyStore(java.lang.String)
at java.lang.Class.newNoSuchMethodException(Class.java:561)
at java.lang.Class.throwExceptionOrReturnNull(Class.java:1194)
at java.lang.Class.getMethodHelper(Class.java:1258)
at java.lang.Class.getMethod(Class.java:1186)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:544)
... 21 more
Suppressed: java.lang.NoSuchFieldException: TYPE
at java.lang.Class.getField(Class.java:1080)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:557)
... 21 more
Suppressed: java.lang.NoSuchFieldException: KeyStore
at java.lang.Class.getField(Class.java:1080)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:572)
... 21 more
Suppressed: java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:601)
... 21 more
Suppressed: java.lang.NoSuchMethodException: java.security.KeyStore.<init>(java.lang.String)
at java.lang.Class.newNoSuchMethodException(Class.java:561)
at java.lang.Class.getConstructor(Class.java:603)
at org.eclipse.jetty.xml.Xmlconfiguration$JettyXmlconfiguration.set(Xmlconfiguration.java:644)
... 21 more 


Regards,
Himalaya 

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

JettyError.PNG (180K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error in HTTPS configuration for Jetty-9.4.14(Unable to configure HTTPS in Jetty 9.4.14)

Simone Bordet-3
Hi,

On Wed, Oct 2, 2019 at 7:15 PM Himalaya Jha <[hidden email]> wrote:
>
> Please help me with the solution, In which xml files  or where should I make changes.

You have an old XML file.

Search in those for "keyStore" you will find a <Set ...> element that
needs to be changed.
The name of the property to set is now "keyStorePath".

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Error in HTTPS configuration for Jetty-9.4.14(Unable to configure HTTPS in Jetty 9.4.14)

Himalaya Jha
Hi,

Thanks you so much that error is gone now, but now getting some another error :

[ccm_root@synredhat6qa2 cm722b139]$ ccm_server -start
Starting Jetty:
Jetty running pid=23812
Exception in thread "main" java.lang.ArrayStoreException
        at java.lang.System.arraycopy(Native Method)
        at java.util.ArrayList.toArray(ArrayList.java:423)
        at org.eclipse.jetty.util.LazyList.toArray(LazyList.java:346)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newArray(XmlConfiguration.java:942)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1313)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1214)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:842)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1309)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1214)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.access$500(XmlConfiguration.java:326)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1442)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1417)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:780)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:472)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:413)
        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:311)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1558)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1512)
        at java.security.AccessController.doPrivileged(AccessController.java:703)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1511)

Please suggest !!!!

Regards,
Himalaya

On Wed, Oct 2, 2019 at 10:56 PM Simone Bordet <[hidden email]> wrote:
Hi,

On Wed, Oct 2, 2019 at 7:15 PM Himalaya Jha <[hidden email]> wrote:
>
> Please help me with the solution, In which xml files  or where should I make changes.

You have an old XML file.

Search in those for "keyStore" you will find a <Set ...> element that
needs to be changed.
The name of the property to set is now "keyStorePath".

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

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

Error.PNG (87K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error in HTTPS configuration for Jetty-9.4.14(Unable to configure HTTPS in Jetty 9.4.14)

Joakim Erdfelt-8
You have a different XML error.

Something to do with a <Array> element badly declared, or lack of one (where one is expected).

Jetty 9.4.20.v20180813 reports the file and line number where the XML issues occur btw.
Hopefully your ccm is using XML files and not in-memory XML strings.

Joakim Erdfelt / [hidden email]


On Wed, Oct 2, 2019 at 1:34 PM Himalaya Jha <[hidden email]> wrote:
Hi,

Thanks you so much that error is gone now, but now getting some another error :

[ccm_root@synredhat6qa2 cm722b139]$ ccm_server -start
Starting Jetty:
Jetty running pid=23812
Exception in thread "main" java.lang.ArrayStoreException
        at java.lang.System.arraycopy(Native Method)
        at java.util.ArrayList.toArray(ArrayList.java:423)
        at org.eclipse.jetty.util.LazyList.toArray(LazyList.java:346)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newArray(XmlConfiguration.java:942)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1313)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1214)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:842)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1309)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1214)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.access$500(XmlConfiguration.java:326)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1442)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1417)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:780)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:472)
        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:413)
        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:311)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1558)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1512)
        at java.security.AccessController.doPrivileged(AccessController.java:703)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1511)

Please suggest !!!!

Regards,
Himalaya

On Wed, Oct 2, 2019 at 10:56 PM Simone Bordet <[hidden email]> wrote:
Hi,

On Wed, Oct 2, 2019 at 7:15 PM Himalaya Jha <[hidden email]> wrote:
>
> Please help me with the solution, In which xml files  or where should I make changes.

You have an old XML file.

Search in those for "keyStore" you will find a <Set ...> element that
needs to be changed.
The name of the property to set is now "keyStorePath".

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

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