9 Replies Latest reply: Oct 14, 2012 11:52 PM by Sagar RSS

    OIM SOA workflow registration error

    Powerlad
      Hi All,

      I am trying to register the cutom workflow which has been deployed in SOA. But getting the following error.




      oracle.iam.platform.utils.NoSuchServiceException: set WL_HOME
      at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
      at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
      at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
      at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
      at oracle.iam.platform.OIMClient.login(OIMClient.java:114)
      at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:87)
      at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)
      Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:191)
      ... 6 more
      oracle.iam.platform.utils.NoSuchServiceException: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.WorkflowRegistrationServiceDelegate
      at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
      at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
      at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:88)
      at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)
      Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.WorkflowRegistrationServiceDelegate
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:191)
      ... 3 more
      Oct 9, 2012 10:31:37 AM oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil getWorkflowService
      SEVERE: Incorrect username/password entered during registration of workflow
      Exception in thread "main" oracle.iam.platform.workflowservice.exception.IAMWorkflowException: Incorrect username/password entered during registration of workflow
      at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:92)
      at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)
        • 1. Re: OIM SOA workflow registration error
          Saurabh Tripathi
          Hi,

          From log it is cleared that you haven't set the WL_HOME. So first you need to set the WL_HOME.
          Then try once again.

          Thanks,
          Saurabh
          • 2. Re: OIM SOA workflow registration error
            Powerlad
            Hi , I have created the environment variable WL_HOME and then tried to register.

            oracle.iam.platform.utils.NoSuchServiceException: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate
            at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
            at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
            at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
            at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
            at oracle.iam.platform.OIMClient.login(OIMClient.java:114)
            at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:87)
            at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)
            Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:169)
            at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:191)
            ... 6 more
            oracle.iam.platform.utils.NoSuchServiceException: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.WorkflowRegistrationServiceDelegate
            at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
            at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
            at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:88)
            at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)
            Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.WorkflowRegistrationServiceDelegate
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:169)
            at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:191)
            ... 3 more
            Oct 13, 2012 3:40:45 PM oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil getWorkflowService
            SEVERE: Incorrect username/password entered during registration of workflow
            Exception in thread "main" oracle.iam.platform.workflowservice.exception.IAMWorkflowException: Incorrect username/password entered during registration of workflow
            at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:92)
            at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)


            ddleware\Oracle_IDM1\server\workflows\registration\registerworkflows-mp.xml:51: Java returned: 1
            • 3. Re: OIM SOA workflow registration error
              Saurabh Tripathi
              Hi,

              oracle.iam.platform.utils.NoSuchServiceException: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate
              at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
              at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
              at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
              at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
              at oracle.iam.platform.OIMClient.login(OIMClient.java:114)
              at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:87)
              at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)
              Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:169)
              at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:191)
              ... 6 more
              oracle.iam.platform.utils.NoSuchServiceException: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.WorkflowRegistrationServiceDelegate
              at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
              at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
              at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:88)
              at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)
              Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.api.WorkflowRegistrationServiceDelegate
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:169)
              at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:191)
              ... 3 more
              Oct 13, 2012 3:40:45 PM oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil getWorkflowService
              SEVERE: Incorrect username/password entered during registration of workflow
              Exception in thread "main" oracle.iam.platform.workflowservice.exception.IAMWorkflowException: Incorrect username/password entered during registration of workflow
              at oracle.iam.platformservice.workflowregclient.WorkflowServiceClientUtil.getWorkflowService(WorkflowServiceClientUtil.java:92)
              at oracle.iam.platformservice.workflowregclient.WorkflowRegistration.main(WorkflowRegistration.java:41)

              ddleware\Oracle_IDM1\server\workflows\registration\registerworkflows-mp.xml:51: Java returned: 1




              Just  read the above bold line You can understand the problem. You are entering wrong userID or password.
              • 4. Re: OIM SOA workflow registration error
                Dhananjay Neeraj2
                Then there is some mistake in $MIDDLEWARE_HOME/Oracle_IDM1/server/workflows/registration/YourPropertiesFile.properties..

                Open up the properties file...

                And name=Your Project Name
                category=Approval
                providerType=BPEL
                serviceName=requestApprovalService
                domainName=default
                version=1.0
                payLoad=payLoad
                operationID=process
                listOfTask=ApprovalTask

                Also check the user ID and password....
                Hopefully you have created wlFullclient.jar too...

                For reference take a look at the Oracle By Example guide once for Request_Workflow_for_Self_Registration:-

                http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Request_Workflow_for_Self_Registration/request_workflow_for_self_registration.htm


                ant -f <OIM_HOME>/server/workflows/registration/registerworkflows-mp.xml register

                And are you giving xelsysadm password or weblogic? It should be xelsysadm...


                Enter the username:-xelsysadm
                Enter the password: Password of xelsysdam
                Provide oim managed server t3 URL:t3://localhost:14000
                inputpath(complete file name) of the property file: SelfRegistrationApproval.props
                • 5. Re: OIM SOA workflow registration error
                  Nishith Nayan
                  before registration verify below

                  env to set

                  WL_HOME= <weblogic home>
                  APP_SERVER=name of the admin server ex: weblogic
                  MW_HOME= <middleware home>
                  OIM_HOME


                  Props detail

                  name=<Project Name>
                  category=Approval
                  providerType=BPEL
                  serviceName=requestApprovalService
                  domainName=default
                  version=1.0
                  payLoad=payLoad
                  operationID=process
                  listOfTask=ApprovalTask


                  Prompt Value


                  Enter the username xelsysadm

                  Enter the password :<xelsysadm password>

                  Provide oim managed server t3 URL t3://<OIM_HOST_NAME or IP:OIM_PORT

                  inputpath(complete file name) of the property file :<Absolutepath>/xxxx.props


                  Make sure you don't have any extra space in props file and while registring provide the Absolute path/props file for 11gr1 and only propsname for 11gr2.
                  Provide proper login credential as well

                  find below link for detail
                  http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Request_Workflow_for_Self_Registration/request_workflow_for_self_registration.htm

                  If still you find login issue in workflow registration then may you have not created wlfullclient.jar. create the same

                  Generating wlfullclient.jar

                  Setting the CLASSPATH
                  Go to the OIM DOMAIN/bin directory and run the following command.
                  ./setDomainEnv.sh

                  The above command will set the classpath

                  Generating the wlfullclient.jar

                  Go to the $WL_HOME/server/lib directory and Run the following command
                  java -jar wljarbuilder.jar
                  It will generate the wlfullclient.jar file and set the class path for the wlfullclient.jar.

                  --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
                  • 6. Re: OIM SOA workflow registration error
                    Powerlad
                    Hi All,

                    I have followed all the steps suggested by you .

                    wlfullclient has been generated. then set the environment running the setEnv.bat since iam working on windows.

                    Created all the environment variables.

                    OIM_HOME=...\ORACLE_IDM1\sever
                    OIM_ORACLE_HOME=...\ORACLE_IDM1
                    WL_HOME,
                    MW_HOME,
                    ANT_HOME.

                    And the creds which iam using for xelsysadm working for web console login.

                    Still no luck ...getting the same error.
                    • 7. Re: OIM SOA workflow registration error
                      Nishith Nayan
                      put OIM_HOME=...\ORACLE_IDM1 instead of OIM_HOME=...\ORACLE_IDM1\sever

                      --nayan                                                                                                                                                                               
                      • 8. Re: OIM SOA workflow registration error
                        Dhananjay Neeraj2
                        I am copying my Environment variables... Please take a look at it carefully...


                        ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
                        ORACLE_SID=orcl
                        JAVA_HOME=/usr/java/jdk1.6.0_22
                        MW_HOME=/home/oracle/Oracle/Middleware
                        ANT_HOME=$MW_HOME/modules/org.apache.ant_1.7.1
                        PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:$ORACLE_HOME/bin:$ANT_HOME/bin
                        OIM_ORACLE_HOME=$MW_HOME/Oracle_IDM1
                        WL_HOME=$MW_HOME/wlserver_10.3

                        export ORACLE_SID
                        export ORACLE_HOME
                        export JAVA_HOME
                        export PATH
                        export OIM_ORACLE_HOME
                        export ANT_HOME
                        export WL_HOME
                        export MW_HOME
                        • 9. Re: OIM SOA workflow registration error
                          Sagar
                          Are you providing relative paths to specific folder?

                          Instead of that provide absolute paths i.e. path starting from root directory.

                          In windows environment it should be starting drive letter. i.e. c:\