Catching 404 error in WLS

Hi,
I am currently using WebLogic server 8.1. I have only one instance of WebLogic server and deploy 5-6 web applications in it. Now, I was thinking to create one handler to handle the 404 error for all the web applications to display the general error message.
Currently, I do not use any proxy or webserver hence the user directly accesses the WebLogic server. I know that WebLogic is also a webserver by itself. I believe that I can set this somewhere in config.xml but I do not have any idea. I know that in old WebLogic server 5.1, this can be set in weblogic.properties (old form of config.xml) in something like "httpd.error.404=/error.jsp" so I am sure that config.xml is also allowing this.
Any idea?
Thanks.
David

Hi,
Thanks. I also realized that we can put in under web.xml and thats how we do it at the moment. However, we are looking at the more 'global' way in the sense that we do not need to do it for each of our web applications. Hence, I think that config.xml may be the best place to look for but up to now, I am quite pessimistic that we can configure this in the WebLogic server's level.
Any idea?
Best Regards
David

Similar Messages

  • 404 error while invoking servlet in weblogic 6.0

              Hi,
              When I try to invoke a servlet from weblogic 6.0, I am getting
              404 error. I have copied the HelloWorldServlet class into defaultWebAppl_Server/WEB_INF/CLASSES
              directory and when I invoke the HelloWorldservlet, its giving file
              not found(404) error. I am doing exactly what has been given in
              the "quick start to servlets" in weblogic 6.0. I am using Windows
              NT.
              I have also another problem when I use java utils.dbping to test
              the connection to my oracle8.1.8, its giving licence file not found.
              Could some one help me out from this.
              Thanks in advance,
              Ramu
              

              Hi kumar,
              I have been keep trying to solve that. After some time Suddenly
              "Error 404" disappeared and instead "Error 500" came. Okay kumar,
              here is what I am doing...
              I have installed weblogic6.0(eval), oracle 8.1.6 on Windows NT4.0.
              I have installed oracle Enterprise edition from CD "ORACLE 8.1.6
              for NT".
              I installed the weblogic under D: drive.
              I did class path settings as given in documentation. But Iam not
              sure whether I need to do any other class path settings.
              I was able to run pet store application given in weblogic server.
              I went to "quick start" section and ran HelloWorld.jsp page from
              "DefaultWebApp_myServer" directory.
              I was not able to run servlet program as per given in the "quick
              start". I am getting
              "Error 500---Internal server error"
              The server encountered an unexpected condition which prevented
              it from fulfilling the request"
              I have modified the web.xml under WEB-INF of DefaultWebApp_myServer
              as per given in the quick start.
              Here is the quick start link For you reference(as what I talking
              about)
              http://edocs.beasys.com/wls/docs60/quickstart/quick_start.html
              In the web.xml, I have given <servlet-class> as just HelloWorldServlet,
              since I directly copied the file from some other examples directory.
              But still I am getting 500 error.
              Here is the url that I am invoking...Http://ramup:7001/quickStartServlet
              Coming to your oracle connection test, I did exactly what you said.
              kumar, I have executed the command
              "D:\bea\wlserver6.0\config\mydomain>java -classpath %classpath%;D:\bea
              utils.dbping ORACLE
              >scott tiger TestDB"
              Where TestDB is the database that I have created while installing,
              but I am not aware of the instance you said.
              Here is what I got after executing the command.
              --------*******-------Pasting the ms-dos command results----**-
              // This mode is superior, especially in serverside classes because
              // it avoids DriverManager calls are class synchronized, and will
              // bottleneck any other JDBC in the server, even already-running
              // connections, because all JDBC drivers use DriverManager.println()
              // to log info and exceptions, and that call is also class synchronized.
              // For repeated connecting, a single driver instance can be re-used.
              **** or ****
              Class.forName("weblogic.jdbc.oci.Driver").newInstance();
              java.sql.Connection conn =
              DriverManager.getConnection("jdbc:weblogic:oracle:TestDB", "scott",
              "tiger")
              **** or ****
              java.util.Properties props = new java.util.Properties();
              props.put("user", "scott");
              props.put("password", "tiger");
              props.put("server", "TestDB");
              Class.forName("weblogic.jdbc.oci.Driver").newInstance();
              java.sql.Connection conn =
              DriverManager.getConnection("jdbc:weblogic:oracle", props);
              D:\bea\wlserver6.0\config\mydomain>
              --------*******-------Pasting the ms-dos command results----**-
              I think I have connection to database, thanks for your suggestion.
              Kumar, I have not seen weblogic.properties file any where in D:\bea
              directory.
              Kumar, if you have some time can you jot down the classpath settings
              and path settings for executing SERVLETS/EJB programs.
              Thanks for helping me out..,
              Ramu
              Kumar Allamraju <[email protected]> wrote:
              >Assuming you registered the helloworld servlet in web.xml,
              >could you show me the url
              >that you typed in the browser window? :)
              >
              >
              >Regarding the dbping problem, make sure license.bea is
              >in the classpath
              >
              >ie.. java -classpath %classpath%;D:\bea utils.dbping ORACLE
              >scott tiger [instance-name]
              >
              >PS: I'm assuming WLS is installed in D:\bea directory.
              >
              >--
              >Kumar
              >
              >
              >Ramu wrote:
              >
              >> Hi,
              >>
              >> When I try to invoke a servlet from weblogic 6.0, I
              >am getting
              >> 404 error. I have copied the HelloWorldServlet class
              >into defaultWebAppl_Server/WEB_INF/CLASSES
              >> directory and when I invoke the HelloWorldservlet, its
              >giving file
              >> not found(404) error. I am doing exactly what has been
              >given in
              >> the "quick start to servlets" in weblogic 6.0. I am
              >using Windows
              >> NT.
              >>
              >> I have also another problem when I use java utils.dbping
              >to test
              >> the connection to my oracle8.1.8, its giving licence
              >file not found.
              >>
              >> Could some one help me out from this.
              >>
              >> Thanks in advance,
              >> Ramu
              >
              

  • Images and js files within a deployed war file are generating 404 errors.

    Greetings,
    I have an odd situation in that image files and js files that are part of a deployed war file are generating 404 (not found) errors when accessed via https but ARE found when accessed via http.
    Unfortunately we are required to use https.
    I have verified via jar -tf that the files are indeed part of the war file. So, it is not that they are missing as is evident when accessed via http. (they appear as expected)
    A work around is to create the sub directories under the document root, on the ohs, and populate the sub directories with the images and js files that were used as part of the war file build. While this works, it doesn't explain why they would generate a 404 error when referenced from within the war via https.
    The war file works correctly on our 10g installation.
    I also have a very simple deployed war file and it too seems to have an issue finding direcotries/files that are part of the war file when referenced via https but not http.
    We are using Oracle 11g OHS and using the WLS Admin Console to do the deploying. We also are using the OSSO for the performing the required authentication.
    I have an SR in with oracle and have been working with them but I thought I would post here too.
    Suggestions?
    Thanks in advance.
    Edited by: emmett on Jan 5, 2011 2:47 PM

    Don't crosspost. Continue here: http://forum.java.sun.com/thread.jspa?threadID=5251627

  • How to solve the 404 error

    Hi,
    How to catch or solve the 404 error in application.
    Some time we are giving some file name but that file is not avialable at that time it will give 404 error. how to avoid this error.
    If 404 error comes i want call some other file. Is it posible.
    Thanks Advance.

    Yes, this is because IE 5.5 (?) and higher have this wacky "Show friendly HTTP error messages" setting. You can disable this by going to tools -> internet options -> advanced and unchecking "Show friendly HTTP error messages". However as the default IE setting has "Show friendly HTTP error messages" enabled this isn't a good solution.
    I believe that if your error page is less than a certain size (in bytes) then IE defaults to it's own error page when "Show friendly HTTP error messages" are enabled. This size is something like 512 bytes or fewer in length.
    So basically try making your error page larger (more than 512 bytes in size) and see if that works.

  • Page cannot be found HTTP 404 Error

    I have uploaded the site which deals in giving access to the user to our html pages.
    I have used servlets & ms access
    Created user DSN.
    used dsn less connectivity.
    The servlet checks the entry on the home page
    and should display the Html page.But its giving the 404 error of Page not found.
    I am posting the servlet.
    Could u please tell me where i should place the servlet file & the corresponding file on the server.
    This is very urgent.
    Servlet code:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class login extends HttpServlet
         Connection con;
         public void init()
              try
                        String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
                        Class.forName (driver);
              catch(ClassNotFoundException cnfe)
                   System.out.println(cnfe);
         public void doPost(HttpServletRequest req,HttpServletResponse res) throws      
    ServletException,IOException
                   try
                   String chemin = "d:/Yarnz project/database/yarnz.mdb";
                   String fullConnectionString = "jdbc:odbc:Driver={Microsoft Access Driver
    (*.mdb)};DBQ=" + chemin;
                   con = DriverManager.getConnection (fullConnectionString);
                   res.setContentType("text/html");               
                   PrintWriter pw = res.getWriter();
                   String c = req.getParameter("login");
                   String d = req.getParameter("pass");
                   Statement st =con.createStatement();
                   ResultSet rs =st.executeQuery("select login,password from client_status                
    where login ='"+c+"' and password='"+d+"' ");
                   while(rs.next())
                   if(rs.getString("password").equals(d) && rs.getString("login").equals(c))
              res.sendRedirect("testing.htm");
                   else
                   pw.println("Try Again!<br>");
                   pw.println("Please check ur LOGIN & PASSWORD<br>");
                   pw.println("<a href=index.htm>LOGIN</a>");
              catch(SQLException sqle)
                   System.out.println(sqle);
    Waiting for a quick response.
    vidita

    do you have the file testing.htm in the document root of you webserver.

  • 404 error code .. help plz

    Hi all,
    how can I catch the 404 errors in my jsp page to throw these excptions to My errorPage ??
    I write in My home Page (index.jsp) to catch this error :
    try {
    // My code
    } catch(FileNotFoundException ex) {
    throw new FileNotFoundException("page not found");
    and I write in the web.xml Page :
    <web-app>
    <display-name>Orange Whip Studios</display-name>
    <description>JRun Web Application Construction Kit Demo</description>
    <context-param>
    <param-name>CompanyName</param-name>
    <param-value>Orange Whip Studios</param-value>
    </context-param>
    <context-param>
    <param-name>Datasource</param-name>
    <param-value>ows</param-value>
    </context-param>
    <error-page>
    <error-code>404</error-code>
    <location>/errorPage.jsp</location>
    </error-page>
    <error-page>
    <error-code>500</error-code>
    <location>/errorPage.jsp</location>
    </error-page>
    <error-page>
    <exception>java.sql.Exception</exception>
    <location>/errorPage.jsp</location>
    </error-page>
    </web-app>
    the 500 error code and the java.sql.Exception work finally .. but the 404 error code didn't ??? can anyone tell me why????

    You aren't forwarding the request to a JSP at any way. Use RequestDispatcher#forward() for that.
    I also recommend to separate your logic. Use DAO class for the database logic. Use servlet class for the business logic and use JSP for the view logic. E.g.
    // Process request parameters.
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    // Get User from DAO.
    User user = yourUserDAO.loadUser(username, password);
    // Check User.
    if (user != null) {
        // User exist.
        request.getSession().setAttribute("user", user);
        request.setAttribute("isLoggedIn", Boolean.TRUE);
    } else {
        // User doesn't exist.
        request.setAttribute("isLoggedIn", Boolean.FALSE);
    // Forward request back to login JSP file.
    request.getRequestDispatcher("login.jsp").forward(request, response);login.jsp:<p>Login ${isLoggedIn ? 'succesful' : 'failed'}</p>or use JSTL c:if / c:choose.
    Besides, why don't you trust the database? You're querying the database for a single row matching the username and password. If it returns a row, then you're comparing the username and password once again in Java. Why?

  • CRM API v3 404 Error

    Trying to test the new CRM APIs, but getting the 404 error.
    What am i doing wrong?
    -----------------------------------------this is my javascript:
    function searchCustomers(phoneID) {
    console.log('searchin customers');
    var request = $.ajax({
    url: "/webresources/api/v3/sites/current/customers",
    type: "GET",
    contentType: "application/json",
    headers: {
    "Authorization": $.cookie('access_token')
    request.done(function (msg) {
    console.log('SUCCESS!');
    console.log(msg);
    request.fail(function (jqXHR) {
    console.log("Request failed.");
    console.log("Error code: " + jqXHR.status);
    console.log("Error text: " + jqXHR.statusText);
    console.log("Response text: " + jqXHR.responseText);
    -----------------------------------------this is console output:
    searchin customers searchController.js:77
    GET https://ugm-exchange-759929-apps.worldsecuresystems.com/webresources/api/v3/sites/current/customers?_=1413441564127 404 (Not Found) jquery-1.10.2.js:8706
    Request failed. searchController.js:96
    Error code: 404 searchController.js:97
    Error text: Not Found searchController.js:98
    Response text: <!DOCTYPE html>
    <html class="html" lang="ru-RU">
    <!-- BC_OBNW -->
    <head>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <title>jeztorgi</title>
    <link href="/StyleSheets/ModuleStyleSheets.css" type="text/css" rel="StyleSheet" />
    <script type="text/javascript">var jslang='EN';</script>
    <script type="text/javascript">
    if(typeof Muse == "undefined") window.Muse = {}; window.Muse.assets = {"required":["jquery-1.8.3.min.js", "museutils.js", "jquery.musemenu.js", "jquery.watch.js", "template.css"], "outOfDate":[]};
    </script>
    <link rel="stylesheet" type="text/css" href="/css/site_global.css?519733222" />
    <link rel="stylesheet" type="text/css" href="/css/master_______-a.css?4204192794" />
    <link rel="stylesheet" type="text/css" href="/css/template.css?3898338608" id="pagesheet" />
    <script type="text/javascript">
    document.documentElement.className += ' js';
    </script>
    <meta name="generator" content="2014.1.1.276" />
    <meta name="image-hide-from-external-url" content="true" />
    <meta name="image-hide-location" content="true" />
    <!-- CSS -->
    <!-- Other scripts -->
    <!-- JS includes -->
    <!--[if lt IE 9]>
    <script src="/scripts/html5shiv.js?4241844378" type="text/javascript"></script>
    <![endif]-->
    </head>
    <body>
    <div class="clearfix" id="page"><!-- column -->
    <div class="position_content" id="page_position_content">
    <a class="nonblock nontext clip_frame colelem" id="u8697" href="/index.html"><!-- image --><img class="block" id="u8697_img" src="/images/paperlogo.jpg" alt="" width="318" height="43" data-ice-editable="image" data-ice-options="clickable" data-muse-uid="U8697" data-muse-src="/images/paperlogo.jpg" /></a>
    <div class="browser_width colelem" id="u8688-bw">
    <div id="u8688"><!-- group -->
    <div class="clearfix" id="u8688_align_to_page">
    <nav class="MenuBar clearfix grpelem" id="menuu8458"><!-- horizontal box -->
    <div class="MenuItemContainer clearfix grpelem" id="u8473"><!-- vertical box -->
    <a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix colelem" id="u8476" href="/gazeta.html"><!-- horizontal box --><div class="MenuItemLabel NoWrap clearfix grpelem" id="u8479-4"><!-- content --><p>Электронная газета</p></div></a>
    </div>
    <div class="MenuItemContainer clearfix grpelem" id="u8466"><!-- vertical box -->
    <a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix colelem" id="u8467" href="/%d1%80%d0%b5%d0%b4%d0%b0%d0%ba%d1%86%d0%b8%d1%8f.html"><!-- horizontal box --><div class="MenuItemLabel NoWrap clearfix grpelem" id="u8468-4"><!-- content --><p>Редакция</p></div></a>
    </div>
    <div class="MenuItemContainer clearfix grpelem" id="u8487"><!-- vertical box -->
    <a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix colelem" id="u8488" href="/%d0%be%d0%b1%d1%8a%d1%8f%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f.html"><!-- horizontal box --><div class="MenuItemLabel NoWrap clearfix grpelem" id="u8491-4"><!-- content --><p>Объявления</p></div></a>
    <div class="SubMenu MenuLevel1 clearfix" id="u8492"><!-- vertical box -->
    <ul class="SubMenuView clearfix colelem" id="u8493"><!-- vertical box -->
    <li class="MenuItemContainer clearfix colelem" id="u8494"><!-- horizontal box --><a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u8495" href="/%d0%b1%d0%b5%d1%81%d0%bf%d0%bb%d0%b0%d1%82%d0%bd%d1%8b%d0%b5-%d0%be%d0%b1%d1%8a%d1%8f%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f.html"><!-- horizontal box --><div class="MenuItemLabel NoWrap clearfix grpelem" id="u8497-4"><!-- content --><p>Бесплатные объявления</p></div></a></li>
    <li class="MenuItemContainer clearfix colelem" id="u8515"><!-- horizontal box --><a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u8516" href="/vip-%d0%be%d0%b1%d1%8a%d1%8f%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f.html"><!-- horizontal box --><div class="MenuItemLabel NoWrap clearfix grpelem" id="u8518-4"><!-- content --><p>VIP&#45;объявления</p></div></a></li>
    <li class="MenuItemContainer clearfix colelem" id="u8501"><!-- horizontal box --><a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u8502" href="/%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d0%b8.html"><!-- horizontal box --><div class="MenuItemLabel NoWrap clearfix grpelem" id="u8504-4"><!-- content --><p>Модули</p></div></a></li>
    <li class="MenuItemContainer clearfix colelem" id="u8508"><!-- horizontal box --><a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix grpelem" id="u8509" href="/%d1%84%d0%be%d1%82%d0%be-%d0%be%d0%b1%d1%8a%d1%8f%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d1%8f.html"><!-- horizontal box --><div class="MenuItemLabel NoWrap clearfix grpelem" id="u8510-4"><!-- content --><p>Фото&#45;объявления</p></div></a></li>
    </ul>
    </div>
    </div>
    <div class="MenuItemContainer clearfix grpelem" id="u8459"><!-- vertical box -->
    <a class="nonblock nontext MenuItem MenuItemWithSubMenu clearfix colelem" id="u8460" href="/%d1%80%d0%b5%d0%ba%d0%bb%d0%b0%d0%bc%d0%b0.html"><!-- horizontal box --><div class="MenuItemLabel NoWrap clearfix grpelem" id="u8461-4"><!-- content --><p>Реклама</p></div></a>
    </div>
    </nav>
    </div>
    </div>
    </div>
    <div class="colelem" id="u5129"><!-- custom html -->
    <div class="system-error-message">
    <h1>Page Not Found</h1>
    <p>We could not find the Web Page you requested. This is either because:</p>
    <ul>
    <li>There's an error in the address or link.</li>
    <li>Or you have entered the address or link incorrectly.</li>
    </ul>
    <p>
    <a href="/">Click here</a> to go back to our Home Page.
    </p>
    </div><!-- .system-error-message -->
    </div>
    <div class="verticalspacer"></div>
    <div class="browser_width colelem" id="u2642-bw">
    <div id="u2642"><!-- simple frame --></div>
    </div>
    <div class="clearfix colelem" id="pu2641-4"><!-- group -->
    <div class="clearfix grpelem" id="u2641-4"><!-- content -->
    <div data-ice-editable="html" data-ice-options="disableImageResize,none" data-muse-uid="U2641">
    <p>© 2014 Газета &quot;Городская Ярмарка&quot;</p>
    </div>
    </div>
    <div class="grpelem" id="u6821"><!-- custom html -->
    <!-- ZERO.kz -->
    <span id="_zero_60032">
    <noscript>
    <a href="http://zero.kz/?s=60032" target="_blank">
    <img src="http://c.zero.kz/z.png?u=60032" width="88" height="31" alt="ZERO.kz" />
    </a>
    </noscript>
    </span>
    <script type="text/javascript"><!--
    var _zero_kz_ = _zero_kz_ || [];
    _zero_kz_.push(["id", 60032]);
    _zero_kz_.push(["type", 1]);
    (function () {
    var a = document.getElementsByTagName("script")[0],
    s = document.createElement("script");
    s.type = "text/javascript";
    s.async = true;
    s.src = (document.location.protocol == "https:" ? "https:" : "http:")
    + "//c.zero.kz/z.js";
    a.parentNode.insertBefore(s, a);
    })(); //-->
    </script>
    <!-- End ZERO.kz -->
    </div>
    </div>
    </div>
    </div>
    <!-- JS includes -->
    <script type="text/javascript">
    if (document.location.protocol != 'https:') document.write('\x3Cscript src="http://musecdn1.businesscatalyst.com/scripts/4.0/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
    </script>
    <script type="text/javascript">
    window.jQuery || document.write('\x3Cscript src="/scripts/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
    </script>
    <script src="/scripts/museutils.js?4004241294" type="text/javascript"></script>
    <script src="/scripts/jquery.musemenu.js?4009181048" type="text/javascript"></script>
    <script src="/scripts/jquery.watch.js?172956391" type="text/javascript"></script>
    <!-- Other scripts -->
    <script type="text/javascript">
    $(document).ready(function() { try {
    (function(){var a={},b=function(a){if(a.match(/^rgb/))return a=a.replace(/\s+/g,"").match(/([\d\,]+)/gi)[0].split(","),(parseInt(a[0])<<16)+(parseInt(a[1])<<8)+parseInt(a[2]);if(a.match(/^\#/))return parseInt(a.substr(1),16);return 0};(function(){$('link[type="text/css"]').each(function(){var b=($(this).attr("href")||"").match(/\/?css\/([\w\-]+\.css)\?(\d+)/);b&&b[1]&&b[2]&&(a[b[1]]=b[2])})})();(function(){$("body").append('<div class="version" style="display:none; width:1px; height:1px;"></div>');
    for(var c=$(".version"),d=0;d<Muse.assets.required.length;){var f=Muse.assets.required[d],g=f.match(/([\w\-\.]+)\.(\w+)$/),k=g&&g[1]?g[1]:null,g=g&&g[2]?g[2]:null;switch(g.toLowerCase()){case "css":k=k.replace(/\W/gi,"_").replace(/^([^a-z])/gi,"_$1");c.addClass(k);var g=b(c.css("color")),h=b(c.css("background-color"));g!=0||h!=0?(Muse.assets.required.splice(d,1),"undefined"!=typeof a[f]&&(g!=a[f]>>>24||h!=(a[f]&16777215))&&Muse.assets.outOfDate.push(f)):d++;c.removeClass(k);break;case "js":k.match(/^jquery-[\d\.]+/gi)&&
    typeof $!="undefined"?Muse.assets.required.splice(d,1):d++;break;default:throw Error("Unsupported file type: "+g);}}c.remove();if(Muse.assets.outOfDate.length||Muse.assets.required.length)c="Некоторые файлы на сервере могут отсутствовать или быть некорректными. Очистите кэш-память браузера и повторите попытку. Если проблему не удается устранить, свяжитесь с разработчиками сайта.",(d=location&&location.search&&location.search.match&&location.search.match(/muse_debug/gi))&&Muse.assets.outOfDate.length&&(c+="\nOut of date: "+Muse.assets.outOfDate.join(",")),d&&Muse.assets.required.length&&(c+="\nMissing: "+Muse.assets.required.join(",")),alert(c)})()})();
    /* body */
    Muse.Utils.transformMarkupToFixBrowserProblemsPreInit();/* body */
    Muse.Utils.prepHyperlinks(true);/* body */
    Muse.Utils.initWidget('.MenuBar', function(elem) { return $(elem).museMenu(); });/* unifiedNavBar */
    Muse.Utils.resizeHeight()/* resize height */
    Muse.Utils.fullPage('#page');/* 100% height page */
    Muse.Utils.showWidgetsWhenReady();/* body */
    Muse.Utils.transformMarkupToFixBrowserProblems();/* body */
    } catch(e) { if (e && 'function' == typeof e.notify) e.notify(); else Muse.Assert.fail('Error calling selector function:' + e); }});
    </script>
    </body>
    </html> searchController.js:99

    I've got this error:

  • WindowsAzure.Storage version 4+ 404 errors.

    Hello.
    Below is a simplified version of code I am using to get information about blobs. This works fine on any version of Microsoft.WindowsAzure.Storage up to version 3.2.1. When I update to version 4.x the
    ListBlobs call works but FetchAttributes always throws a 404 error.
    I'm sure it is something simple but I just can't see what has changed between the versions. Anyway here is the code (the connection string is standard).
    var account = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["azConn"].ConnectionString);
    CloudBlobClient blobClient = account.CreateCloudBlobClient();
    CloudBlobContainer photoContainer = blobClient.GetContainerReference("pictures1");
    var blobItems = photoContainer.ListBlobs(null,true);
    foreach (var blobItem in blobItems)
    Console.WriteLine(blobItem.Uri.ToString());
    CloudBlockBlob blob = photoContainer.GetBlockBlobReference(blobItem.Uri.ToString());
    try
    blob.FetchAttributes();
    catch (StorageException ex)
    Console.WriteLine(ex.Message);

    Hi,
    I have tested on my local, the version of my azure storage is 4.0.1.0, I think you need to check your code below.
    CloudBlockBlob blob = photoContainer.GetBlockBlobReference(blobItem.Uri.ToString());
    As far as I know, if your azure storage doesn't have a blob named "blobItem.Uri.ToString()",
    it will give us 404 error message, I don't know how the other version deals with this, if you use the latest one, please consider change your code as below.
    CloudBlobClient blobClient = account.CreateCloudBlobClient();
    CloudBlobContainer photoContainer = blobClient.GetContainerReference("bcv");
    var blobItems = photoContainer.ListBlobs(null, true);
    foreach (var blobItem in blobItems)
    Console.WriteLine(blobItem.Uri.ToString());
    CloudBlockBlob blob = (CloudBlockBlob)blobItem;
    try
    blob.FetchAttributes();
    catch (StorageException ex)
    Console.WriteLine(ex.Message);
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Weblogic 10.3.2: Under load, system gives 404 error when accessing page

    Hi all,
    I am running Weblogic 10.3.2 with a J2EE EAR deployed against it. I am using JDBC data sources to connect to an Oracle 11g database. I am running on Linux Red Hat 5. The machine has 16 GB RAM and 16 cores of an Intel Xeon processor.
    I have recorded some Grinder scripts to simulate the HTTP requests going back and forth from the web browser to the app server in an attempt to play them back in volume to do some load testing. I am finding that even under relatively moderate load, after some time (say 30-60 minutes) when trying to access the application in my web browser (and in Grinder), I am getting 404 errors.
    The strange thing is that the app server is still running fine and there are no errors thrown in any Weblogic log file. There is nothing wrong in the verbosegc log file and the CPU usage via "sar" is very low. The number of JDBC connections is well below the threshold for concern. Sometimes, if I wait a while (hours or more), it sometimes comes back up and works fine again, until the next worjload hits it. I have studied thread dumps and see nothing unusual.
    I've been very puzzled with this for days. Does anyone else know what might be wrong or something else I could check to get more information?

    Hi, I have the same kind of problem. but when it happens I noticed strange line in the access.log like these ones :
    access.log00003:192.168.104.198 - - [20/Apr/2012:12:16:45 +0200] "ancelActionID=CCACustomerProfile&contactreasonwrapuplaunchable=true&contactCode=&contactType=&contactInformation=&Customer.CustomerNumber=5146990&processheadertitle=&PageState.CaseNumber=&PageState.CaseReference=&caseId=42ceed6436cbd7c70136cf3ea82c3b4a&" 404 0
    access.log00004:192.168.104.122 - - [20/Apr/2012:14:02:16 +0200] "s-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" 404 0
    access.log00004:192.168.105.122 - - [20/Apr/2012:14:02:18 +0200] "-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" 404 0
    access.log00004:192.168.104.122 - - [20/Apr/2012:14:02:20 +0200] "application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" 404 1214
    As you can see, instead of containiing the HTTP action (GET/POST /someurl HTTP/1.1) it contains part of the url or even part of the Accept http header...
    When your 404 happened did you have those strange entries in your access.log ? Did you succeed in resolving it ?

  • Issue with OWA (404 error)

    Issue with OWA (404 error)
    From the server itself i can use IPv6 https://[fe80::feef:ff56:c498:1f0]/owa - this opens the mailbox.
    https://127.0.0.1/owa - this opens the mailbox
    https://localhost/owa - this results in 404 - File or directory not found
    using https://servername/owa - this results in 404 - file or directory not found
    using https://192.168.10.10 - this results in 404 - file or directory not found
    is this an issue with IIS bindings?
    thanks in advance

    Hi,
    I think you can check the authentication settings in IIS for exchange virtual directories.
    Thanks,
    James

  • Custom 404 Error page in Sharepoint Foundation 2013

    Hi all,
    How to point to the custom 404 error page in Share Point Foundation 2013. I have seen some links but not working for me. Please me let me know if you have any suggestion.
    Thanks.

    Can i create any page and pass the page url in it,like if i have created a page as custom404.aspx under pages library so do i need to do like this?
    $spsite = Get-SPSite "<http://sharepoint:1000/>"
    $spsite.FileNotFoundUrl = "<pages/custom404.aspx>"
    is this the correct way or i am doing incorrectly??
    please suggest

  • Getting 404 error when trying to login to Oracle EBS page

    Hi,
    I had installed Oracle EBS 12.0.4 last year and everything was running fine until last week. Last week, we suddenly started seeing this issue - when trying to login to the Oracle EBS page, we are getting the 404 page not found error.
    I have EBS installed on 2 VMs (virtual machines) - one VM has the application server and other VM has the database server. I logged on to the aplpication server to do some debugging and noticed 2 things ->
    1.The Oracle Fullfillment service was not running. I started it, it was up for some time but then it stopped on its own. This happens everytime - after successfully starting the service, it shuts down after sometime. There is nothing in the event viewer except this message "The service may have terminated abnormally, please see the log file generated by the service for more details." I checked the log file, but there is nothing significant inside the log file. Maybe I need to increase the log level. Can any one tell me how can I do that?
    2. Reviver.exe was crashing intermitently on the application server. I belive reviver tries to establish the connection between the application and database server after its broken.
    So I am thinking now that maybe the connection between the app server and the database server is getting broken intermittenlty and this is the root cause of all the problems.
    I dont know how to verify whethe my analysis is correct or not? And it it is, how to resolved it? Is there a setting or a configuration file in which you have to specify the database server details (ip address / host name etc). Can you tell me where can I find this setting?
    Or culd there be something altogether different that is causing the page not found error?
    Thanks in advance,
    Megha

    Hussein,
    The problem is partially solved - I am not getting the 404 error now. The issue was not with the netsvc file. Please see the resolution in NOTE:412980.1 (oafm,forms and oacore not starting up after IP adress change).
    The OC4J services are imperative for any URL for java code. With just the Apache listener running, examples of URLS that will work are ->
    http://HOST.DOMAIN:PORT/OA_MEDIA/FNDLOGOL.gif
    http://HOST.DOMAIN:PORT/
    Any URL for Java code will fail at this stage when OC4J services are down. For example this URL will fail: http://myHost.oracle.com:8000/OA_HTML/ServletPing.
    But now, I am getting 500 Internal server error. Let me know if you kno anything about this error ->
    oracle.apps.fnd.cache.CacheException     at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228)     at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1485)     at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:354)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)     at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1259)     at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1114)     at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1083)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1050)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1037)     at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595)     at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:941)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:926)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:891)     at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:751)     at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1014)     at oracle.apps.fnd.sso.Utils.getAppsContext(Utils.java:525)     at oracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:120)     at oracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:170)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4541)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)Caused by: oracle.apps.jtf.base.resources.FrameworkException: Error in IAS Cache: java.lang.NullPointerException: null Connection     at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:712)     at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802)     at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624)     at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216)     ... 33 moreCaused by: oracle.apps.jtf.base.resources.FrameworkException:
    An exception occurred in the method CacheAccess.get
    null
    The base exception is:
    null Connection     at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)     at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)     ... 37 more

  • 404 Error when opening Web Analysis

    I have just finished setting up a System 9 test environment (my first environment), which includes Reporting and Analysis System 9 release 9.3.1.2.00. Unfortunately, I'm having trouble getting Web Analysis to open. When I go to the URL (http://localhost:16000/WebAnalysis/WebAnalysis.jsp), I get the following 404 Error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    +10.4.5 404 Not Found+
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    The strange thing is, if I open up Workspace on the same server (http://localhost:19000/workspace/), it comes up just fine. I'm very new to Hyperion System 9, so I'm not even sure where to begin. I've already stopped/restarted all of the services and rebooted the servers. I've also tried re-running the Configuration Utility to re-deploy the application server and re-configure the web server, but that didn't fix it either. And for what it's worth, I've tried using the actual server name in the URL instead of 'localhost' and I get the same error. I also tried launching Web Analysis from Workspace -- same error.
    Can you provide any suggestions on where I can start to look?

    I don't know what the cause of the problem was, but a reinstall of Reporting and Analysis - System 9 UI Services (Web Analysis) fixed it.
    Edited by: user10770144 on Apr 21, 2009 1:49 PM

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Not able to run my first Servlet..... 404 error!!!

    Hi,
    I am new to Java.
    I am trying to create a small servlet application. I am using Tomcat 5.5 server and eclipse for this.
    I have first writtern a HTML form which on submission is redirected to a servlet that displays the information submitted. but i am not able to evn open the html file through browser, i am getting 404 error.
    My html codes and Servlet codes are inside the htmlform package...
    When i type http://localhost:8080/htmlform/form.html i am gettig 404 error... Also let me know if any thing is wrong with the codes...
    Here is my code...
    form.html
    <html>
    <head>
    <title> This is a HTML page </title>
    </head>
    <body>
    <p><h3>This page displays a submission form</h3></p>
    <form method="GET" action="/htmlform/LoginServlet">
    <p> USERNAME: <input type="text" name="username"/> </p>
    <p> PASSWORD: <input type="password" name="password" /> </p>
    <p> <input type="submit" value="Press Me" name="submit"/> </p>
    </form>
    </body>
    </html>
    LoginServlet.java
    package htmlform;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
         private static final long serialVersionUID = 1L;
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter pw = response.getWriter();
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    pw.println("<html><head><title>This is the out put page</title></head");
    pw.println("<body><h2>If you can see this page then your form is cleanly processed</h2><br>");
    pw.println("<h2>Congratulations!!!</h2>");
    pw.println("<p>Your user name is: "+ username+ "</p>");
    pw.println("<p>Your password is: "+ password + "</p>");
    pw.println("<br></body></html>");
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd"> -->
    <web-app>
    <servlet>
    <servlet-name>Login</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/login</url-pattern>
    </servlet-mapping>
    </web-app>
    Thanks in advance

    you might have other problems, but I think the action attribute in your HTML form is incorrect.
    You have:
    <form method="GET" action="/htmlform/LoginServlet">Your web.xml says:
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/login</url-pattern>
    </servlet-mapping>So I think you should change the action like this:
    <form method="GET" action="/htmlform/login">Your servlet's not in a package, and you might not be deploying it correctly (god forbid you added this to /ROOT), but try that first.
    %

Maybe you are looking for