I have a multi module maven project containing a common model project and two web projects( 1 for the site uses jsf, and another is set of axis based web services used to collect data from the user)
When I deploy to tomcat I deploy it as 2 war files, the model project is compiled as jar and is included in both war files.
Lately I have been getting a lot of permgen error. I am wondering if it is because I have these 2 war files each of which contains required libraries like HIbernate, Model project, and a bunch of other libraries needed for the individual projects.
My question is am I doing it right(I don’t think I am)? and what is the best way to deploy a multiple web projects which depend on a common model project?
I guess the answer is to package it as EAR file instead of WAR as you can package the jar files used commonly by the two web projects. only thing is I won’t be able to use tomcat, time to look at Application servers will also try TomEE per David Blevins’s suggestion.