开发者

Deploying a Java Project on Tom Cat

开发者 https://www.devze.com 2023-01-10 16:53 出处:网络
开发者_开发百科I have a java project (not a web application, no web.xml etc) I need to deploy it as a WAR on a tomcat with init servlet.
开发者_开发百科

I have a java project (not a web application, no web.xml etc) I need to deploy it as a WAR on a tomcat with init servlet. Can anyone help me with the steps to do the same?


Any project that is to be deployed to a Java web container, despite that it does not have any web front-end i.e webservice, EJB3 project, needs to have a web.xml. Map your servlet in web.xml and then package the project as war file and it is as easy as dropping it to $CATALINA_HOME/webapps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号