Unable to install OpenAM with Amster

This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago by srinath.m.

  • Author
    Posts
  • #21804
     srinath.m
    Participant

    Hi All,

    I am getting the below error when installing OpenAM with Amster by the following command
    ./amster

    Error :
    Exception in thread “main” java.lang.UnsupportedClassVersionError: org/forgerock/openam/amster/Main : Unsupported major.minor version52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

    Env details::
    AM-eval-5.5.1 , Amster-5.5.0
    Java : jdk1.7.0_67

    Any help on this would be appreciated.
    Thanks,
    Srinath

    #21811
     handat
    Participant

    Use JDK 1.8 rather than 1.7

    #21824
     srinath.m
    Participant

    Thanks for the quick reply handat and using JDK1.8 Amster installed successfully.
    Now Iam getting another error while installing AM with Amster and below are the details.

    Error :
    05/11/2018 06:47:43:489 PM SGT: Checking license acceptance…
    05/11/2018 06:47:43:490 PM SGT: License terms accepted.
    05/11/2018 06:47:43:495 PM SGT: Checking configuration directory /root/openam.
    05/11/2018 06:47:43:496 PM SGT: …Success.
    05/11/2018 06:47:43:506 PM SGT: Extracting OpenDJ, please wait…
    05/11/2018 06:47:44:148 PM SGT: Complete
    05/11/2018 06:47:44:148 PM SGT: Running OpenDJ setup
    05/11/2018 06:47:44:422 PM SGT: …Failed An error occurred while attempting to setup the embedded server with server root ‘/root/openam/opends’, base DN ‘dc=openam,dc=forgerock,dc=org’ and backend type ‘je’.
    <!DOCTYPE html><html><head><title>Apache Tomcat/8.0.32 – Error report</title><style type=”text/css”>H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 500 – AMSetupFilter.doFilter</h1><div class=”line”></div><p><b>type</b> Exception report</p><p><b>message</b> <u>AMSetupFilter.doFilter</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b></p>

    javax.servlet.ServletException: AMSetupFilter.doFilter
            com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:141)
            org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:46)
    

    <p><b>root cause</b></p>

    com.sun.identity.setup.ConfiguratorException: configurator.embsetupopendsfailed, refer to install.log under /root/openam for more information.
            com.sun.identity.setup.AMSetupServlet.processRequest(AMSetupServlet.java:559)
            com.sun.identity.setup.AMSetupServlet.doPost(AMSetupServlet.java:413)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
            org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
            org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:36)
            org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:80)
            com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:125)
            org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:46)
    

    <p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/8.0.32 logs.</u></p><hr class=”line”><h3>Apache Tomcat/8.0.32</h3></body></html>
    Amster details :
    am> install-openam \
    > –serverUrl http://openam.example.com:8080/openam \
    > –adminPwd password \
    > –policyAgentPwd password \
    > –cookieDomain .example.com \
    > –acceptLicense \
    > –cfgDir /root/openam

    Env details::
    AM-eval-5.5.1 , Amster-5.5.0
    Java : jdk1.8

    Any help on this would be appreciated.
    Thanks,
    Srinath

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

You must be logged in to reply to this topic.

©2022 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?