In Netbeans 6.9.1, i've created a web application wiht Glassfish Server 3.
(Undert the server textbox, java ee version defautls to "Java EE 6 Web").
Now I've installed an Apache tomcat 7 (actually it sees it as 6 because the 7 version was not provided in Netbeans 6.9.1).
The problem is that i'm no more allowed to choose Tomcat, it doesn't appear in the server combobox of the project properties.
If I do a web app from scratch, i can.
I tried to:
-remove WEB-INF/sun-config.xml
-close and reopen the project
Asked
Active
Viewed 2.1k times
2

AgostinoX
- 7,477
- 20
- 77
- 137
3 Answers
9
- Rightclick on the project's name > 'properties' > 'run'
- And try to change 'Server'

Indunil Girihagama
- 415
- 1
- 7
- 11
3
If you created a Java EE 6 project, the IDE will not let you try to deploy it onto a server that does not support Java EE 6. NetBeans 6.9.1 does not distinguish between Tomcat 6 (which does Servlet 2.5) and Tomcat 7 (which supports Servlet 3.0). NetBeans 7.0 does know that Tomcat 7.0 can be used to deploy web apps that originally targeted GlassFish 3.0 or 3.1...
So the best solution for your situation is to install NetBeans 7.0.

vkraemer
- 9,864
- 2
- 30
- 44
-
so all this time i have to upgrade to 7.0 ?! – shareef Apr 03 '13 at 06:28
-
@shareef go to the [netbeans' website](https://netbeans.org/downloads/) to see the latest version to download – Sheldon Feb 21 '16 at 11:47
-
So how does one change the EE version of a project? I'm having a similar problem with Netbeans 7.4 with Tomcat 7 pre-installed. I also installed Tomcat 5.5, because that is what is in produciton, and I moved a project over from an older version of NB, but I can't get it to deploy on my Tomcat 5.5 server, because it's listed as JEE 6. – Rebeccah May 20 '16 at 20:02
1
Change Application Server in Netbeans IDE
- Right click on the project that you want to change server.
- click on properties
- click on run
- select server drop down.
- then click ok.

Mohit Singh
- 1,402
- 1
- 10
- 19