Results 1 to 7 of 7
  1. #1
    Namita Patil is offline Member
    Join Date
    Jul 2008
    Posts
    3
    Rep Power
    0

    Default Loading resources generates warning messages

    Application uses a number of resources stored in multiple .properties files. These files are on the server machine and accessed by the Java client applet using Apache WebServer.

    When any such resource file loads on the client, a number of warning messages are getting logged by Apache. So, for example, if the Java client applet is loading login.properties, Apache log would show:

    File does not exist: /data/apache/htdocs/xaqpsprd/login.class


    File does not exist: /data/apache/htdocs/xaqpsprd/login_en.class


    File does not exist: /data/apache/htdocs/xaqpsprd/login_en.properties


    File does not exist: /data/apache/htdocs/xaqpsprd/login_en_US.class


    File does not exist: /data/apache/htdocs/xaqpsprd/login_en_US.properties



    The application otherwise functions correct. Because of the volume of these warnings generated, they crowd out the real useful message in the Apache log file. So users are complaining and asking us to suppress them.

    I am looking for a way to suppress these warnings and prevent them from showing in the Apache log.


    Any suggestions?

    Thanks!

  2. #2
    Eku
    Eku is offline Senior Member
    Join Date
    May 2008
    Location
    Makati, Philippines
    Posts
    234
    Rep Power
    7

    Default

    why not try separating the Apache Log and create a warning log and the Filename is on a Daily Basis. Like for example:

    July012008WarningLog.txt
    July022008WarningLog.txt
    July032008WarningLog.txt
    Mind only knows what lies near the heart, it alone sees the depth of the soul.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Yep, it's much better. And further improvements you can split the daily file depends on the size also.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default

    Another Q&D approach is to create dummy/empty files that would satisfy whoever/whatever is looking for them and not finding them. If there are only the 5 you show, that should be straight forward.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    You mean that create empty files at the initial stages, without creating files from the application? I'm not clear waht you exactly say.

  6. #6
    Namita Patil is offline Member
    Join Date
    Jul 2008
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by Eku View Post
    why not try separating the Apache Log and create a warning log and the Filename is on a Daily Basis. Like for example:

    July012008WarningLog.txt
    July022008WarningLog.txt
    July032008WarningLog.txt
    Can you please let me know, how I will do that as I do not have any idea about when and from where the error messages are coming?

  7. #7
    Namita Patil is offline Member
    Join Date
    Jul 2008
    Posts
    3
    Rep Power
    0

    Default

    I tried to create the dummy empty files but that are going to be present with my files. So again it is a problem when I want to debug.

    I was thinking for the other option to put in directory. But no idea how to force Apache to look into that directory?

Similar Threads

  1. WARNING NetBeans HTTP Monitor
    By bbq in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 09-19-2008, 07:02 PM
  2. Problem loading resources.
    By jimm1 in forum Advanced Java
    Replies: 6
    Last Post: 06-23-2008, 08:31 PM
  3. [SOLVED] An annoying warning everytime I compile
    By Leprechaun in forum New To Java
    Replies: 8
    Last Post: 04-23-2008, 09:11 AM
  4. Generates random maths questions
    By cachi in forum New To Java
    Replies: 4
    Last Post: 08-01-2007, 05:48 AM
  5. warning: page has expired
    By Peter in forum Web Frameworks
    Replies: 2
    Last Post: 07-04-2007, 08:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •