File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat warnings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat warnings" Watch "Tomcat warnings" New topic
Author

Tomcat warnings

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Exalted Sir/Madam,

My tomcat is working fine but in log file am seeing three of the following warnings.

Aug 23, 2009 6:39:00 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Server/Service/Engine/Host/Logger'.

Aug 23, 2009 6:39:00 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.

Aug 23, 2009 6:39:00 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_14/jre/lib/i386/server:/usr/java/jdk1.6.0_14/jre/lib/i386:/usr/java/jdk1.6.0_14/jre/./lib/i386/usr/java/packages/lib/i386:/lib:/usr/lib


Please check my attached log file and help me to resolve them

Thanks & best regards
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

You can safely ignore all 3 of these messages. I think the first one is because you attempted to use an obsolete logging definition in server.xml and the second one probably refers to the same definition.

The third message is just a reminder that there's a binary accelerator available to improve Tomcat's performance. For most of us, it's not worth the trouble to set up the accelerator, however.


Customer surveys are for companies who didn't pay proper attention to begin with.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Tim Holloway wrote:you attempted to use an obsolete logging definition in server.xml and the second one probably refers to the same definition.


Thanks for your reply

I am not clear about that. Can you please be more specific.

Thanks again & best regards


My server.xml file
=============
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19



According to the message, that statement isn't valid directly under a <Host> directive.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Tim Holloway wrote:

According to the message, that statement isn't valid directly under a <Host> directive.


Great! One error "Aug 23, 2009 6:39:00 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Server/Service/Engine/Host/Logger'."
removed now these two of the following errors left:



Thanks from the bottom of my heart
Please advise me about these 2 errors
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

You can safely ignore these messages.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Tim Holloway wrote:You can safely ignore these messages.


I am trying to run neat and clean tomcat server. So please help me to remove even these warnings

thanks again & best regards
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

The first one should be coming from a <Context> element that has "debug="0"" coded on it. You should remove that.

The second one is only a warning in the sense that it's telling you that you could improve the performance of Tomcat by installing the binary support module. However, if you do that, it will require you to go to a lot of useless trouble and you may find that it causes other problems, including adding extra work to keep Tomcat maintained. Unless you absolutely require the extra performance, you shouldn't waste time on that. And if you do require that extra performance, chances are that you are already in trouble and need to do some tuning. Note also that the message says "in production environments". Test machines shouldn't be worrying about getting an extra 10% in performance.

In a perfect world, we'd be able to shut messages like that off. But this isn't a perfect world.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Thanks again from bottom of my heart

Best Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat warnings
 
Similar Threads
Servlet compile problem
HTTP Status 404 problem
Cannot get Struts 2 to Work
java.sql.SQLException: Io exception: Got minus one from a read call
org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed