Sjsws7, lbplugin and forward-ip

Hi,
I'm fronting my Glassfish 2.1 with the Sun Webserver7. The setup as a whole works smooth but I have a problem who bothers me:
When accesing the Client IP within' my j2ee code like this:
request.getRemoteAddr()the IP I get always is 127.0.0.1.
I'm sure that is has something to do with the sun webserver7, since "direct glassfish" requests deliver the correct ip.
In the docs I came along the forward-ip directive:
[forward-ip|http://docs.sun.com/app/docs/doc/820-4841/aebjo?a=view]
which looked perfect for my needs, but having it declared anywhere I could think of in my obj.conf, it did not work at all.
here's my obj.conf:
<Object name="default">
Nametrans fn="name-trans-passthrough" name="lbplugin" config-file="/usr/local/sun/webserver7/https-gaia.scientists/config/loadbalancer.xml"
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="ntrans-j2ee" name="j2e
</Object>e"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/usr/local/sun/webserver7/lib/icons" name="es-internal"
PathCheck fn="uri-clean"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index-j2ee"
PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
ObjectType fn="forward-ip" hdr="Client-ip"
ObjectType fn="type-j2ee"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Service method="TRACE" fn="service-trace"
Error fn="error-j2ee"
AddLog fn="flex-log"
</Object>
<Object name="j2ee">
Service fn="service-j2ee" method="*"
ObjectType fn="forward-ip" hdr="Client-ip"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
</Object>
<Object name="send-precompressed">
PathCheck fn="find-compressed"
</Object>
<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>
<Object name="lbplugin">
ObjectType fn="forward-ip" hdr="Client-ip"
ObjectType fn="force-type" type="magnus-internal/lbplugin"
PathCheck fn="deny-existence" path="*/WEB-INF/*"
Service type="magnus-internal/lbplugin" fn="service-passthrough"
Error reason="Bad Gateway" fn="send-error" uri="/badgateway.html"
</Object> I'd appreciate any help.
Thanks in advance,
Tom

Is this the only *obj.conf file in config directory?
Can you see error logs in finest mode to see if forward-ip is getting called or not?
Have you tried forward-ip with in built reverse proxy functionality of Web Server 7.0 to see if it works or not?
See also
[http://blogs.sun.com/amit/entry/setting_up_a_reverse_proxy |http://blogs.sun.com/amit/entry/setting_up_a_reverse_proxy ]
Edited by: mv on Nov 3, 2008 4:48 PM

Similar Messages

  • The back and forward buttons on Logitech mouse don't work

    My logitech performance MX back and forward buttons don't work. I tried in safe mode and they still don't work. I tried creating a custom shortcut in logitech setpoint and that didn't work either. I tried using the native mouse driver and not logitech. No luck.
    I really like this functionality. Is there a way to enable these buttons?

    Hi mike,
    i'm not sure if this will help but how about this add-on called "Vimperator". It is easy to use and works like vim. (Try this as an alternate till we figure out the problem) :)
    Hope that helped.

  • With version 5 of Firefox, if I open more than 1 session, most of the time I cannot see anything in the navigation bar and my back and forward buttons do not work.

    I open 1 session of Firefox 5.0.1 and everything seems to work fine. Then I open a second session of Firefox and most of the time the navigation bar does not show the page that I am on and the back and forward buttons do not work. When this happens, the first session always remains working. I am an internet marketer so I have at least 2 or 3 sessions going at any given time.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How do I change the color of the back and forward arrow to green

    In Windows 7 the color of the back and forward page arrow is blue.
    On my desktop computer using Windows XP the color of the back and forward page arrow is green. This is much easier on my eyes.
    Is there a way to change the color to green in Windows 7?

    Firefox on Windows XP uses a different default theme than Firefox on Vista & 7. Try using the [https://addons.mozilla.org/en-US/firefox/addon/7119/ XP on Vista] theme, this should replicate the XP theme on Windows 7.

  • Does JMS support reliable messaging (store-and-forward) for app clients?

    I need to write an enterprise application client (launched with Java web start or packaged with a tool like Sun's package-appclient) that can send messages reliably from Linux to Windows. JMS seems like the obvious solution, so I deployed an EAR file with an MDB and an application client on a Windows machine (running SJSAS 9). I was able to download the client jar file onto Linux and send JMS messages successfully. However, if the Windows machine is not available, the Linux client immediately throws exceptions and fails. Are there any JMS providers that provide a store-and-forward mechanism for enterprise clients, so that if the remote server is not available immediately, messages are delivered later? (Note that the client can't be a servlet or other server-managed component.)
    I'd prefer an open-source solution, but this requirement has an extremely high priority for my customer, so I'll use a commercial product if necessary. And if there's something other than JMS that works, that would be fine. (In my case, the messages on the remote side ultimately go to a .NET service, so WS-ReliableMessaging would be ideal, but it looks WS-RM won't be integrated into .NET until Vista, and the current WS-RM implementation is a beta, etc., etc.)
    Thanks,
    Mike

    You could use Apache ActiveMQ
    http://incubator.apache.org/activemq/
    which supports embedded brokers inside each JVM which can be networked together in a store-forward mechanism so that each application keeps working and store-forwarding messages.
    http://incubator.apache.org/activemq/networks-of-brokers.html
    or you can use failover transport to handle automatic reconnection...
    http://incubator.apache.org/activemq/how-can-i-support-auto-reconnection.html
    If you need to communicate with some .Net you can use the NMS - the .Net Messaging API which has a client for ActiveMQ as well...
    http://incubator.apache.org/activemq/nms.html
    James
    http://logicblaze.com/
    Open Source SOA

  • How can I make appear the arrow-button that showed the recent history of a same tab (next to back and forward buttons)?

    for instance, if I searched a word on google, then clicked on a certain page of the results, then inside that page I entered a link, etc if I wanted to "go back" directly to the instance of google searching I could click on this arrow-button and I would be able to choose that exact moment instead of clicking several times on the "back" till I reached the desired past page

    The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4 and later.
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

  • My thumbnails are not showing up next to the icons in finder.  Also the back arrow and forward arrow as well as the list options don't show up.  Any suggestions how to get them back?

    In my Finder window, the picture icons that usually show up next to the items are not there.  i.e. in my sidebar, the little pictures that are usually by the Application, Desktop, Documents, etc items.  Also, the back and forward arrows, list items and tasks don't show as well.  Any ideas on how to get them back?

    Hello AgentScaber,
    You'll likely need to reinstall Mountain Lion.
    OS X Mountain Lion: Reinstall OS X
    http://support.apple.com/kb/PH10763
    Cheers,
    Allen

  • Am running Firefox 8.0.1 on a MacBook Pro running OS 10.5.8. The URL bar at the top of the page has disappeared and is inaceesible along with the arrows for navigating backwatd and forward. Please help.

    Unable to scroll to top of page, as scroll tools are not active upon opening Firefox or a new browser window since this problem occurred. Home/startup page is set to Google Advanced Search. Would prefer not to have to re-install Firefox, if possible, as I have a lot of important data in Zotero and Bookmarks that I do not want to jeopardize.
    Thank you for your help.

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    *Open the Customize window via "View > Toolbars > Customize"
    *Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    *If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Mouse back and forward buttons don't work

    I have a Dell wireless bluetooth mouse. I installed Safari 4, and I like it a lot. I am thinking of ditching IE, but the back and forward buttons on my mouse don't do anything in Safari. It's very frustrating having to click the back button on screen instead of directly on my mouse. The buttons work perfectly in IE and in Windows explorer. I reinstalled the mouse drivers, but to no avail. Any ideas?

    Did u get any software for your mouse? What brand is your mouse? I have Logitech setpoint software, where I can adjust mouse profile, setup mouse buttons action... I also have option (checkbox) to make my mouse use windows generic settings (the one you have in Control Panel under mouse section.
    Now, this is just an idea, but it's good start point.
    What you can also do (if you have such software installed) to uninstall it, restart, and see if Safari back/forward will work. Maybe this software (for some bizarre reason) conflicts Safari default action (as you said you don't have such problem in Fx)
    Let me know if this worked for you.
    Cheers,
    Miki
    EDIT: Before you do all this, maybe it's easier for you (if possible) to try another mouse, to see if you have same issues or not
    Message was edited by: miki69

  • I have to buttons that I cant remove. The button is on the left side of tabs and on the right side of the tabs. These arent back and forward buttons. When I go to customise they arent shown. How to remove it?

    I have two buttons that I cant remove. The button < is located on the left of the tabs and > is located on the right of the tabs. These aren't back and forward buttons. How can I remove them?
    [https://picasaweb.google.com/dookeybre/DropBox?authkey=Gv1sRgCLyTs7iUlqXE2QE#5594570123175636338 photo of the problem]

    Those buttons are used to scroll through the tabs if you have too many to display. If all of the tabs that you have open are visible, the buttons should not be displayed. If they are displayed all of the time there may be a problem with the theme that you are using.

  • "Reply" and "Forward" and "Move" have disappeared rom my email, so I have to go into "mailbox" in the top bar.   How can I get them back?

    "Reply" and "Forward" and "Move" have disappeared rom my email, so I have to go into "mailbox" in the top bar.   How can I get them back?

    under the "view" menu open custimixze toolbar.  Then drag those from that list back up to your tool bar.   

  • Navigation "Back" and "Forward" buttons are inactive, they do not work at all. How do I fix this?

    I have downloaded the latest version of firefox and the navigation buttons in the browser will not work in any way. The "Back" and "Forward" buttons are completely un-usable.

    Toolbar misbehavior could be due to a problematic add-on (e.g., theme or extension), or a corrupted settings file. Next time you upgrade -- and for security reasons, it is highly recommended -- try Firefox's Safe Mode to see whether you can pin it on an add-on or custom setting. You also could clear your toolbar settings.
    More info on Safe Mode:
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.org/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in [http://support.mozilla.org/kb/Safe+Mode Safe Mode] using
    Help > Restart with Add-ons Disabled
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    Does the toolbar work correctly?
    More info on clearing toolbar settings: [[Toolbar keeps resetting]]

  • Firefox 8 and 9beta. Back and Forward buttons greyed out. Right click menu also has forward and back greyed out. Updated all plugins, then disabled all plugins and extensions and started in safe mode. No change.

    My forward and back buttons are greyed out after update to Firefox 8. Tried to move to 9 beta, but same behavior. Back and Forward also greyed out in right click menu.
    Attempted to fix by updating all plugins and extensions, then disabled all plugins and extensions, and then tried to start in safe mode. Nothing worked.

    You could have backed up your profile folder. If you did, [[Recovering important data from an old profile]] can help :)

  • Is there a URL equivalent of backward and forward?

    I was wondering if there special URLs that are the equivalent to backward/forward. My backward and forward work fine and I know about Alt-LeftArrow and Alt-RightArrow.
    I am asking if there is something that can be typed into the URL bar that is the equivalent of these.

    In few words, "No." There is no such client for the Mac. The closest you may find would be to try the Mac MSN client, aMSN - VersionTracker or MacUpdate - but it's essentially just a messenger clone. I doubt it includes a Live Mail client.
    (Please don't suggest changing email accounts - I've asked this question elsewhere and that was the only response I got!)
    Because there is no other response.

  • My back and forward buttons do not work also the refreash button does not work, I have reloaded the latest version of fire fox and that did not help. HELP please.

    My back and forward buttons do not work also the refresh button does not work, I have reloaded the latest version of fire fox and that did not help. All of navigation tool bar worked until I updated Fire Fox, now if I click on a link in yahoo, for instance, I can not get back to my yahoo home page without reloading Fire Fox. HELP please.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

Maybe you are looking for

  • Vendor order report

    explain me the vendor order report.its urgent.

  • How do I highlight multiple cells in a form?

    I created a form in Acrobat X.  Previously, when the customer filled the (Excel) form and returned it, our staff would be able to highlight an entire column and paste it into another software package that tracks expenses etc.  Now, with a requirement

  • ACH payment with RFFOUS_T Program

    Hi SAP folks, I am having a small issue with ACH payment process through F110 Program. I am using Payment program RFFOUS_T for a payment method " A" for ACH and all variant and other configuration is perfect. When I execute F110 program, it create DM

  • Selective and slow syncing in iCal

    Today I updated my iPhone and iPad to iOs 5 and my laptop to 10.7.2. The iPhone and iPad have subsribed to iCloud, but not yet for the laptop. I also have an imac running 10.6.8 (can't update it to Lion because I need Rosetta) and a G5 running 10.5.8

  • Synchronization of analogue input and analogue output?

    Hi there, I have a signal synchronization problem: I am sending two waveforms (i.e choice between sinus square triangle etc see attached VI) to a mechanical system and then I'm reading the acquired signal from this same system (and it should be simil