Reputation: 10641
I have two dynamic web projects - A & B. Project B references classes in Project A. Project A runs great on Tomcat locally. Project B runs on Tomcat locally too, but when I run it referencing Project A classes on Tomcat, the classes from Project A are missing in Tomcat and thus throwing a class not found exception.
Since I cannot jar the Project A files, how can I get the classes from Project A to a local Tomcat deployment so that Project B can run when referencing Project A classes?
Upvotes: 0
Views: 140
Reputation: 18405
If two web applications share some common classes then these classes should be refactored out of the web application code base and put into a separate library (jar file). This jar can then be added to your web applications as a dependency.
Upvotes: 1