How to deploy to Tomcat from NetBeans?

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

    I had the same problem and solved it ;

    It was because the Java EE version was higher than the tomcat version requires.

    What to do :

    Click the files tab near projects tab. Under nbproject folder , select j2ee.platform , if you use Tomcat7 than change the platform to 1.6 for example(Tomcat6 > Jave EE 1.5). than make a "clean and build" on the project .

    Now the server will come at Project > properties > Run > Servers

提交回复
热议问题