Q1) I think you have to use another Camunda WebApp. The Tomcat distribution includes the Camunda WebApp for Tomcat, which packages all required JAX-RS dependencies.
They will be probably conflicting with the ones already available in
TomEE. You could try to remove the RestEasy JAX-RS dependencies and
replace it’s configuration inside the webapp with the one required for
CXF-RS.
A) Sure, I will try. Could you please send the link of another webapp which I can use for tomee deployment. ( I mean, without JAX-RS package…)
Q2) Regarding the usage of your custom app with another process engine on a remote server - that it not possible. A process application can only be deployed to a process engine running on the local server.
A) so I have to deploy my custom app and camunda on same TomEE server with same machine???