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 256251 - Waiting for Tomcat... Starting of Tomcat failed.
Summary: Waiting for Tomcat... Starting of Tomcat failed.
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 8.1
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-29 10:09 UTC by netbeans-coder
Modified: 2017-05-25 01:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Excerpt from message.log (5.13 KB, application/octet-stream)
2015-10-29 10:09 UTC, netbeans-coder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description netbeans-coder 2015-10-29 10:09:56 UTC
Created attachment 157040 [details]
Excerpt from message.log

This happens when I get Netbeans to deploy my war file to Tomcat. I get the initial message "Waiting for Tomcat.." and then after timeout I get "Starting of Tomcat failed"

I have trawled the internet looking for a solution but none has worked for me. Some suggested it's caused by some double quotes in the JAVA_OPTS in catalina.bat, but as I'm on a mac this doesn't apply to me.

I've been using Netbeans since version 6 and I seem to get hit by this issue periodically and once I get hit there is nothing I can do to resolve the issue. Eventually after a few days it just seems to start working again (meanwhile I have been developing by manually deploying the war file and starting catalina.sh from the terminal window). And this is the frustrating thing, I can take the war file manually drop it in to webapps and start tomcat and all is fine just Netbeans seems to have an issue doing this. 

It's not an issue with the user details in tomcat-users.xml either as I've seen these errors before and know that this isn't the cause.
Comment 1 saeioul 2016-03-14 23:25:32 UTC
Im in the same situation.
Comment 2 Petr Hejl 2016-05-18 10:47:46 UTC
Can you please test with the recent daily build? Also when you are in situation when the NB is obviously waiting for timeout can you get and share a threaddump (http://wiki.netbeans.org/GenerateThreadDump)? BTW is there any manual change in server.xml or firewall in place? Thanks.
Comment 3 saeioul 2016-05-19 19:07:17 UTC
Thanks for the support man,

Well, I tried using the daily build on a totally new project using tomcat and it worked just fine. This makes me think there is something going on with my original project configuration, so i will make extra checks there. Will be back if I discover what was going on there.

(In reply to Petr Hejl from comment #2)
> Can you please test with the recent daily build? Also when you are in
> situation when the NB is obviously waiting for timeout can you get and share
> a threaddump (http://wiki.netbeans.org/GenerateThreadDump)? BTW is there any
> manual change in server.xml or firewall in place? Thanks.
Comment 4 Petr Hejl 2016-05-23 12:53:01 UTC
Please attach as much detail as possible (including threaddump) if this happens again. Thanks.
Comment 5 saeioul 2016-05-26 18:13:51 UTC
Well, I made some extra digging and found out that this is a networking problem. You see, my VPN client was doing some weird stuff, and as soon as I changed it, Tomcat was able to contact netbeans (or the other way around? haha)

So I would tell all you folks, be extra careful with your network settings, this was a huge problem for me because everything else was just ok.

(In reply to Petr Hejl from comment #4)
> Please attach as much detail as possible (including threaddump) if this
> happens again. Thanks.
Comment 6 fbiwarning 2016-11-30 10:50:13 UTC
(In reply to saeioul from comment #5)
> Well, I made some extra digging and found out that this is a networking
> problem. You see, my VPN client was doing some weird stuff, and as soon as I
> changed it, Tomcat was able to contact netbeans (or the other way around?
> haha)
> 
> So I would tell all you folks, be extra careful with your network settings,
> this was a huge problem for me because everything else was just ok.
> 
> (In reply to Petr Hejl from comment #4)
> > Please attach as much detail as possible (including threaddump) if this
> > happens again. Thanks.

This worked for me. Thanks
My mac OSX has installed the cisco anyconnect(used for vpn). And the netbeans always waiting for tomcat to start. Finally, the time is out. Start failed.
After I uninstalled the cisco anyconnect. The netbeans start the tomcat immediately.
This is not the environment variable problem and not the APR problem.
Comment 7 dan0202 2017-05-25 01:35:18 UTC
I have Mac (Sierra) that does the same thing. I can manually copy and drop a War on tomcat and it deploys but when I try to build and run from within Netbeans I get the same issue: it hangs on the "waiting for tomcat" and then ultimately bombs out with "Starting of tomcat failed". tomcat-users.xml is correct. Manager-script role is correct.