aspose file tools*
The moose likes Mac OS and the fly likes JPDA, tomcat, and IDEA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "JPDA, tomcat, and IDEA" Watch "JPDA, tomcat, and IDEA" New topic
Author

JPDA, tomcat, and IDEA

Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
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


Rob
SCJP 1.4
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61199
    
  66

Yo Rob, glad we were able to help!
(You'd think the bartenders around here would have been a bit more responsive! )
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPDA, tomcat, and IDEA