Request with URL ending with "/" not routed through default servlet

I have deployed a web application that has a controller servlet. This
servlet is configured (via web.xml) to be the default servlet with a servlet
mapping defined with url-pattern set to "/".
Requests for URLs such as "my.host/my/path" are correctly routed to the
controller servlet, whereas a request to "my.host/my/" is not - it causes a 404
to be returned immediately by the container.
Any help appreciated
Peter

There's not enough data in your post to answer the question directly. Posting an example URL would help a lot.
The chances are that the problem lies in the URL - it might contain some characters that are not directly usable in the shell and are therefore getting munged when you use them in 'do shell script'. There are ways around this, but posting an example URL would go a long way to telling if that's the problem or not.
It is also possible that the web site is configured to block specific user agents such as curl or wget (in a vain attempt to block automated downloads of the content) but, again, it's hard to say without knowing a specific URL.
If this is the case, you could use curl's -A switch to specify a different 'User-Agent' and fake out the server. For example, to pretend you're using Safari, use something like:
do shell script "curl -O -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.12+ (KHTML, like Gecko)' " & fullWeb
(note the single quotes around the User-Agent string)

Similar Messages

  • I replaced my phone at apple y'day, due to a broken screen. Brand new phone, but i am unable to connect to wifi, at home or work, so presuming its a fault with the phone? not router, i have also done a software update, is there a solution? thanks

    i replaced my phone at apple y'day, due to a broken screen. Brand new phone, but i am unable to connect to wifi, at home or work, so presuming its a fault with the phone? not router, i have also done a software update, is there a solution? thanks

    Hi Eric,
    What message do you get when you try to connect?
    Cheers!

  • URLs end with "#" is that a problem?

    I use some PHP includes in my site and I presume that that is the reason why some URLs end with the hash character.  I'm wondering what that's all about and if it's something I need to fix.
    Say someone cut n' pasted a link with the # on the end.  Would that matter?
    Regards
    Martin

    A # at the end of a link would typically reference an anchor on the page (a link that leads somewhere else on the same page).  So a link with a # and nothing after it would essentially link to the top of that page.

  • LR3 bug: Files from a folder with name ending with "." (dot) cannot be imported

    This is a weird one Surprisingly, directories with names ending with a dot, don't show in the Import dialog and also cannot imported by using synchronization. So, if you have any folder named "Flowers, trees etc." ... you cannot import it.

    And what happens if you delete the dot at the end of the folder name?

  • Does using self-signed cert. on ISE server has anthing to do with url redirect being not working

    Hi,
    I am setting up wired ISE environment. Everything is going fine, except url redirect is not working.
    I just wondering, if using self-signed certificate on ISE server has anothing to do with the problem ?.
    Appreciate your input.
    Thanks

    Hi,
    As long as you have not changed the hostname or the domain name (and dns is accurate). You should only receive the certificate warning but still get redirected without any issues.
    Thanks,
    Tarik Admani
    *Please rate helpful posts*

  • OpenerLink - url ends with ampersand.  can't use style class...

    hello. i am using openerLink to link to communities. i also want to apply a style class to the link text. however the url that is generated ends with an ampersand. consequently, it ignores the style class. the href is shown below.
    href="http://hera:8080/portal/server.pt?space=Opener&control=OpenObject&cached=true&parentname=Gateway&parentid=None&in_hi_ClassID=512&in_hi_userid=2&in_hi_ObjectID=209&in_hi_OpenerMode=2&" class="bulletTextLink2" border="0"
    when i remove the ampersand, it works perfectly (it uses the style).
    what is the solution? obviously i don't have direct control over the generation of the href. can i append something to the url so that it doesn't end in an ampersand?
    thanks
    chris

    The message above was posted by me two years ago and was brought to my attention today. Here's a short update: The network team added a load balancer mdaoid in front of, and resolved to, mdaoid1 and mdaoid2 (in round-robin fashion). The problem described in this thread is bypassed because the JDBC URL can simply use one-OID format, in which mdaoid is used as the LDAP server.

  • QM Notification: task end dates not pulled through from response profile

    Hello,
    I am experiencing a problem with the end dates of the tasks in QM notifications not pulling through (from the response profile) when tasks are determined.
    When I do the simulation of task determination, the gantt chart shows all the tasks together with the end dates. But when the actual determination is done these dates are not populated in the planned finish date fields.
    I have double checked the configuration: priorities, response and service profiles are set up correctly. I have also searched SAP notes without success.
    I thank you in advance for your responses.
    Kind regards,
    Theo.

    Yes, I know, but as far as I understand binding the values back from rule to the workflow is something that doesn't work. I have never tried it, but I have seen posts here about people complaining that this kind of binding does not work.
    Have you tried to bind for example some hard coded value back to the workflow (something that should definately work)? Does it work? If not, I suggest you to ask this from SAP that is it supposed to work and if not, why do they have this option to for binding from rule to workflow. Or then just forget what you are trying, and use some of the suggested workarounds.
    Regards,
    Karri

  • Input not routing through effects when recording

    Hello,
    I have a strange problem with Logic 8 all of a sudden. I can no longer hear my input during recording. The input is not flowing through the channel strip effects nor is it routing over to out 1-2 during recording. Everything works fine during playback, but not recording anymore. I am using Logic Pro 8.1, Macbook Pro OSX 10.5.2, Motu Ultralite. What happened was, I powered up the Motu interface at the same time Logic was starting up and received a few errors during startup. I clicked continue, everything seemed to be ok, but I now can't hear anything during recording as stated above. I tried reinstalling Logic to see if that would work but it didn't. Any help would be appreciated! TIA!

    Hey guys,
    I took a shot in the dark and clicked "Initialize all except key commands" Under Logic Preferences and that fixed it. Not sure what happened, but for those of you who may encounter this, that is the fix.

  • InDesign CS4 crashes with files ending with a single page

    I work in the IT team of a French press group. Our users (OS 10.6.6, InDesign CS4 [6.0.6]) work on facing pages documents, mostly set up with one spread; some files end with a single page. Most of our users complain about the fact that they always have to add a blank page (right to the single page) to avoid crashing. They never crash when they work on files containing only spreads.
    Has anybody encountered the same issue?

    Hi jmlevy,
    Working as a consultant for graphic design companies, I did not hear  of this problem. But, it is an interesting one. Can you send over one of  the files crashing (+images / fonts used)? Then I can see if I can reproduce the crash.
    Redmac

  • How to replace a substring that starts with and end with another substring?

    Hi,
    I am trying to parse data from HTML tables. First I want to remove all useless tags like <font>. Now, how can I remove substrings like-
    *<font face="Verdana, Arial, Helvetica, sans-serif" size="1">My_Data_to_parse</font>*
    I was searching for any method which replaces a substring what starts with a substring (in this case "<font") and ends with another substring (in this case ">") . Is there any method like that? Or any better solution?
    Another situation like the following-
    *<td align="left" height="30" width="100%">*
    In this case I want to remove all the height, align , width etc and make it as simple as "<td>". How can I do that?
    Finally, all I am trying to do just to parse data from the tables in a html file. Is there any parser API or library to help me do that? Or to bring the data down to array from the tables based on table structure? Please suggest me.
    Thanks in advance.

    probably the best place to start is to search for the "<keyword" of all of the html keywords, then search for the location of the next ">" - this will indicate the end of the <keyword> opening tag.

  • E5 with Urbanears - full audio not coming through

    I recently bought the E5 and am very satisfied with it. When I tried using my Urbanears Plattan Headphones (one button, not the iphone version), it wouldn't recognise them and displayed a 'enhancement not supported' message. I got around this by not plugging them in al the way untill it gave me the option to select that it was a heaphone and only then inserting it al the way. I now get audio, but not everything. The full sound only comes through when pressing the button on the cord. Does anybody know a way of fixing this short from taping the button shut permanently? Thanks

    Something like this could be a solution.
    American 3,5mm jack (Iphone, htc and i think Blackberry) can be painful...
    Adapter
    I use similar adapter for example my AKG headphones...
    Nokia 808 again (delight Belle), Nokia E7 and X7 ( again, all on Delight Belle...after some time on Nokia Lumia 925 (retired), 1020 (not that great)and Lumia 820 (Replaced my router at home, great for internet sharing).., N9 The best device ever (use it as much as Lumia 1020), Nokia 700 (Sport Phone/My Love :-) ) Nokia 701, Nokia E6 (Should have a follow-up from Nokia among with larger screen, NFC, Autofocus), Lumia 800 (Retired After 6 weeks), -Sports Tracker-Nokia Internet Radio-Handy Safe-Skype-Bambuser-Screenshot app pro-fMobi-ComingNext-Manual TaskSwitcher-jagiTimer-Easy StopWatch-Boldbeast-Equalizer-Financial Calculator-WiMP Music-YTasks-Davi-Thumbnail Folders-BizCalendar-Tiny7-Situations-nn reeder-Sport Timer-CameraLover-CameraPro-GrabRadio-LiveScore-Poddi-Gravity-SkyFilesPro

  • How and what is generating response for an url ending with infoobject.cwr ?

    See the attached file first.
    I'm trying to find how the response is generated when i click on the notification tab. With firebug, i know that the request URL is :
    businessobjects/enterprise115/admin/en/infoobject.cwr?&action=-10005&cmd=notification&id=245228
    action     -10005
    cmd     notification
    id     245228
    I'm trying to figure out where and how the response is generated. I can't find any mapping to a servlet  corresponding to "infoobject.cwr".

    Hi, ilplvm,
    Calling directly into InfoView or InfoObjects is not supported or documented. If you'd like to access reports using URLs, then you can use "OpenDocument" [UR L  Reporting|http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]
    That doc, along with documentation on our SDK's is found in our [Developer Library|http://www.sdn.sap.com/irj/boc/sdklibrary].
    Regards,
    Bryan

  • URL report output not showing through procedure

    Hi
    I create the following procedure for this purpose and it successfully execute but cannot show report output in browser any idea why ??
    declare
         txt  Varchar2(4000);
          request   utl_http.req;
         response  utl_http.resp;
    BEGIN
         utl_http.set_proxy('','');
          request := utl_http.begin_request('http://localhost:7778/reports/rwservlet?report=f:\oracle\TIS13.rdf&desformat=pdf&destype=cache&userid=wh1/wh1@dwh');
         --utl_http.set_header(request, 'User-Agent', 'Mozilla/4.0');
            response := utl_http.get_response(request);
         LOOP
         utl_http.read_line(response, txt, TRUE);
         dbms_output.put_line(txt);
         END LOOP;
          utl_http.end_response(response);
    EXCEPTION
         WHEN utl_http.end_of_body THEN
              utl_http.end_response(response);
    WHEN OTHERS THEN
           -- Consider logging the error and then re-raise
           RAISE;
    end;any solution would be appriciated.
    Regards
    Message was edited by:
    53637

    any luck with this?

  • Issue with Popup LOV field not clearing out "default" value

    I am using APEX 4.0 & Oracle 10g
    I have a form that displays a default value on a "Popup LOV" field (say P1_POPUP) when the Form is initially displayed to the user. The default value is part of the Popup LOV list of values. If the field is "manually cleared" *i.e. I clear the default value by backspacing and don't touch the LOV) and I Refresh (submit) the form (REFRESH button to display the same Form again), the default value is still displayed.  
    In Post Processing, I debugged the value of P1_POPUP to see if holds the default value and yes it does. I was expecting no value in P1_POPUP.
    Is this an APEX standard behavior?
    Any way how I can get rid of this value on an manually clearing action of this Pop Up field?
    Looking forward for your response.
    Thank very much in advance.
    Ed.

    I apologize, the default value was NULL indeed. However, it seems like I may need to manually clear this value so that it will not be displayed.

  • HT5364 i'm using safari 7.0 i try to video call on Facebook but all time i have to download Facebook video calling software but at the end it not going through.

    i try many time but alwase i've to downlaod fascbook video calling software installtion going successfully but i can't make a call.

    1 - you should only rip video if you have license rights to do so
    2 & 3 - Apple Intermediate Codec and DV are completely different codecs.  Do not mix them.  Don't put an AIC video clip in a DV NTSC sequence ... you are only asking for trouble.  You could convert the video to DV NTSC and use it in a DV NTSC sequence ... or convert to AIC and put it in an AIC sequence.
    4 - whether or not to deiniterlace depends on your ultimate use of the video ... TV, DVD, computer, web ...

