users@glassfish.java.net

Re: WSDL: schemaLocation references FQDN instead of IP adress

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 May 2007 09:40:25 PDT

As an update I have determined that modifying the /etc/hosts can change the behavior dramatically.

For instance when I had the box name on the 127.0.0.1 line along with the localhost.localdomain and then access the box with the ip address (say 192.168.10.99) then the wsdl shows a schemaLocation of "localhost.localdomain"

If I have a separate line in /etc/hosts:
192.168.10.99 boxname.domainname

Then shemaLocation will use that.

If I do not have the 192.168 line in the /etc/hosts file at all, it will use localhost (not localhost.localdomain which I also thought was odd).

All of these scenarious are when I hit the box using the IP address (because there is no dns lookup for this box). So in this situation none of the results can work. It has to use what the request was for.

Now for a box where you can lookup the dns name I can see where this is not a problem. But I need to be able to hit them by ip address.

Anybody have any thoughts?

Please?

Thanks,
Geoff
[Message sent by forum member 'gcruscoe' (gcruscoe)]

http://forums.java.net/jive/thread.jspa?messageID=217867