Is there any web service that runs as a jar?
I've already tried using spark but besides from running a jar I need it to be able to render jsp files.
My current scenario is that I have a tomcat(.war) project that depends on another project(.jar) and I want to add some web functionalities to this second project.
However I cannot change it to a .war as one .war project cannot depend on another .war project.
Any help or guidance would be appreciated.
I'm facing a similar issue, and my workaround is less than elegant but I haven't found a better one yet.
To restate the issue:
The solution I'm going with:
(I followed How to extract .war files in java? ZIP vs JAR)
Depending on your build system you can also set ProjectB to build both a .war and a .jar for dependency at the same time; I'm using Maven and that's the path I'm eventually going so that I'm not manually digging out the .jar each time I update ProjectB, and then I'm just going to list that .jar as a dependency for ProjectA.