Re: tomcat6 with netbeans6 will not work
Hi,
Petr, thanks for your suggestions, I debugged netbeans and found the problematic spot. It is in org.netbeans.modules.tomcat5.util.Utils.pingTomcat(...) method but it turned out that problem is not related to netbeans at all. In fact, it is reproducible from java program i created myself for testing. This method sends a request to tomcat and connection times out while waiting for response. It looks like this:
String text = in.readLine();
it blocks then times out because response never comes in. That is why NB thinks tomcat is not working.
I tried to telnet to tomcat and send the same request and got the response immediately, but using java sockets and streams just doesn't work. To make things even stranger, using URL class instead of Sockets, also works.
I have no idea what may be wrong and will keep working on this. I hope I will have more information next week.