This topic has 3 replies, 2 voices, and was last updated 6 years, 8 months ago by Mark Craig.
-
AuthorPosts
-
December 18, 2015 at 10:38 am #6597
mehanathen
ParticipantDear All,
I am getting the below error when I configure OpenIG with Jetty 8 sessionDomain
Added at last of /path/to/jetty/etc/jetty.xml the following
<Get name=”sessionHandler”>
<Get name=”sessionManager”>
<Set name=”sessionDomain”>.example.com</Set>
</Get>
</Get>#java -Dopenig.base=/home/boss/.openig/ -jar start.jar
I get the below error
2015-12-18 09:30:37.281:WARN:oejx.XmlConfiguration:Config error at <Get name=”sessionHandler”><Get name=”sessionManager”><Set name=”sessionDomain”>.example.com</Set></Get></Get> java.lang.NoSuchMethodException: org.eclipse.jetty.server.Server.getSessionHandler()
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:473)
at org.eclipse.jetty.start.Main.start(Main.java:615)
at org.eclipse.jetty.start.Main.main(Main.java:96)
Caused by: java.lang.NoSuchMethodException: org.eclipse.jetty.server.Server.getSessionHandler()
at java.lang.Class.getMethod(Class.java:1678)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.get(XmlConfiguration.java:673)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:402)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:355)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:296)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1262)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)
… 7 moreUsage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar –help # for more informationThanks & Regards
Mehanathen NDecember 18, 2015 at 11:33 am #6598Mark Craig
ParticipantHi Mehanathen N,
I confirm that I’m seeing the same issue, and have logged https://bugster.forgerock.org/jira/browse/OPENIG-814 against the docs.
Regards,
MarkDecember 18, 2015 at 12:06 pm #6599mehanathen
ParticipantThank U Mark. I was trying for past 2 days. Thanks
December 18, 2015 at 12:15 pm #6600Mark Craig
ParticipantIt looks like maybe you need to set this in
jetty/etc/webdefaults.xml
:`
<context-param>
<param-name>org.eclipse.jetty.servlet.SessionDomain</param-name>
<param-value>.example.com</param-value>
</context-param>
`
-
AuthorPosts
You must be logged in to reply to this topic.