Hi,
I am very new to JDeveloper, Oracle Coherence and ADF.
I created a Java class (see code snippet below) which should synchronize data from a web resource with a view object. The class which is responsible for synchronization extends another class defined by an external library. This external library is declared as dependency in the projects pom.xml (I use Maven for build process). The dependency is resolved and I can use the classes and imports from the external JAR file in my code:
public class SynchronizeCases {
private static FogBugzService fogbugz;
public static void main(String[] args) {
SynchronizeCases synchronizeCases = new SynchronizeCases();
String amDef = "fogdash.model.module.AppModule";
String config = "AppModuleLocal";
ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
ViewObject vo = am.findViewObject("Case1");
try {
System.out.println("Instantiate FogBugz Service");
fogbugz = FogBugzService.getService();
[...]
fogbugz.execute();
} catch (Exception e) {
e.printStackTrace();
am.getTransaction().rollback();
} finally {
// No exception then commit
am.getTransaction().commit();
}
Configuration.releaseRootApplicationModule(am, true);
}
}
Now I want to test my code and run it from inside JDeveloper. Oracle Coherence starts and if it comes to the point calling my service which depends on the classes of the external dependency I get the follwoing error message:
Instantiate FogBugz Service
Jun 26, 2014 12:06:37 PM oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl createIncident
INFO: Ein Ereignis wurde mit den folgenden Ereignis-Fakten signalisiert: [problemKey=DFW-99998 [java.lang.ClassNotFoundException][fogdash.model.services.SynchronizeCases.main] incidentSource=SYSTEM incidentTime=Thu Jun 26 12:06:37 CEST 2014 errorMessage=DFW-99998 executionContextId=0000KRNd0c73z0KqySR_6G1Jez2a000002]
Jun 26, 2014 12:06:37 PM oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl createIncident
INFO: ADR-Vorfallerstellung ist deaktiviert; Vorfall wurde nicht erstellt.
Jun 26, 2014 12:06:37 PM oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl createIncident
INFO: Diagnostic dumps that would have been executed for problem key DFW-99998 [java.lang.ClassNotFoundException][fogdash.model.services.SynchronizeCases.main]:
I suggest Coherence is not finding the external library for executing the code.
My question is, how can I tell JDeveloper or Coherence which dependencies must be taken into account.
Or is there anything else wrong?
Any help is highly appreciated.
Kind regards,
Bjoern