How to deploy to Tomcat from NetBeans?

前端 未结 9 1022
渐次进展
渐次进展 2021-02-08 14:51

I\'ve added Tomcat in the \"Tools > Servers\" menu and as you can see it appears in the list of servers:

But when I try to run my project, I cannot select Tomcat! The dr

9条回答
  •  野的像风
    2021-02-08 15:45

    One of the mistakes I was making when I got this problem was that I was trying to deploy EAR project to Tomcat. Tomcat isn't an application server. It is a web server. It worked when I deployed the only the Web project of the EAR to Tomcat. The ejb can only be deployed to an application server.
    I hope this helps.

提交回复
热议问题