BPEL Call From Java Throws NoClassDefFoundError->PortabilityLayerException

(Doc ID 2298436.1)

Last updated on AUGUST 30, 2017

Applies to:

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

Symptoms

On : 12.2.1.0.0 version

I am trying to create an example which is mentioned in Doc ID 947732.1

But when I run the java code I am getting the below error.

C:\EmailAlert\util\JavaFaultHandler\JavaFaultHandler\SOA\SCA-INF\src\com\fault\handler>java RunTestMediator
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jrf/PortabilityLayerException
  at oracle.soa.management.internal.ejb.LocatorContext.lookupBean(LocatorContext.java:25)
  at oracle.soa.management.internal.ejb.EJBLocatorImpl.lookupFinderBean(EJBLocatorImpl.java:881)
  at oracle.soa.management.internal.ejb.EJBLocatorImpl.(EJBLocatorImpl.java:210)
  at oracle.soa.management.facade.LocatorFactory.createLocator(LocatorFactory.java:34)
  at RunTestMediator.(RunTestMediator.java:34)
  at RunTestMediator.main(RunTestMediator.java:142)
Caused by: java.lang.ClassNotFoundException: oracle.jrf.PortabilityLayerException
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  ... 6 more

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms