users@glassfish.java.net

Re: How to configure domain's NAME or IP address?

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Thu, 25 Jan 2007 09:17:16 -0600

Hello, Witold.

Sorry for the confusion.

You may have encountered this known issue
<https://glassfish.dev.java.net/issues/show_bug.cgi?id=944>, #944. It
was fixed in GlassFish V2 build 14, which is after the build you are using.

I do not know if using a later release is an option for you. Even if it
is not, would you be willing to try a build that contains the fix and
tell us if that resolves the problem? If not we should open a new issue
so we can address it in time to include the fix in V2 FCS.

Thanks.

- Tim

Witold Szczerba wrote:
> Thanks for reply :)
> I think I wasn't understood correctly.
> The entire problem is that I want that Glassfish server (this is
> 9.0_01 build b02-p01) not to use "ubu" as there is no "ubu" or
> "ubu.something.org" or whatever else outside its network.
>
> I want that Glassfish to use the IP address or DNS name of my
> router/firewall which forwards connections on all required ports from
> outer networks.
>
> I do not have DNS server, the only DNS name I have, is assigned to the
> main router by ISP. That router is redirecting connections on
> different ports to different computers behind that router and one of
> that computers is my 'ubu' (this is, by the way, is Ubuntu 6.10).
>
> Can I tell Glassfish somehow to forget about /etc/hosts or any other
> OS specific settings and use different IP address or DNS name?
>
> So far, I was trying to use some tricks like setting router's IP/name
> in ubu's etc/hosts but nothing actually works. When I try to launch my
> application sometimes I can see that WebStart cannot access "ubu",
> sometimes it is complaining about IP address 192.168.1.3 (which is
> ubu's local IP).
> Anything I try, Glassfish is always use one of these two... is there
> any cure for that?
>
> For long time we have working Tomcat server which is installed like
> this and there are no problems, I am sure there must be some way to
> stop Glassfish figuring on its own its IP or name :/
>
>
>
> 2007/1/24, Tim Quinn <Timothy.Quinn_at_sun.com>:
>> Hello, Witold.
>>
>> Sorry this is not working easily for you. I have a few questions for
>> you.
>>
>> 1. What release and build of GlassFish are you using? This may not make
>> a difference but please let us know.
>>
>> 2. Can you please try the following experiment? Instead of trying to
>> launch the app client from the admin GUI, try launching it yourself from
>> a command-line prompt using:
>>
>> javaws "http://ubu:8080/SOP/SOP-app-client"
>>
>> Based on the info you sent, I think this URL should work. If not, look
>> in the server.log file around the time you deployed the app or after the
>> most recent restart if the app was already deployed. The log file will
>> contain a message announcing what "context-root" will work for launching
>> that app's client. If your client expects any command-line arguments,
>> add them to the URL as a query string such as
>> ?arg=firstArg&arg=secondArg.
>>
>> 3. I assume when you try to access the app from another network you use
>> the full host name, such as something like ubu.mycorp.com. Is that
>> right?
>>
>> 4. What OS is your server system (ubu) running?
>>
>> 5. If it's a Windows system, does the networking properties properly
>> identify the system with its full path and not just ubu? (I'm less
>> familiar with the corresponding setup on non-Windows systems.)
>>
>>
>> - Tim
>>
>> Witold Szczerba wrote:
>> > Hello there,
>> > I had really hard time trying to run my EAR application deployed on
>> > remote Glassfish server.
>> > To make things easier I am focusing right now on Java WebStart.
>> >
>> > Every thing's working perfectly when I launch that application from
>> > within the same computer/network where Glassfish is. But when I go to
>> > another computer (it is actually on different ip network) and point
>> > mozilla at glassfish admin page, navigate to my application and
>> > download .jnlp file, then Java WebStart cannot start it.
>> > Exception:
>> >
>> > com.sun.deploy.net.FailedDownloadException: Unable to load resource:
>> >
>> http://ubu:8080/__JWSappclients/__appclient/SOP/SOP-app-client/main.jnlp
>> >
>> > I have opened that jnlp file in text editor and there are, for
>> example:
>> > <jnlp ..............
>> >
>> href="http://ubu:8080/__JWSappclients/__appclient/SOP/SOP-app-client/main.jnlp">
>>
>> >
>> >
>> > The reason that is not working is that from withing the Internet or
>> > any other network inside my company "ubu" does not exist. It is inside
>> > special network (something like DMZ) where are servers and firewall is
>> > redirecting different ports to different computers.
>> >
>> > I was thinking I can manually change every "ubu" into router's name or
>> > IP. I did it, but it did not help much... Here is another exception:
>> >
>> > com.sun.deploy.net.FailedDownloadException: Unable to load resource:
>> > http://ubu:8080/__JWSappclients/__appserver/aslib/fscontext.jar
>> >
>> > It looks like my domain1 is really insisting to be visible everywhere
>> > on this planet as "ubu".
>> >
>> > How can I tell my "domain1" to use different name and/or IP address?
>> >
>> > Right now I really do not know what to do. I have few days to make
>> > this working, our customer wants to see our application (he is in
>> > different city and wants see it installing/starting with one click on
>> > html link - this is what we promised him) and I cannot make Glassfish
>> > usable outside our DMZ network :( - the only network he can be visible
>> > as "ubu".
>> >
>> > Please help me or I will be in big troubles :(
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>