This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 200174 - Unable to install Tomcat 7.0 server using Add Server
Summary: Unable to install Tomcat 7.0 server using Add Server
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-15 17:47 UTC by lvskiprof
Modified: 2011-07-20 17:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Add Server Instance Dialog for Tomcat 7.0 (36.09 KB, image/png)
2011-07-19 17:09 UTC, lvskiprof
Details
Browse button showing directory exists (44.13 KB, image/png)
2011-07-19 17:11 UTC, lvskiprof
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lvskiprof 2011-07-15 17:47:56 UTC
When I installed this version of Netbeans 7.0 I did not see the need for
installing the web servers, but now I do need to.  To I went to Tools -->
Servers and clicked on the "Add Server..." button.

When I choose Tomcat 7.0 the next step shows the installation location as blank, so I choose C:\Program Files\Tomcat7.0

At the bottom it have a warning message "the specified Server Location (Catalina Home) folder is not valid.", even though I have already created it.

I have also tried selecting the checkbox to use a private folder for Catalina Base.  I provided the username and password and selected the checkbox to create the user if it doesn't exist.

This makes it impossible to install Tomcat 7.0 using the Netbeans IDE.

I know I can download it separately, but I am not sure if it will tie in with
Netbeans as well if I do so.

See bug 200173 for a very similar bug against the Glassfish server.  So now I am unable to install either of the primary web servers for Netbeans 7.0 using the IDE.
Comment 1 Petr Hejl 2011-07-19 14:34:08 UTC
This works perfectly ok for me. Please provide more details. Exact steps including version of Tomcat and OS would be even better.
Comment 2 lvskiprof 2011-07-19 17:09:35 UTC
Created attachment 109516 [details]
Add Server Instance Dialog for Tomcat 7.0

This is the second Dialog, right after you choose the server you wish to add, which is Tomcat 7.0 in this case.  It comes up saying you need to provide a server location.  When I do so and create the directory as I do it I get this.  I also tried it when the directory is empty and I still get the message that the folder is not valid.
Comment 3 lvskiprof 2011-07-19 17:11:00 UTC
Created attachment 109517 [details]
Browse button showing directory exists

Just showing the directory exists here.  Trust me that it is empty.
Comment 4 lvskiprof 2011-07-19 17:14:47 UTC
I am using Windows XP with current patches (at least what IT puts on there) and I am trying to install Tomcat 7.0 using Netbeans 7.0 (also with all the current patches).  I can't get it to stop complaining that the specified server location is invalid and if you leave it blank it insists that you have to provide one.  The Next button stays disabled because of this.

Trying to fill in the username/password or Catalina Base info does not help.

See the attached images of the dialog boxes I provided.
Comment 5 Petr Jiricka 2011-07-20 08:02:22 UTC
> Just showing the directory exists here.  Trust me that it is empty.

Well, that's exactly the problem - the directory must _not_ be empty. This wizard allows you to add an existing installation of Tomcat, not to install it if it's not installed. So, the directory you specify must contain an existing installation of Tomcat with a valid Tomcat directory structure.

If you want NetBeans to install Tomcat, do it in the installer - customize the components to install, and check the Tomcat checkbox.
Comment 6 Petr Hejl 2011-07-20 17:35:46 UTC
Reopened without any justification.