We recently decided to switch all of our Portlets to Soffit WARs, which would run along side uPortal within the same Tomcat instance. This seemed like a straightforward task but I encountered a nasty issue that didn’t generate any exceptions and took several hours to diagnose and fix. I thought it best to share the solution with the community as I am sure someone will run into this nightmare again.
So to switch a Soffit to a Tomcat WAR you simply add the following to build.gradle
With this configuration your project will produce an executable war which will work only outside of Tomcat when you run it with java -jar. If you try and add it to Tomcat it will do absolutely nothing except serve up static assets. It won't generate any exceptions and will cause a great deal of confusion.
I failed to realize that I needed to extend the class org.springframework.boot.autoconfigure.SpringBootServletInitializer within my App class.