Problems invoking external web page that requires authentication

We have a web service deployed to OAS 10. This web service needs to be able to open a URL and read the results. This URL requires authentication.
We have a subclass of Authenticator that provides the user name and password.
When we run this web service using the debugger from JDeveloper, it works just fine. However, when deployed to the app server, it fails.
java.io.IOException: Server returned HTTP response code: 401 for URL: http://... at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149)
I've stripped out the URL details, but it's invoking a report using Microsoft's SQL Reporting Services.
If I read the error stream, it indicates that request couldn't be authenticated.
So, I'm hoping some people here can point me at what's different between the debugger environment and the application server environment. We suspect that it may be related to permissions in a java policy file, or perhaps some other file from which the application server derives its permissions. But our fiddling with these hasn't helped so far.
So, any ideas as to what went wrong? Ideas on how to open things up so this works?
Thanks in advance for any help provided.
BTW, if there's a better forum into which this should be posted, please let me know.

Greetings,
401 indicates authentication failure, as you have stated. Once deployed, have you attempted to access the report URL using the uname\pword combination with the strings which are hard-coded in your subclass? You can turn up logging to FINEST and customize what logging on the server returns. Login to your OAS administration portal and review the logging options there. If you start the server from the command line, you can view the output there real-time.
-Michael

Similar Messages

  • Why am I constantly required to download Flash player when opening a web page that requires flash?

    Since Adobe Flash Player released Ver 11. + I am constandly being promped to reinstall either Adobe Flash Player or any flash player. I spend half my time downloading and installing flash player because I am promped to re-install inorder to bring up the web page that requires flash!

    Hi wizoz,
    Can you provide the Operating System and Browser you are using to access flash player?  Also what's the exact version number you have installed now?

  • Safari wont open any pages that require log in

    Hi, we are having problems accessing any internet pages that require log in from Safari on our macbook pro, including Facebook, hotmail, bank site, and even this forum (on the old pc now). All other pages work fine.
    Things we have tried so far, restart, delete cache, reset safari, changing dns.
    This is extremely frustrating as we have only had the macbook for 5 days!
    any suggestions?

    If you are using proxy settings
    Try going to system preferences, network, advanced, proxies and http and https have the same settings.

  • Problem when using inlineFrame to include external web page.

    I built a ADF web application which include some external web pages.
    I use the ADF components: panelTabbed + showDetailItem + inlineFrame.
    Each tab is point to a external web page. see my code belows:
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1"
    disclosureListener="#{myBackingBean.disclosureListener}">
    <af:inlineFrame source="http://www.baidu.com" id="ilf1" shortDesc="4444444444"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:inlineFrame id="if1" source="query_refresh_by_poll_2.jsf"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi3">
    <af:inputText label="Label 1" id="it1"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi4">
    <af:inlineFrame id="if2" source="untitled2.jsf"/>
    </af:showDetailItem>
    </af:panelTabbed>
    It almost done except one thing: When I switched the tab back and forth, the input parameter in the previous tab will be lost.
    It seems af:inlineFrame always reload the page and clear every input by user !
    How to preserve the user input when switched the tab back and forth?
    Thanks.

    Hi Frank, thanks for you reply.
    Let me explain my case again to make sure you know what I want to do.
    because I do think it is a usual requirment, I want you give me a clear answer about it.
    In my ADF web App, I have 3 pages: main.jsf,untitled1.jsf,untitled2.jsf
    main.jsf content:
    <af:form id="f1">
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1">
    <af:inlineFrame id="if1" source="untitled1.jsf"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:inlineFrame id="if2" source="untitled2.jsf"/>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:form>
    untitled1.jsf content:
    <af:inputText label="Label 1" id="it1"/>
    untitled2.jsf content:
    <af:inputText label="Label 1" id="it1"/>
    Run main.jsf, in tab1, fill someting in the inputText, then click tab2, then click tab1 back, the input text that I just entered was cleared.
    I want to keep the user input when switch between the tabs.
    Is it possible in ADF?

  • How do I scrape external content using a URLScraper channel through a proxy that requires authentication?

    I need to scrape external content but my Portal Server lies in my Intranet. The company has a Proxy server that needs authentication in order to browse the Internet.
    In the gateway settings, I have made the entries:
    iplanet.com|
    * Proxyip:proxyport|
    This works in the sense that the gateway contacts the proxy for the content, but I get the Proxy Authentication failed page.
    Where do I pass my username and password?
    Regards,
    Vibha

    At the present time, you cannot use URLScraper with proxies that require authentication. You can either reconfigure the proxy to not require authentication when accessed by the portal, or create your own custom provider to pass proxy authentication information in the HTTP header.
    Stephen

  • Firefox freezes when going to a site or page that requires Flash Player, such as YouTube. I have the most updated version of Flash. Is there a solution to this problem?

    I'm having trouble visiting sites or pages that require Flash Player, Firefox will just freeze when they're partially loaded and it will stay frozen until I close Firefox. This will happen with any page that uses flash player. I can disable it, but then I can't access the content which requires Flash Player, have to use a different browser and I'd rather just use Firefox.

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • What is the newest update for iPad1.  I've been trying to access a web page that says it requires Flash Player.

    What is the newest update for iPad1.  I've been trying to access a web page that says it requires Flash Player.

    There is no version of Flash for any iDevice. The most recent iOS version is iOS 5.1.1.

  • Safari Not Opening Pages That Require Login

    Since I installed the latest security update Safari won't open a couple of pages I use to use all the time. Most notably the My eBay sign in page and the Bigpond Log In page and just now the Apple Login Page (I had to use Camino to get to here). When I click on these pages Safari just sits there trying to load but does nothing and after about 2min I get the spinning Beachball and have to Force Quit. Also if I press the stop button and try to load any other page other than those 3 it does the same thing. This only happens after I have already clicked on one of the above mentioned sites. I then have to quit Safari and restart it to get it to work. All my other tabbed bookmarks work, It's pretty much just these 3 and probably any other page that requires login.
    I have deleted prefs and reset Safari, Repaired Permissions, Deleted Saft, Googled for this problem and found nothing and tried to find a way to reinstall Safari but found nothing.
    Anyone got any other ideas.
    Thanks

    Try this - I was Having the same problems:
    http://www.macfixit.com/article.php?story=20061204233133704
    "Tuesday, December 05 2006 @ 03:00 AM PST
    Security Update 2006-007 (#6): Login to secure sites fails (cont.) -- fixes; Problems launching Microsoft Office apps; more
    Login to secure sites fails (cont.) -- fixes We continue to report on problems logging into secure (https) Web sites in Safari and other WebKit-based applications after applying Security Update 2006-007. Since this update makes modifications to WebKit, it's logically implicated in the difficulties.
    Even more telling than the WebKit changes, however, is the resolution (in this security update) of a vulnerability where "certain revoked certificates may be erroneously honored." It appears Safari is -- instead of erroneously honoring bad certificates -- erroneously rejecting some certificates.
    There's one more change in Security Update 2006-007 that could be implicated in this problem: a fix for a vulnerability where it may be possible to create an X.509 certificate containing a public key that "could consume a significant amount of system resources during signature verification. An attacker may cause a system to process such a certificate, leading to a denial of service."
    In at least some cases, the issue appears to be tied to certificates issued by VeriSign. Safari is incorrectly interpreting some of these certificates as invalid -- with a mismatch in the certificate-listed host name and host name of the visited URL.
    As such, one potential fix involves deleting certificate entries using Keychain Access, as follows:
    1. Launch Keychain Access (located in Applications/Utilities)
    2. Click on "Certificates" in the left-hand pane
    3. Delete any entries from VeriSign, or any certificates with a red cross next to them
    4. Re-attempt access to the problematic secure site
    The most successful fix, however, involves deleting the file com.apple.security.revocation.plist from the following directory:
    * ~/Library/Preferences
    You can replicate this workaround to some extent without deleting any files by opening Keychain Access (as mentioned above) then navigating to its Preferences (under the Keychain Access menu), clicking on the "Certificates" tab and making sure that both "Online Certificate Status Protocol (OCSP)" and "Certificate Revocation List (CRL)" are turned off. However, some users have found that only deleting the aforementioned file works.
    Unfortunately, in some cases, it may be up to certificate providers to update their certification methods for compliance with Apple's new, more stringent security standards."

  • Get External web page

    I am trying to fetch an external web page and store it in Oracle on a periodic basis.
    I am trying to create a Java Stored procedure that grabs the page and stores it in a table.
    I am having troble using url.openstream()
    Any ideas?
    thanks,
    Chris E

    Josh,
    I would recommend reviewing the source within the Web Authentication templates for info on customizable error codes... available on Cisco.com:
    Wireless -> WLCs -> Select a model -> Web Authentication Bundle
    Best,
    Drew
    Sent from Cisco Technical Support
    iPhone App

  • Use proxy that requires authentication

    In the Portal Global Settings page, it is not possible to specify authentication options for the proxy server.
    How can a proxy that requires authentication be used? Will this be implemented in a future version?

    The proxy uses IWA authenticationThis is the problem I think. As far as I know, to use IWA authentication, you have to configure Identity Management. Please raise a case with Oracle Support and they should guide you correctly to the root cause and possible solutions.
    Regards,
    Anuj

  • When I go to a web page that page appears upper left, filling half of the screen. I have to manually go to View in the menu bar to get it to fill the page each time.  How can I get my Mac Mini to go to full page automatically when I visit a web page?

    When I go to a web page, that page appears upper left, filling only half of my screen top and bottom.  Each time I have to go to the menu bar View and go to full page.  How can I get the web pages to display in the full screen automatically??? This just started happening.

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • I am facing a caching problem in the Web-Application that I've developed us

    Dear Friends,
    I am facing a caching problem in the Web-Application that I've developed using Java/JSP/Servlet.
    Problem Description: In this application when a hyperlink is clicked it is supposed to go the Handling Servlet and then servlet will fetch the data (using DAO layer) and will store in the session. After this the servlet will forward the request to the view JSP to present the data. The JSP access the object stored in the session and displays the data.
    However, when the link is clicked second time then the request is not received by our servlet and the cached(prev data) page is shown. If we refresh the page then request come to the servlet and we get correct data. But as you will also agree that we don't want the users to refresh the page again and again to get the updated data.
    We've included these lines in JSPs also but it does no good:
    <%
    response.setHeader("Expires", "0");
    response.setHeader("Cache-Control" ,"no-cache, must-revalidate");
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control","no-store");
    %>
    Request you to please give a solution for the same.
    Thanks & Regards,
    Mohan

    However, when the link is clicked second time then the request is not received by our servlet Impossible mate.. can you show your code. You sure there are no javascript errors ?
    Why dont you just remove your object from the session after displaying the data from it and see if your page "automatically" hits the servlet when the link is clicked.
    cheers..
    S

  • Can I embed an external web page?

    In Rapidweaver you can make a frame on a page and within the frame show an external web page. I would like to do the same in iweb.
    I'm trying to embed my Blogger page so that people will be able to access it from with in my web site. I want them to be able to read and comment without leaving my site. I've been using iweb enhancer but do not understand what code to insert for this. Any help is much appreciated. Thanks .

    Hi varklady, Sleep you not? What happend to teaching
    2nd grade?
    5am wakeup take dog out
    5:15 coffee and iWeb forum
    5:30 shower
    6am drive ~1 hr to work
    7am teach 2nd grade
    You are proving very handy with iweb. I
    actually figured it out using the code from the
    google calander insert on one of my pages and
    replacing the url inside. Basically what you
    suggested. BTW I inserted the code following the
    directions of iweb enhancer and it did the trick
    after a bit o tweeking with size.
    Here's another way, without iWeb Enhancer:
    http://www.varkgirl.com/Varkgirl/Basic%20HTML%20Additions.html

  • APEX app using Oracle Text  to index pages that require authorzation

    Hi Gurus and APEX Dev team
    My team need to develop an APEX App that will index all our documents spread across various servers. Some of the documents require Single sign on access (e.g. KIX.oraclecorp.com) and some require other authorization methods (e.g. Metalink) . The Question is , Is it possible to index the pages that require authorization using Oracle text. If yes How? I have implemented the demo app which can index pages that do not require authorization.
    Thanks a million
    regards
    Bala

    Hello,
    Unless I misunderstand you, the fact that the pages require authentication doesn't really matter, it is the underlying data you want to index correct? If so then you would index them in exactly the same way that you would index any table data using Oracle Text/interMedia.
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • External web page in iWeb's template...

    Ok, I just downloaded the demo of RapidWeaver and there was a feature called iFrame. IFrame allows an external web page to be displayed in the theme of your site. I have a store on my site that I had coded in PHP and HTML by hand, and have no real way to incorporate the page into my iWeb theme. Currently, I link to another place on my server, but the theme/ navigation bar is no longer available and it looks really unprofessional. If someone knows how to make something like iFrame work in iWeb, please let me know.
    Thanks,
    -Matt

    Thanks! One thing, I looked at another page about this before I could get it to work...but this page go me set up! If anyone else cares, here is the other site: http://web.mac.com/will.englefield/iWeb/WillG4PB/iFrames.html
    -Matt
    MacBook Pro 2.16 Core 2 Duo   Mac OS X (10.4.10)   MBP 2.16 C2D/1GB/120GB, iBook G4 1.25/512MB/30GB/Combo...and many more

Maybe you are looking for

  • Transactions and Locking Rows for Update

    I have a problem in the application I am currently working on, which it seems to me should be easily solvable via appropriate use of transactions and database locking, but I'm having trouble figuring out exactly how to do it. The database we are usin

  • How- Sync to a new laptop without losing iPhone music?

    Hi! I went to get the new iphone today (ack; cracked screen!) and I was told I needed to 'sync' my info from my old iphone first onto my laptop.  I am very thankful for those who take time to answer a cry for help; you will never know what it means t

  • Session problems in tomcat 5.0.28

    Even I shutdown the tomcat 5.0.28 server the session variable is still existing and it is showing the old values. What I have to do to disable the old values? Is it the problem with tomcat 5.0.28 or with JSP coding!

  • Select Empno,name,sum()..group by empno only  Is this possible?

    select empno,name,sum(sal) from emptable where year=' ' groub by empno order by empno. this query getting error because i didn't include empname in group by. But if i include this name, my sum is not correct. so i want to empno,name but i don't want

  • Cheapest HDMI autosensing switch?

    I have an AppleTV, a CableTV HD box with an HDMI output, and a Sony multimedia center that I wish to hook up to my TV. Yet I don't want to constantly fiddle with the TV's input setting to select different inputs. Is there an autosensing switch that w