Saska
Saska

Reputation: 1021

Netbeans with tomcat

I installed Apache Tomcat and added it to Tools -> Servers. But when i create Java EE -> Enterprice Application i dont see Tomcat in list of aviable servers. I see only glassfish.

I installed netbeans with tomcat and dont see it. I installed netbeans without tomcat, added it manually, but i dont see it when i create ent.application yet.

Why I dont see tomcat?

Sorry for bad english.

Upvotes: 1

Views: 2150

Answers (3)

Daniel
Daniel

Reputation: 1

The previous answer is helpful, but wrong. Tomcat is simply not installed, despite what the Netbeans download page says. You get only Glassfish. If you want to use Tomcat, you'll have to download and install it yourself; only then can you select it to run an application on.

Upvotes: 0

vkraemer
vkraemer

Reputation: 9902

You cannot create an Enterprise Application project that targets Tomcat. Tomcat doesn't support all the various specs that would allow you to deploy a Java EE Enterprise Application (ear file). Tomcat supports Web Application projects (war files) which leverage a subset of the Java EE specifications like the Servlet, JSP and Expression Language specs.

The Enterprise Application wizard only displays the registered servers that will be able to attempt to deploy the EAR file that is created by building the project.

If you create a Web Application project, you will see that you can select your registered Tomcat server as the deployment target (the Server field on the Server and settings page of the New Web Application wizard).

Upvotes: 1

Jigar Joshi
Jigar Joshi

Reputation: 240966

press ctrl+5 > right click Server > add server > select tomcat add it and you will get it listed

Upvotes: 4

Related Questions