BPMN file and the java class are in different packages

Hi, I have made some common functionalities listeners and packed in a war file. Let’s say util.war. How can I make the listeners shared by other war files (or BPMN files)? e.g. I can deploy a BPMN by using cockpit, but when it tries to invoke the listeners in util.war, it fails.

Thanks,
Liang