2 Replies Latest reply on Sep 11, 2008 8:55 AM by 659294

    Classloading issues with Oracle AS and Content Services

    Ronald van Luttikhuizen

      Oracle Content Services and Oracle AS (SOA Suite)

      Deploying custom webservices on the Oracle AS which invoke the Content Services webservices API. These custom webservices are invoked from ESB processes to upload content.

      What does work
      The pre-installed oc4j home of Oracle AS has no pre-defined shared library for Oracle Content Services. So if we create a shared library containing the Oracle Content Services jars (axis.jar, commons-discovery-0.2.jar, commons-logging-1.0.3.jar, content-ws-client.jar, http_client.jar and wsdl4j-1.5.1.jar) and include this shared library during deployment of our custom webservices, content is nicely uploaded without problems.

      However, we created another oc4j instance (oc4j_services) on which these webservices should deployed and run instead of the oc4j home instance. This time Oracle AS already creates a pre-defined shared library for Content Services containing a 10.1.3 version. This library is not compatible with Content Services

      We tried to create another shared library with the same name (oracle.ifs.client) but another version number ( and import it during deployment of our webservices (and exclude the 10.1.3 version), we also placed the Content Services jars into the oc4j home applib and oc4j_services applib directory. Nonetheless, we either get a classnotfound or exceptioninitialization error.

      Anyone has a solution to this?

      Regards, Ronald
        • 1. Re: Classloading issues with Oracle AS and Content Services
          Ronald van Luttikhuizen
          The log file shows:

          ERROR [AJPRequestHandler-RMICallHandler-6]: oracle.classloader.util.AnnotatedNoClassDefFoundError:

               Missing class: oracle.ifs.fdk.RemoteLoginManagerServiceLocator

               Dependent class: oracle.ifs.examples.ws.WsConnection
               Loader: FAC_WS_Content_Services.root:0.0.0
               Code-Source: /oracle/as_soa/j2ee/oc4j_services/applications/FAC_WS_Content_Services/FAC_WS_Content_Services.jar
               Configuration: <ejb> in /oracle/as_soa/j2ee/oc4j_services/applications/FAC_WS_Content_Services

          The missing class is available from the following locations:

               1. Code-Source: /oracle/as_soa/j2ee/oc4j_services/shared-lib/oracle.ifs.client/ (from <code-source> in /oracle/as_soa/j2ee/oc4j_services/config/server.xml)
               This code-source is available in loader oracle.ifs.client: This shared-library can be imported by the "FAC_WS_Content_Services" application.

          But, if I select the shared library in Oracle AS EM, it states that my application (FAC_WS_Content_Services) does import this shared library.

          Regards, Ronald
          • 2. Re: Classloading issues with Oracle AS and Content Services

            I have the same problem. How did you manage to solve it?