HttpApplicationException: Unable to start OpenIG

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  srinath.m 1 year, 1 month ago.

  • Author
    Posts
  • #22381
     srinath.m 
    Participant

    Hi All,

    When I start OpenIG, I am getting the below error in route-system.log file

    16:30:37:369 | ERROR | localhost-startStop-1 | o.f.h.s.HttpFrameworkServlet | Error while starting the application.
    org.forgerock.http.HttpApplicationException: Unable to start OpenIG
    at org.forgerock.openig.http.GatewayHttpApplication.start(GatewayHttpApplication.java:182)
    at org.forgerock.http.servlet.HttpFrameworkServlet.init(HttpFrameworkServlet.java:163)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1227)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1030)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5037)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5347)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:974)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1850)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: org.forgerock.json.JsonValueException: /heap/0/type: java.lang.ClassNotFoundException: FileLogSink
    at org.forgerock.openig.util.JsonValues.classForName(JsonValues.java:89)
    at org.forgerock.openig.util.JsonValues.asClass(JsonValues.java:114)
    at org.forgerock.openig.heap.HeapImpl.addDeclaration(HeapImpl.java:277)
    at org.forgerock.openig.heap.HeapImpl.init(HeapImpl.java:191)
    at org.forgerock.openig.http.GatewayHttpApplication.start(GatewayHttpApplication.java:161)
    … 17 common frames omitted
    Caused by: java.lang.ClassNotFoundException: FileLogSink
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1335)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1163)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.forgerock.openig.util.JsonValues.classForName(JsonValues.java:87)
    … 21 common frames omitted

    OpenIG version – IG-eval-5.5.0.war

    Here is my openig config.json file settings

    {  
       "handler":{  
          "type":"Router",
          "audit":"global",
          "capture":"all"
       },
       "heap":[  
          {  
             "name":"LogSink",
             "type":"FileLogSink",
             "config":{  
                "file":"D:\\XXXX\\ForgeRock\\dev-fr\\openig\\debug.log",
                "level":"DEBUG"
             }
          },
          {  
             "name":"JwtSession",
             "type":"JwtSession"
          },
          {  
             "name":"capture",
             "type":"CaptureDecorator",
             "config":{  
                "captureEntity":false,
                "_captureContext":true
             }
          }
       ]
    }

    Any help on this would be appreciated.

    Thanks,
    Srinath

    #22382
     violette 
    Participant

    Hi srinath.m,

    Since OpenIG 5, the OpenIG class logger has been replaced by SLF4J class logger.

    As specified in https://backstage.forgerock.com/docs/ig/5/release-notes/#changes,
    the following classes are removed in this release: ConsoleLogSink, FileLogSink, Slf4jLogSink.
    SLF4J is now provided in OpenIG, allowing you to define different logging behavior for routes and third-party dependencies.

    You will have to remove the “FileLogSink” object from your heap configuration.

    For further details about logging, please have a look at:
    https://backstage.forgerock.com/docs/ig/5.5/gateway-guide/#chap-logging

    Cheers,
    /Violette

    #22385
     srinath.m 
    Participant

    Thanks for the quick reply @violette. I have followed your suggestions to resolve the error.

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

You must be logged in to reply to this topic.

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