I'm trying to debug a web app on Mac OS X 10.2.6, using the 1.4.1 JVM with a target of 1.3 (compile option -target 1.3). On Windows, my setup works fine - Tomcat 4.0.6, Idea 3.0.5, simple web app with some JSPs, I can launch the Idea debugger using the WebApp debugging pane (as opposed to the Remote pane). I'm using the standard port, and having Idea launch tomcat. I can step through my JSP pages no problem.
When I try the exact same setup on the Mac, I get a series of errors; mainly, the JVM cannot be initiated due to a "socket transport failed to init", followed by "Transport dt_socket failed to init; rc = -1, " and "FATAL ERROR in native method: no transports initialized" Has anyone seen or heard about this issue? Has anyone even tried this besides me? Thanks
Yo Rob, whatup buddy? I see no one has answered your question yet. Why doesn't anyone ever answer your questions? Is it because the only questions you ask cannot be answered by mere mortals? The answer to your question is that MacOSX is using a slightly different method of obtaining the local hosts's IP address than Windows. If the DHCP server supplies a name for the ethernet port to which you connect, getHostName() on MacOS returns that name instead of "localhost", which is a problem if that name is not in the DNS. (And normally it won't be.) So what you have to do is manually add the port name to your local host database on the Mac using NetInfo, and point it to "localhost", and then all is well.