users@glassfish.java.net

Standalone Glassfish DNS question

From: <glassfish_at_javadesktop.org>
Date: Wed, 20 Feb 2008 12:47:25 PST

I have Glassfish (actually SJSAS 9.1) installed standalone, by which I mean no front end Apache; Glassfish is handling everything, and it's on a Windows 2003 server. I'm using container managed authentication (FORM), which is going against an MS Active Directory server. We have just been using the IP address for access to Glassfish, and everything works fine.

    Now the network guy has set up a friendly URL with DNS. The initial request hits the server successfully and brings up the authentication screen as usual. However, after entering credentials and submitting, the response always returns back to the authentication screen. The sympton *appears* to be that the redirect from successful authentication uses the friendly URL literally rather than translating to the IP address. << That may be a wild goose chase, but that's the way it appears.>> If we use the IP address instead, things still work fine.

    One oddity is that if a bad logon is used, the designated error page *does* display. IOW, in that case the response seems to come back correctly. That aspect suggests some sort of redirection problem. The app is JSF/Facelets and the welcome page is index.jsp. The welcome page redirects to a .jsf page using the common practice:

        meta http-equiv="refresh" content="0; url=./protected/myPage.jsf"

Again, no problem when using the IP address, but this makes me wonder if I need something more than "./". But nothing turns up in searching.

    I've done a *lot* of searching without much result. I expect there's some configuration aspect I'm missing. I have checked (and others have looked over) domain.xml and it's mostly vanilla; no special addresses or anything like that. Any comments, links, suggestions will be greatly appreciated. Thank you.
[Message sent by forum member 'joesam' (joesam)]

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