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 220602 - Tomcat startup problem
Summary: Tomcat startup problem
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords: TOMCAT
Depends on:
Blocks:
 
Reported: 2012-10-22 16:55 UTC by sha2k2k
Modified: 2012-11-11 14:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (53.53 KB, text/plain)
2012-10-22 16:56 UTC, sha2k2k
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sha2k2k 2012-10-22 16:55:51 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02

Hi,

im newly installed the netbeans in windows and when trying to deploy the application, the tomcat is starting, there is always the below problem.
When i run the same server using eclipse IDE, its working.
i tried many below options 
1) downloaded another tomcat and added the server
2) tried with glassfish, same port problem
3) given the permission settings for the tomcat installed folder to the current windows loggedin user .
Even though,tried with many options, its very irritated on deploying the apps to tomcat.
I dont know,why netbeans as this issue. please provide the solution.


Starting of Tomcat failed, the server port 9091 is already in use.
C:\xxxx\xxxx\Documents\WebApplication1\nbproject\build-impl.xml:1022: Deployment error: Starting of Tomcat failed, the server port 9091 is already in use.
See the server log for details.
BUILD FAILED (total time: 6 seconds)
Comment 1 sha2k2k 2012-10-22 16:56:42 UTC
Created attachment 126346 [details]
IDE log
Comment 2 sha2k2k 2012-10-22 17:26:08 UTC
i tried deploying my apps in both tomcat as well as in the glassfish server.

alwalys the port is occupied or the port is already in use messages are occurring. Not possible to start /stop the server from netbeans.
But the same tomcat server is able to use comfortably in eclipse IDE.
why this problem is persists only in netbeans.
Please check it deeply and provide the solution.
Comment 3 sha2k2k 2012-10-22 17:37:59 UTC
Im very eager to use netbeans that too latest version.
i like to explore more new things using this IDE. with this problem, not able to continue my explore on new technology, and also even for an simple hello world deploy in the server. 
i tried using both tomcat server shipped with netbeans and also newly downloaded tomcat 7.0 version, but the problem remains the same.
May be there will be some permission settings issues on the installed tomcat folder, but the folders and its filess has enough permissions already.
i also tried checking if the same port is already running bydefault using netstat command, but nothing is running in the same port .

Whether i have to add setup in the catalina.sh file ?
Whether i have to modify any settings in the netbeans ?
Whether netbeans starting the servers automatically during startup of  netbeans ?

So, i request to check it and resolve this problem.
Comment 4 Petr Hejl 2012-10-29 15:04:45 UTC
Try to disable the firewall.
How did you install the tomcat you are using? The port 9091 does not seem to be the default one. Do you use a windows service for tomcat?

In any case provide step by step instructions including netbeans and tomcat installation.

Thanks.
Comment 5 sha2k2k 2012-11-11 14:09:07 UTC
1) I have installed the Netbeans 7.2 which is shipped with tomcat and glassfish servers.
2) Changed the default ports of tomcat and glassfish servers.
3) Created an sample hello world program , and tried to deploy the application in tomcat first and got the deployment error.
Deployment error: Starting of Tomcat failed, the server port 9091 is already in
use.
4) Then tried to deploy the same application in glassfish, but the same port number issue is shown.

5) Then removed both the servers from the netbeans.

6) Downloaded new apache tomcat 7.0.32 server.
Configured the newly installed server in netbeans and done the same above steps 2 & 3.

7) Same port number issue is occured, not able to start the tomcat through netbeans.
 
8) I have configured the same tomcat server in eclipse, there is not any issues and the tomcat server started.

Please do the needful why netbeans not supporting server restart of tomcat or glassfish.