sessionDomain Error: java.lang.NoSuchMethodException: org.eclipse.jetty.server

This topic has 3 replies, 2 voices, and was last updated 5 years, 10 months ago by Mark Craig.

  • Author
    Posts
  • #6597
     mehanathen
    Participant

    Dear All,

    I am getting the below error when I configure OpenIG with Jetty 8 sessionDomain

    doc link: https://backstage.forgerock.com/#!/docs/openig/3.1.0/gateway-guide/chap-install#tomcat-cookie-domains

    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 more

    Usage: java -jar start.jar [options] [properties] [configs]
    java -jar start.jar –help # for more information

    Thanks & Regards
    Mehanathen N

    #6598
     Mark Craig
    Participant

    Hi 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,
    Mark

    #6599
     mehanathen
    Participant

    Thank U Mark. I was trying for past 2 days. Thanks

    #6600
     Mark Craig
    Participant

    It 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>
    `

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?