10 Replies Latest reply on Dec 28, 2018 6:37 AM by Philipp Grigoryev

    Error while Registering Event Handlers in OIMPS3

    3407678

      I have tried all the steps,still not able to resolve the below error,Need experts help

       

      Points to note:

       

      1.Added jrf-api.jar into classpath

      2.tried to add the jar in lib ,then register(still no luck,removed after testing).

      ERROR:

       

      [java] Java Result: 1

         [delete] Deleting: C:\OIMPS3\Middleware\Oracle_IDM1\server\plugin_utility\20181227170359.tmp

           [echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jrf/PortabilityLayerException

           [echo]     at oracle.iam.platformservice.utils.PluginUtility.main(PluginUtility.java:210)

           [echo] Caused by: java.lang.ClassNotFoundException: oracle.jrf.PortabilityLayerException

           [echo]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

           [echo]     at java.security.AccessController.doPrivileged(Native Method)

           [echo]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

           [echo]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

           [echo]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

       

           [echo]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)   

        • 1. Re: Error while Registering Event Handlers in OIMPS3
          Philipp Grigoryev

          What do you run to register a plugin?

          • 2. Re: Error while Registering Event Handlers in OIMPS3
            3407678

            am using

             

            ant -f pluginregistration.xml register to register the plugin.

            • 3. Re: Error while Registering Event Handlers in OIMPS3
              Philipp Grigoryev

              Do you see an added jrf-api.jar in the classpath in an output provided by ant?

              • 4. Re: Error while Registering Event Handlers in OIMPS3
                3407678

                i have tried everyting,still jrf-api.jar is not adding in the classpath,can you help me to include in the classpath ?

                 

                 

                     [java] Java Result: 1

                   [delete] Deleting: C:\OIMPS3\Middleware\Oracle_IDM1\server\plugin_utility\20181227170359.tmp

                     [echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jrf/PortabilityLayerException

                     [echo]     at oracle.iam.platformservice.utils.PluginUtility.main(PluginUtility.java:210)

                     [echo] Caused by: java.lang.ClassNotFoundException: oracle.jrf.PortabilityLayerException

                     [echo]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                     [echo]     at java.security.AccessController.doPrivileged(Native Method)

                     [echo]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                     [echo]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                     [echo]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                 

                     [echo]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)   

                    

                     ===

                    

                     -register-to-wls-server:

                     [java] Java Result: 1

                   [delete] Deleting: C:\OIMPS3\Middleware\Oracle_IDM1\server\plugin_utility\201

                81227170359.tmp

                     [echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jr

                f/PortabilityLayerException

                     [echo]     at oracle.iam.platformservice.utils.PluginUtility.main(PluginUti

                lity.java:210)

                     [echo] Caused by: java.lang.ClassNotFoundException: oracle.jrf.PortabilityL

                ayerException

                     [echo]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

                     [echo]     at java.security.AccessController.doPrivileged(Native Method)

                     [echo]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                     [echo]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                     [echo]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                 

                     [echo]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                     [echo]     ... 1 more

                     [echo] classpath=C:\OIMPS3\Middleware\Oracle_IDM1\server\ext\spring.jar;C:\

                OIMPS3\Middleware\Oracle_IDM1\server\ext\jakarta-commons\commons-logging.jar;C:\

                OIMPS3\Middleware\Oracle_IDM1\server\platform\iam-platform-context.jar;C:\OIMPS3

                \Middleware\Oracle_IDM1\server\platform\iam-platform-utils.jar;C:\OIMPS3\Middlew

                are\Oracle_IDM1\server\platform\iam-platform-auth-client.jar;C:\OIMPS3\Middlewar

                e\Oracle_IDM1\server\platform\iam-platform-pluginframework.jar;C:\OIMPS3\Middlew

                are\Oracle_IDM1\server\client\oimclient.jar

                     [echo]

                     [echo]

                     [echo] was_home=null

                     [echo]

                     [echo]

                     [echo] client_home=null

                     [echo]

                     [echo]

                     [echo] xl_home=null

                     [echo]

                     [echo]

                     [echo] mw_home=null

                     [echo]

                     [echo]

                     [echo] newClasspath=C:\OIMPS3\Middleware\Oracle_IDM1\server\ext\spring.jar;

                C:\OIMPS3\Middleware\Oracle_IDM1\server\ext\jakarta-commons\commons-logging.jar;

                C:\OIMPS3\Middleware\Oracle_IDM1\server\platform\iam-platform-context.jar;C:\OIM

                PS3\Middleware\Oracle_IDM1\server\platform\iam-platform-utils.jar;C:\OIMPS3\Midd

                leware\Oracle_IDM1\server\platform\iam-platform-auth-client.jar;C:\OIMPS3\Middle

                ware\Oracle_IDM1\server\platform\iam-platform-pluginframework.jar;C:\OIMPS3\Midd

                leware\Oracle_IDM1\server\client\oimclient.jar.:/sample:null/ext/ojdbc14.jar:nul

                l/ext/ucp.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:null/lib/o

                imclient.jar:null/server/lib/wlfullclient.jar:null/ext/jakarta-commons/commons-l

                ogging.jar:null/ext/commons-logging.jar:null/ext/spring.jar:null/ext/spring.jar:

                null/server/lib/webserviceclient+ssl.jar:null/platform/iam-platform-utils.jar:nu

                ll/server/lib/wlclient.jar:null/server/lib/weblogic.jar:null/platform/iam-platfo

                rm-auth-client.jar:null/features/iam-features-system-configuration.zip:null/feat

                ures/iam-features-identity.zip:null/features/iam-features-platformservice.zip:nu

                ll/ext/log4j-1.2.8.jar:null/lib/XellerateClient.jar:null/lib/xlAPI.jar:null/lib/

                xlLogger.jar:null/lib/xlVO.jar:null/lib/xlUtils.jar:null/lib/xlCrypto.jar:null/l

                ib/xlAuthentication.jar:null/lib/xlDataObjectBeans.jar:null/ext/oscache.jar:null

                /ext/javagroups-all.jar:null/lib/xlFvcUtil.jar:../../../iam/iam-lib/internal/jrf

                -api.jar:null/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar:null/ext/jrf-a

                pi.jar:null/oracle_common/webservices/wsclient_extended.jar:null/oracle_common/m

                odules/oracle.xdk_11.1.0/xmlparserv2.jar:null/oracle_common/modules/oracle.jmx_1

                1.1.1/jmxspi.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar

                 

                BUILD SUCCESSFUL

                Total time: 16 seconds

                • 5. Re: Error while Registering Event Handlers in OIMPS3
                  Philipp Grigoryev

                  You see this fragment of the classpath..

                   

                  null/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar

                   

                  You don’t have proper environment variables set. In the folder where you have your plugin_registration.xml you have another file with properties. Please make sure you specified correct paths in it.

                  • 6. Re: Error while Registering Event Handlers in OIMPS3
                    3407678

                    below are my ant.properties contents.do i need to add anything extra in this file? ,if you have sample file,please help me with that.

                     

                    ############################################################

                    ##      Oracle OIM plugin registration

                    ##

                    ## This file contains properties used

                    ## for the plugin registration utility for registering

                    ## and unregistering plugins

                    ##

                    ## Depending on your configuration you may have to change

                    ## these properties.

                    ##

                     

                    ############################################################

                    ## The installation directory for WLS or WAS

                    ############################################################

                    #wls.home=@wls_home

                    #was.home=@was_home

                     

                    ############################################################

                    # The OIM server directory for OIM. For example: MW_HOME/Oracle_IDM1/server

                    ############################################################

                    oim.home=C:/OIMPS3/Middleware/Oracle_IDM1/server

                     

                    ############################################################

                    #login file name with path for WAS or WLS

                    ############################################################

                    #login.config=${oim.home}/config/authwl.conf

                    #login.config=${oim.home}/config/authws.conf

                    login.config=C:\OIMPS3\Middleware\Oracle_IDM1\server\config\authwl.conf

                    #C:\OIMPS3\Middleware\Oracle_IDM1\server\config\authwl.conf

                     

                    ############################################################

                    # Represents the directory where Oracle Fusion Middleware is installed.

                    ############################################################

                    mw.home=C:\OIMPS3\Middleware

                     

                    # The installation directory for WLS

                    wls.home=C:\OIMPS3\Middleware\wlserver_10.3

                     

                    OIM.Username=xelsysadm

                    OIM.Password=*******

                    ServerURL=t3://OIM-PC:14000

                    PluginZipToRegister=C:\Users\AdminUser\Documents\SetMiddleName.zip

                    • 7. Re: Error while Registering Event Handlers in OIMPS3
                      Philipp Grigoryev

                      Looks kinda OK to me, but I usually do that on Linux. Make sure that those paths on Windows don’t have to be double
                      in the middle. Maybe somebody can suggest on that.

                       

                      Also I noticed that in some places you have /  while in other you use \

                      • 8. Re: Error while Registering Event Handlers in OIMPS3
                        Philipp Grigoryev

                        I noticed that in your classpath all jar's starting with C:\OIMPS3\Middleware\Oracle_IDM1\server are OK, so i think in windows you need to have your path in .properties specified with / as a separator in the full path, and not as \ which you used for mw.home for example

                        • 9. Re: Error while Registering Event Handlers in OIMPS3
                          3407678

                          Hello Philipp Grigoryev,

                           

                          Thank you very much.Issue got resolved after setting / instead of \.