Great question — answering as the UphillTech team:
You've got 3 architectural options to choose from: 1. integrate an open source library into your own server 2. run an open source server next to your Tomcat 3. use a hosted solution and integrate with it (3) I'm not sure what are the exercise restrictions, but #3 is the easiest by far. You can use Shopify, Magento or even Wix to easily create a store. Wix also have blogs available. The integration should be as easy as adding a link from your JSP to that hosted solution. (2) If that's not acceptable, you can run use an open source e-commerce/blog solution that you will run next to your Tomcat. OpenCart is the leading solution here. (1) Now, if you really really need to integrate the source...
Full answer by Tal: https://stackoverflow.stackexchange.com/a/24213512 (CC BY-SA 3.0).
Need it done for your business? UphillTech.