How to deploy to Tomcat from NetBeans?

前端 未结 9 981
渐次进展
渐次进展 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:39

    Is your webapp a real Java EE 6 webapp (without web.xml or with a Servlet 3.0 web.xml)?

    If yes, maybe NetBeans doesn't show Tomcat because Tomcat is not a valid runtime environment for your application (use GlassFish).

提交回复
热议问题