My Oracle Support Banner

Java Class Loading Error (Doc ID 1939855.1)

Last updated on MAY 15, 2023

Applies to:

Oracle SOA Suite - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

A Java class was created for writing a string to a log file in case or error. This class is invoked by the Fault policies file from MDS in case of error.

The code works as follows

On remote fault, retry 3 times and then if still failing invoke the java class to write a string with some details of the instance failed in the log file.

The class was packaged in a Jar file and uploaded to /oracle/app/product/fmw_soa/11.1.1.7/soa/soa/modules/oracle.soa.ext_11.1.1/ with an updated manifest via ant.

On executing the fault with another bpel process, the Faults and retries are correctly getting invoked but when it comes to invoking the class file the following error is encounted:

Fault Recovery] Invoke on custom java action class "xx.yy.zz.bpm.service.fault.MyErrorLogger" failed with error "ClassNotFoundException".

The log files show the following error

Partner Port type={http://xmlns.oracle.com/FaultBPELProcess/FaultBPELProcess/FaultBPELProcess}FaultBPELProcess
ActivityType=invoke
]

oracle.classloader.util.AnnotatedClassNotFoundException:

        Missing class: xx.yy.zz.bpm.service.fault.MyErrorLogger


      Dependent class: com.collaxa.cube.engine.fp.RecoveryActionJava
               Loader: weblogic.utils.classloaders.GenericClassLoader@12345678
          Code-Source: /oracle/app/product/fmw_soa/11.1.1.7/soa/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar
        Configuration: /oracle/app/product/fmw_soa/11.1.1.7/soa/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar

This load was initiated at my.composite.Project1.soa_.......:1.0 using the Class.forName() method.

 

Changes

Added "-verbose:class" to JAVA_OPTIONS in <mydomain>/bin/setDomainEnv.sh. See WebLogic Server (WLS) Support Pattern: Investigating Different Classloading Issues (Doc ID 1572862.1).

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.