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 191607 - "Starting of Tomcat failed" message, while starting tomcat on non-8084 port
Summary: "Starting of Tomcat failed" message, while starting tomcat on non-8084 port
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 7.2.1
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 17:37 UTC by evillive
Modified: 2019-05-23 07:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: starting of tomcat failed


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description evillive 2010-11-03 17:37:54 UTC
If starting tomcat with any other server port except 8084, netbeans can't detect, that server is actually started, and continues waiting. "Starting Tomcat 6.0" progress-bar shows till "Starting of Tomcat failed" message appeared. And despite the fact, tomcat is successfully started (it prints "INFO: Server startup in 363 ms" to output window and could be accessed at http://localhost/8080), it is not possible either to stop/restart/view tomcat from context menu or deploy web app, because of netbeans tries to initialize another tomcat instance.

Steps to reproduce:
1. Install new NetBeans IDE with Tomcat bundled
2. Delete bundled version of Tomcat (Servers -> Tomcat -> Remove)
3. Download and unzip any supported version of Apache Tomcat
4. In NetBeans: Add new Tomcat 5.x/6.0 (Servers -> Add Server -> Tomcat 5/6, browse for downloaded Tomcat)
5. In "Connection" tab, "Server Port" field enter any value, except 8084
6. Run Tomcat (Servers -> Tomcat -> Start)
Comment 1 Petr Hejl 2010-11-29 15:43:09 UTC
Works ok for me. This could be a firewall issue.
Comment 2 alexyarm 2012-10-16 21:36:13 UTC
I have the same issue. I installed and registered external Tomcat 6.0.28 with Services->Servers menu in NetBeans 7.2.1 and tried to start it with different ports including 8084. It behaves exactly as evillive@netbeans.org explained. It's not firewall issue, I use NetBeans and Tomcat both installed locally on my desktop.
Comment 3 mcrump001 2012-11-28 16:26:23 UTC
Just some additional information if someone ends up here through a Google search.  I was experiencing this same problem with an external install of Tomcat 5.5.  The bundled install of Tomcat 7.2.1 worked fine.  I finally resolved the issue by removing the tcnative-1.dll from the apache-tomcat/bin folder in my installation.  Apparently the native connector is not playing well with the check that netbeans uses to determine that the server is up and running.  I checked and the bundled tomcat server does not include the tcnative-1.dll.  It's definitely not needed for development purposes.  Hope this helps someone.