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

public static void buildProcessModel() {
final BpmnModelInstance myProcess = Bpmn.createExecutableProcess(“process-payments”).startEvent().serviceTask().name(“Process Payment”).endEvent()
File file = new File(“C:\Desktop\bpmn-model” + System.currentTimeMillis() + “.bpmn.xml”);
try {
} catch (IOException e) {
String bpmnString = Bpmn.convertToString(myProcess);
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.