Even if user packages Narayana in the war file, it is still necessary to copy Transactions API jar to the Tomcat's /lib directory so as Tomcat DBCP2 works with TransactionalDataSourceFactory.java without classloader issues.
We have to design a way to resolve this PITA for users. Could we simply start shipping the API jar in JWS distro? Given it does not change frequently anyway I suppose... Do something with the listener and classlaoding? Ideas?