Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2008, 06:47 AM
Member
 
Join Date: Jul 2008
Posts: 3
Namita Patil is on a distinguished road
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!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-02-2008, 08:13 AM
Eku Eku is offline
Senior Member
 
Join Date: May 2008
Location: Makati, Philippines
Posts: 199
Eku is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-02-2008, 09:38 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,475
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Yep, it's much better. And further improvements you can split the daily file depends on the size also.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-02-2008, 03:06 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SW MO, USA
Posts: 1,475
Norm is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-03-2008, 04:39 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,475
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
You mean that create empty files at the initial stages, without creating files from the application? I'm not clear waht you exactly say.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 07-03-2008, 02:59 PM
Member
 
Join Date: Jul 2008
Posts: 3
Namita Patil is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 07-03-2008, 03:04 PM
Member
 
Join Date: Jul 2008
Posts: 3
Namita Patil is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT +3. The time now is 05:23 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org