3 Replies Latest reply: Nov 26, 2013 9:16 AM by user2176172 RSS

    OAG - Kerberos - Native GSS library import error.

    user2176172

      Hi,

       

      I tried configuring GSS library in Setting--> Kerberos. I tried importing .so file as given in below link (end of page) . i didn't get /usr/lib/libgssapi.so file instead i had libgssapi.so.2.0.0 and libgssapi.so.2 in /user/lib64.

      I tried importing libgssapi.so.2.0.0 file in Native GSS library.

       

      http://docs.oracle.com/cd/E39820_01/doc.11121/gateway_docs/content/kerberos_configuration.html

       

      After import, when i try to deploy it throws below error. Could you please help me here to resolve this error  as i am not able to proceed futhur on this.

       

       

      ERROR 2013/11/13 22:15:52.084 java exception:

       

      GSSException: Unsupported mechanism requested: 1.2.840.113554.1.2.2

       

      at sun.security.jgss.ProviderList.getMechFactory(ProviderList.java:187)

       

      at sun.security.jgss.ProviderList.getMechFactory(ProviderList.java:154)

       

      at sun.security.jgss.GSSManagerImpl.getNameElement(GSSManagerImpl.java:187)

       

      at sun.security.jgss.GSSNameImpl.getElement(GSSNameImpl.java:428)

       

      at sun.security.jgss.GSSNameImpl.init(GSSNameImpl.java:157)

       

      at sun.security.jgss.GSSNameImpl.<init>(GSSNameImpl.java:127)

       

      at sun.security.jgss.GSSNameImpl.<init>(GSSNameImpl.java:111)

       

      at sun.security.jgss.GSSManagerImpl.createName(GSSManagerImpl.java:113)

       

      at com.vordel.circuit.gss.GssEndpoint$GetCredential.run(GssEndpoint.java:480)

       

      at com.vordel.circuit.gss.GssEndpoint.refreshCredentials(GssEndpoint.java:296)

       

      at com.vordel.circuit.gss.GssEndpoint.initialize(GssEndpoint.java:183)

       

      at com.vordel.circuit.gss.GssAcceptors.configure(GssAcceptors.java:38)

       

      at com.vordel.precipitate.SolutionPack.loadModules(SolutionPack.java:501)

       

      at com.vordel.dwe.Service.refresh(Service.java:415)

       

      at com.vordel.api.configuration.ConfigurationService.updateConfiguration(ConfigurationService.java:77)

       

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      at java.lang.reflect.Method.invoke(Method.java:597)

       

      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

       

      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)

       

      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

       

      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)

       

      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

       

      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

       

      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)

       

      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)

       

      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)

       

      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)

       

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

       

       

       

      ERROR 2013/11/13 22:15:52.087 java exception:

       

      java.io.IOException: Cannot run program "kinit": java.io.IOException: error=2, No such file or directory

       

      at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)

       

      at java.lang.Runtime.exec(Runtime.java:593)

       

      at com.vordel.common.util.ProcessExecutor.execute(ProcessExecutor.java:45)

       

      at com.vordel.circuit.gss.ExecuteKinit.execute(ExecuteKinit.java:23)

       

      at com.vordel.circuit.gss.GssInitiator.loginNatively(GssInitiator.java:760)

       

      at com.vordel.circuit.gss.GssEndpoint.login(GssEndpoint.java:365)

       

      at com.vordel.circuit.gss.GssEndpoint.initialize(GssEndpoint.java:182)

       

      at com.vordel.circuit.gss.GssInitiator.initialize(GssInitiator.java:125)

       

      at com.vordel.circuit.gss.GssInitiators.loadNewInitiator(GssInitiators.java:48)

       

      at com.vordel.circuit.gss.GssInitiators.configure(GssInitiators.java:34)

       

      at com.vordel.precipitate.SolutionPack.loadModules(SolutionPack.java:501)

       

      at com.vordel.dwe.Service.refresh(Service.java:415)

       

      at com.vordel.api.configuration.ConfigurationService.updateConfiguration(ConfigurationService.java:77)

       

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      at java.lang.reflect.Method.invoke(Method.java:597)

       

      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

       

      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)

       

      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

       

      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)

       

      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

       

      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

       

      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)

       

      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)

       

      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)

       

      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)

       

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

       

      Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory

       

      at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)

       

      at java.lang.ProcessImpl.start(ProcessImpl.java:65)

       

      at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)

       

      ... 31 more

       

       

       

      ERROR 2013/11/13 22:15:52.087 java exception:

       

      GSSException: Unsupported mechanism requested: 1.2.840.113554.1.2.2

       

      at sun.security.jgss.ProviderList.getMechFactory(ProviderList.java:187)

       

      at sun.security.jgss.ProviderList.getMechFactory(ProviderList.java:154)

       

      at sun.security.jgss.GSSManagerImpl.getNameElement(GSSManagerImpl.java:187)

       

      at sun.security.jgss.GSSNameImpl.getElement(GSSNameImpl.java:428)

       

      at sun.security.jgss.GSSNameImpl.init(GSSNameImpl.java:157)

       

      at sun.security.jgss.GSSNameImpl.<init>(GSSNameImpl.java:127)

       

      at sun.security.jgss.GSSNameImpl.<init>(GSSNameImpl.java:111)

       

      at sun.security.jgss.GSSManagerImpl.createName(GSSManagerImpl.java:113)

       

      at com.vordel.circuit.gss.GssEndpoint$GetCredential.run(GssEndpoint.java:480)

       

      at com.vordel.circuit.gss.GssEndpoint.refreshCredentials(GssEndpoint.java:296)

       

      at com.vordel.circuit.gss.GssEndpoint.initialize(GssEndpoint.java:183)

       

      at com.vordel.circuit.gss.GssInitiator.initialize(GssInitiator.java:125)

       

      at com.vordel.circuit.gss.GssInitiators.loadNewInitiator(GssInitiators.java:48)

       

      at com.vordel.circuit.gss.GssInitiators.configure(GssInitiators.java:34)

       

      at com.vordel.precipitate.SolutionPack.loadModules(SolutionPack.java:501)

       

      at com.vordel.dwe.Service.refresh(Service.java:415)

       

      at com.vordel.api.configuration.ConfigurationService.updateConfiguration(ConfigurationService.java:77)

       

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      at java.lang.reflect.Method.invoke(Method.java:597)

       

      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

       

      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)

       

      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

       

      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)

       

      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

       

      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

       

      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)

       

      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)

       

      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)

       

      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)

       

      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)

       

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

       

      Regards,

      Ganesh

        • 1. Re: OAG - Kerberos - Native GSS library import error.
          user2176172

          i am not able to start instance. getting below error.

           

          com.vordel.es.EntityStoreException: Failed to configure module: '/[GSSInitiators]name=GSS Initiators' reason: 'GssInititor misconfigured. The process must Use Native GSS Library in order to load the TGT natively.'

                  at com.vordel.precipitate.SolutionPack.throwit(SolutionPack.java:528)

                  at com.vordel.precipitate.SolutionPack.loadModules(SolutionPack.java:503)

                  at com.vordel.dwe.Service.refresh(Service.java:415)

                  at com.vordel.dwe.Service.<init>(Service.java:374)

          Caused by: com.vordel.es.EntityStoreException: GssInititor misconfigured. The process must Use Native GSS Library in order to load the TGT natively.

                  at com.vordel.circuit.gss.GssInitiator.configure(GssInitiator.java:103)

                  at com.vordel.circuit.gss.GssInitiators.loadNewInitiator(GssInitiators.java:46)

                  at com.vordel.circuit.gss.GssInitiators.configure(GssInitiators.java:34)

                  at com.vordel.precipitate.SolutionPack.loadModules(SolutionPack.java:501)

                  ... 2 more

           

          Regards,

          Ganesh

          • 2. Re: OAG - Kerberos - Native GSS library import error.
            StefanOEG

            Hi Ganesh,

             

            I assume you are running 64-bit Linux, what version and kernel are you running?

             

            This is not my area of expertise but check the info here: Libgssapi - CBLFS

            If I understand it all correctly there are some config files related to the GSS libs that needs to be configured and also there are some dependencies to other libs and here the location of those are important.

             

            Could also be some access denied issue were the gateway is not allowed to load the lib, but should have been shown in the trace.

             

            Cheers,

            Stefan

            • 3. Re: OAG - Kerberos - Native GSS library import error.
              user2176172

              Hi Stefan,

              Thanks alot for your reply. it seems the lib has been removed from linux machine. working to restore the same.

               

              Regards,

              Ganesh