Maybe you are looking for

  • IPod Classic Cannot Be Read Or Written To Or Restored

    Hi, I have a 160 GB iPod classic which had about 40 GB free on it, but I cannot get iTunes to synchronise or restore. If I try to synch,  iTunes shows the following error message; 'Attempting to copy to the disk "Andrew's iPod Classic" failed. The di

  • Link one iphone to multiple stereos

    Hello, I'm not sure if an apple product would solve this, but I think I remember seeing a video on how to do this a while ago, not sure though. I need a way to link one iphone, to play on multple stereo systems, such as vehicles.  This could maybe wo

  • Query result

    The query below has two tables and one view. The query functions well but as soon as i add v_date and fin_year conditions, the query shows only matched results.That is the outer join is not showing the desired result. I also want those values not in

  • Photoshop Elements 10 won't complete installation and won't uninstall.

    Photoshop Elements 10 won't complete the installation process and it won't uninstall using the uninstall utility (I get an error message).  So I tried deleting all files manually.  However, when I re-insert Disc #1 it only offers to uninstall Element

  • Converting car kit for 6210 for use with N73

    I have a Saab 93 with Nokia issued 6210 car kit fitted at garage at delivery. Plays through speakers etc. I now have an N73 - is it possible to convert or add something to the original car kit to use the functionality with the new phone? Thanks