5 Replies Latest reply: Apr 4, 2013 6:26 AM by 998276 RSS

    Error while patching middleware

    998276
      Hi

      I am using windows 2008 R2 and middleware 11.1.1.6.
      After installation of Identity Manager I am trying to patch it.
      In the MW_HOME/idm/Opatch I am executing the following command:
      opatch lsinventory

      and getting the following Message:

      MW_HOME\idm1\OPatch>opatch lsinventory
      The Oracle Home MW_HOME is not OUI based home. Please give proper Oracle Home.
      OPatch returns with error code = 1
      OPatch succeeded.

      Do i have to set ORACLE_HOME here or some other environment variables???
        • 1. Re: Error while patching middleware
          BikashBagaria
          What are you trying to patch? If you are patching OIM then you need to run the patch from Oracle_IDM1\Opatch directory. Also you need to set the the ORACLE_HOME variable to Oracle_IDM1 directory.

          -Bikash
          • 2. Re: Error while patching middleware
            998276
            Thanks for the reply!

            Yes thats true i have already found this out but i am gitting the following error message if i set ORACLE_HOME variable to Oracle_IDM1:

            D:\app\oracle2\product\fmw\idm1\OPatch>opatch lshomes
            Exception in thread "Main Thread" java.lang.NoClassDefFoundError: ;D:\app\oracle
            2\product\fmw\ORACLE~1/modules/oracle/jrf_11/1/1/jrf-wlstman/jar
            Caused by: java.lang.ClassNotFoundException: ;D:\app\oracle2\product\fmw\ORACLE~
            1.modules.oracle.jrf_11.1.1.jrf-wlstman.jar
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            Could not find the main class: ;D:\app\oracle2\product\fmw\ORACLE~1/modules/orac
            le.jrf_11.1.1/jrf-wlstman.jar. Program will exit.

            OPatch failed with error code = 1

            the error seems to be like here: https://forums.oracle.com/forums/thread.jspa?threadID=2507009&tstart=60
            but i dont understand which path the user has set to wls
            between it works for all other Middleware Homes but not for this one

            Edited by: 995273 on 22.03.2013 08:04
            • 3. Re: Error while patching middleware
              998276
              any idea how to solve it?
              I have found the file in the following folder:
              D:\app\oracle2\product\fmw\oracle_common\modules\oracle.jrf_11.1.1
              do i have to set some classpath variable??

              Edited by: 995273 on 22.03.2013 08:57
              • 4. Re: Error while patching middleware
                998276
                I have installed JAVA inside the middleware_home but still have the same error:

                D:\app\oracle2\product\fmw\idm2\OPatch>set PATH=%ORACLE_HOME%\bin;%PATH%

                D:\app\oracle2\product\fmw\idm2\OPatch>opatch lsinventory
                Exception in thread "Main Thread" java.lang.NoClassDefFoundError: ;D:\app\oracle
                2\product\fmw\ORACLE~1/modules/oracle/jrf_11/1/1/jrf-wlstman/jar
                Caused by: java.lang.ClassNotFoundException: ;D:\app\oracle2\product\fmw\ORACLE~
                1.modules.oracle.jrf_11.1.1.jrf-wlstman.jar
                at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
                at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
                Could not find the main class: ;D:\app\oracle2\product\fmw\ORACLE~1/modules/orac
                le.jrf_11.1.1/jrf-wlstman.jar. Program will exit.

                OPatch failed with error code = 1
                • 5. Re: Error while patching middleware
                  998276
                  Solved this problem.

                  The problem was the Opatch Version that was installed automatically. The Version was 11.1.0.8.3 i have replaced it with the following Version 11.2.0.1.9.

                  Now it works.