Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java test client for ADF Business Components

Is there a document/blog that lists steps needed to test ADF BC using Java client with latest ADF versions. I remember the ability to test AM with simple java main method like below

 public static void main(String\[\] args) {  
   ApplicationModule am = null;  
   try {  
       String amDef = "model.AppModule";  
       String config = "AppModuleLocal";  
       am = Configuration.createRootApplicationModule(amDef, config);

   } catch (Exception e) {  
       e.printStackTrace();  
   } finally {  
       if (am != null)  
           Configuration.releaseRootApplicationModule(am, true);  
   }  

}

When I try the same, I am getting below error:

Caused by: java.lang.ClassNotFoundException: oracle.jrf.PortabilityLayerException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 35 more

Comments
Post Details
Added on Sep 6 2024
2 comments
116 views