Fluent Builder Diagram not generating in Tomcat

Used Fluet Builder API to generate BPMN model. Tried with same example as provided in https://docs.camunda.org/manual/latest/user-guide/model-api/bpmn-model-api/fluent-builder-api/#generation-of-diagram-interchange

While executing through main method of java am getting the same as shown in example[process with diagram].

Same when i execute through my primefaces application running on Apache Tomcat 9.0 and Java version 1.8.0, only process is getting generated without diagram and few namespaces are missing.

Note: Added all the dependency jar.

Can you upload the model and/or the code you’ve written to generate the model

Model:
public static void buildProcessModel() {
final BpmnModelInstance myProcess = Bpmn.createExecutableProcess(“process-payments”).startEvent().serviceTask().name(“Process Payment”).endEvent()
.done();
System.out.println(Bpmn.convertToString(myProcess));
File file = new File(“C:\Desktop\bpmn-model” + System.currentTimeMillis() + “.bpmn.xml”);
try {
file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
String bpmnString = Bpmn.convertToString(myProcess);
System.out.println(“bpmnString”);
System.out.println(bpmnString);
Bpmn.writeModelToFile(file, myProcess);
}

Generated XML:

<?xml version="1.0" encoding="UTF-8"?> sequenceFlow_8037e4b2-0e28-438e-ad9f-8d4aed910aac sequenceFlow_8037e4b2-0e28-438e-ad9f-8d4aed910aac sequenceFlow_bd513f05-cfa2-4afb-ab61-765c7bd62779 sequenceFlow_bd513f05-cfa2-4afb-ab61-765c7bd62779

For the method #buildProcessModel(), the above is the Generated XML.

Let me know if you still want any.