8 Replies Latest reply on Mar 13, 2012 5:27 AM by 889011

    Unable to find OSB API classes while submitting the resources to OER

    889011
      Hi,

      i had installed weblogic 11gR1 and installed OSB and OER on top of it.
      when i try to submit any xsd or WSDL file from eclipse to Oracle Enterprise Repository it will work fine.
      But when i try to submit any .biz or .proxy file (from osb project) i am getting the following error.
      can anybody please help

      0 [main] WARN com.oracle.oer.sync.framework.impl.DefaultPluginManager - Unable to initialize harvester plugin: D:\OSBOracleMiddleware\repository111\core\tools\solutions\11.1.1.5.0-OER-Harvester\harvester\.\plugins\osb10.productReader
      218 [main] INFO com.oracle.oer.sync.framework.MetadataManager - Oracle Enterprise_Repository_Harvester version: v11.1.1.5.0-110414_0001-1399976
      562 [main] WARN com.oracle.oer.sync.framework.impl.DefaultPluginManager - Unable to initialize harvester plugin: D:\OSBOracleMiddleware\repository111\core\tools\solutions\11.1.1.5.0-OER-Harvester\harvester\.\plugins\osb10.productReader
      968 [main] ERROR com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase - Unable to find OSB API classes. Make sure that the BEA_HOME environment variable points to an installation of OSB Server version 10.3.1
      com.oracle.oer.sync.framework.MetadataIntrospectionException: Unable to find OSB API classes. Make sure that the BEA_HOME environment variable points to an installation of OSB Server version 10.3.1
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.introspect(OSBServiceIntrospectorBase.java:96)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:601)
           at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
           at $Proxy24.read(Unknown Source)
           at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
           at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
           at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:428)
      Caused by: java.lang.NoClassDefFoundError: com/bea/wli/sb/services/bindings/config/ServiceTypeChoice
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.processInterface(OSBServiceIntrospectorBase.java:429)
           at com.oracle.oer.sync.plugin.artifact.osb10.BusinessServiceIntrospector.processServiceAsset(BusinessServiceIntrospector.java:70)
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.processService(OSBServiceIntrospectorBase.java:154)
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.introspect(OSBServiceIntrospectorBase.java:90)
           ... 12 more
      Caused by: java.lang.ClassNotFoundException: com.bea.wli.sb.services.bindings.config.ServiceTypeChoice
           at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
           at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
           ... 16 more
      968 [main] ERROR com.oracle.oer.sync.plugin.reader.file.FileReader - Introspection failed due to: Unable to find OSB API classes. Make sure that the BEA_HOME environment variable points to an installation of OSB Server version 10.3.1
      968 [main] ERROR com.oracle.oer.sync.framework.MetadataManager - Artifact harvest failed due to: Unable to find OSB API classes. Make sure that the BEA_HOME environment variable points to an installation of OSB Server version 10.3.1
      com.oracle.oer.sync.framework.MetadataIntrospectionException: Unable to find OSB API classes. Make sure that the BEA_HOME environment variable points to an installation of OSB Server version 10.3.1
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.introspect(OSBServiceIntrospectorBase.java:96)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:601)
           at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
           at $Proxy24.read(Unknown Source)
           at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
           at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
           at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:428)
      Caused by: java.lang.NoClassDefFoundError: com/bea/wli/sb/services/bindings/config/ServiceTypeChoice
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.processInterface(OSBServiceIntrospectorBase.java:429)
           at com.oracle.oer.sync.plugin.artifact.osb10.BusinessServiceIntrospector.processServiceAsset(BusinessServiceIntrospector.java:70)
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.processService(OSBServiceIntrospectorBase.java:154)
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.introspect(OSBServiceIntrospectorBase.java:90)
           ... 12 more
      Caused by: java.lang.ClassNotFoundException: com.bea.wli.sb.services.bindings.config.ServiceTypeChoice
           at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
           at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
           ... 16 more
      com.oracle.oer.sync.framework.MetadataIntrospectionException: Artifact harvest failed due to: Unable to find OSB API classes. Make sure that the BEA_HOME environment variable points to an installation of OSB Server version 10.3.1
           at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:655)
           at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
           at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:428)
      Caused by: com.oracle.oer.sync.framework.MetadataIntrospectionException: Unable to find OSB API classes. Make sure that the BEA_HOME environment variable points to an installation of OSB Server version 10.3.1
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.introspect(OSBServiceIntrospectorBase.java:96)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.introspectFile(FileReader.java:414)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.readFromFileArray(FileReader.java:286)
           at com.oracle.oer.sync.plugin.reader.file.FileReader.read(FileReader.java:132)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:601)
           at com.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
           at $Proxy24.read(Unknown Source)
           at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
           ... 2 more
      Caused by: java.lang.NoClassDefFoundError: com/bea/wli/sb/services/bindings/config/ServiceTypeChoice
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.processInterface(OSBServiceIntrospectorBase.java:429)
           at com.oracle.oer.sync.plugin.artifact.osb10.BusinessServiceIntrospector.processServiceAsset(BusinessServiceIntrospector.java:70)
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.processService(OSBServiceIntrospectorBase.java:154)
           at com.oracle.oer.sync.plugin.artifact.osb10.OSBServiceIntrospectorBase.introspect(OSBServiceIntrospectorBase.java:90)
           ... 12 more
      Caused by: java.lang.ClassNotFoundException: com.bea.wli.sb.services.bindings.config.ServiceTypeChoice
           at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
           at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
           ... 16 more
        • 1. Re: Unable to find OSB API classes while submitting the resources to OER
          Anuj Dwivedi--Oracle
          For OSB 11g projects, use the harvester provided with OSB installer ($OSB_HOME/harvester).

          http://docs.oracle.com/cd/E17904_01/doc.1111/e16580/harvest.htm#BABBCAFI

          Regards,
          Anuj
          • 2. Re: Unable to find OSB API classes while submitting the resources to OER
            889011
            Thanks Anuj,

            i had set the harvester provided by 11g,
            but now i am facing following error

            Error: Could not find or load main class com.oracle.oer.sync.framework.Introspector

            please help

            regards,
            yogesh
            • 3. Re: Unable to find OSB API classes while submitting the resources to OER
              Anuj Dwivedi--Oracle
              Yogesh,

              Are you setting the environment by running setenv.sh (or setenv.bat) provided in $OSB_Home/Harvester directory?

              Make sure to follow all steps correctly.

              Regards,
              Anuj
              • 4. Re: Unable to find OSB API classes while submitting the resources to OER
                889011
                Hi anuj,

                thanks for your reply,
                as per my knowledge, i had follow all the steps correctly.
                i had also run the setenv.bat file to set the enviroment variables.

                still getting the same error

                Error: Could not find or load main class com.oracle.oer.sync.framework.Introspector

                am i still missing anything ?

                please help
                • 5. Re: Unable to find OSB API classes while submitting the resources to OER
                  Anuj Dwivedi--Oracle
                  Are you able to see jar client.harvester-11.1.1.4.0.jar in the classpath? Which setenv.bat file have you run?

                  Regards,
                  Anuj
                  • 6. Re: Unable to find OSB API classes while submitting the resources to OER
                    889011
                    hi,

                    there is client.harvester-11.1.1.5.0.jar file present in harvester home directory.
                    the same file reference was also present in setenv.bat file which is present in same directory.

                    Regards,
                    Yogesh
                    • 7. Re: Unable to find OSB API classes while submitting the resources to OER
                      Anuj Dwivedi--Oracle
                      Can you mention the steps you have followed here?

                      Regards,
                      Anuj
                      • 8. Re: Unable to find OSB API classes while submitting the resources to OER
                        889011
                        hi,

                        hey i overcome the yesterday's error,
                        in my osb11g-harvest.bat file 'call setenv.bat' this line was missing.
                        when i added this line it works fine.

                        but still i am facing another issue

                        8332 [Main Thread] INFO com.bea.alsb.harvester.plugin.reader.OSBReader - OSB Config Jar Import / Validation starting.
                        <Mar 13, 2012 10:28:16 AM IST> <Warning> <ConfigFwk> <BEA-000000> <Setting transaction '6' as rollback only. Rollback reason:
                        java.io.IOException: Invalid jar file
                             at com.bea.wli.config.importexport.ConfigJar$LogicalJarForm.<init>(ConfigJar.java:1341)
                             at com.bea.wli.config.task.impl.UploadJarTask._execute(UploadJarTask.java:46)
                             at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:233)
                             at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
                             at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
                             at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:142)
                             at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:236)
                             at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:191)
                             at com.bea.wli.config.task.impl.UploadJarTask.uploadJar(UploadJarTask.java:36)
                             at com.bea.wli.config.mbeans.Config.uploadJarFile(Config.java:442)
                             at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:79)
                             at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:196)
                             at com.bea.alsb.harvester.plugin.reader.OSBReader.readQueries(OSBReader.java:112)
                             at com.bea.alsb.harvester.plugin.reader.OSBReader.read(OSBReader.java:87)
                             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.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
                             at $Proxy0.read(Unknown Source)
                             at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
                             at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
                             at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:430)
                        >
                        8426 [Main Thread] ERROR com.oracle.oer.sync.framework.MetadataManager - Artifact harvest failed due to: Unexpected error import: Invalid jar file
                        com.oracle.oer.sync.framework.MetadataIntrospectionException: Unexpected error import: Invalid jar file
                             at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:97)
                             at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:194)
                             at com.bea.alsb.harvester.plugin.reader.OSBReader.readQueries(OSBReader.java:112)
                             at com.bea.alsb.harvester.plugin.reader.OSBReader.read(OSBReader.java:87)
                             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.flashline.util.classloader.ContextClassLoaderHandler.invoke(ContextClassLoaderHandler.java:39)
                             at $Proxy0.read(Unknown Source)
                             at com.oracle.oer.sync.framework.MetadataManager.start(MetadataManager.java:630)
                             at com.oracle.oer.sync.framework.Introspector.<init>(Introspector.java:204)
                             at com.oracle.oer.sync.framework.Introspector.main(Introspector.java:430)
                        Caused by: java.io.IOException: Invalid jar file
                             at com.bea.wli.config.importexport.ConfigJar$LogicalJarForm.<init>(ConfigJar.java:1341)
                             at com.bea.wli.config.task.impl.UploadJarTask._execute(UploadJarTask.java:46)
                             at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:233)
                             at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
                             at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
                             at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:142)
                             at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:236)
                             at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:191)
                             at com.bea.wli.config.task.impl.UploadJarTask.uploadJar(UploadJarTask.java:36)
                             at com.bea.wli.config.mbeans.Config.uploadJarFile(Config.java:442)
                             at com.bea.alsb.harvester.utils.ConfigJarUtils.importConfigJar(ConfigJarUtils.java:79)
                             at com.bea.alsb.harvester.plugin.reader.OSBReader.readQuery(OSBReader.java:196)
                             ... 11 more

                        seems that some invalid jar file is there.
                        can please take a look in to it,
                        Sorry for inconvinience

                        anyways thanks a lot for your kind help

                        Regards,
                        Yogesh