java - How to deploy my RESTful application to Apache server? -


i built java restful application in eclipse jersey , couple other libraries. question is, how deploy tomcat server? export war file? need deploy libraries used or packaged in war file? server running on ubuntu machine can access on ssh. got server running "apt-get install tomcat7". folder should put in? configuration needed? should web.xml file? in advance.

you wouldn't use apache directly serve jersey web application apache not java application server. served java server such tomcat instead. if wish serve jersey application if located on apache server, still have tomcat server running , set reverse proxy tomcat server. use server such wildfly or tomee implements full javaee profile , means less run errors. java application servers have capability of serving static content unless need apache features, not need go trouble of running apache.

with each 1 of these servers need .war file , deploy it, either through appropriate maven plugin, web manager or placing .war appropriate directory.

dependencies .war specified in 'compile' scope included part of .war file , in 'provided' scope not included (for when web server has these included)


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -