AgostinoX
AgostinoX

Reputation: 7683

In Netbeans 6.9, how to change Application Server

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

Upvotes: 2

Views: 21981

Answers (3)

Mohit Singh
Mohit Singh

Reputation: 1410

Change Application Server in Netbeans IDE

  1. Right click on the project that you want to change server.
  2. click on properties
  3. click on run
  4. select server drop down.
  5. then click ok.

Upvotes: 1

Indunil Girihagama
Indunil Girihagama

Reputation: 425

  • Rightclick on the project's name > 'properties' > 'run'
  • And try to change 'Server'

Upvotes: 9

vkraemer
vkraemer

Reputation: 9892

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.

Upvotes: 3

Related Questions