Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Tomcat and the fly likes Tomcat 7 shows the following warning. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Tomcat 7 shows the following warning." Watch "Tomcat 7 shows the following warning." New topic
Author

Tomcat 7 shows the following warning.

Issac Koshy
Greenhorn

Joined: Jun 24, 2009
Posts: 4
Tomcat 7 shows the following warnings.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Context/Realm} Setting property 'debug' to '0' did not find a matching property.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Context/Manager} Setting property 'classname' to 'org.apache.catalina.session.StandardManager' did not find a matching property.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/name'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/value'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/name'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/value'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/name'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/value'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/name'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/value'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/name'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter/value'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams/parameter'.
Sep 14, 2012 12:30:34 AM org.apache.tomcat.util.digester.Digester endElement
WARNING: No rules found matching 'Context/ResourceParams'.


How do i ensure that these warnings messages are not shown in the log file. is there any way to suppress only these messages. any reasons for such occuarnces.
Issac Koshy
Greenhorn

Joined: Jun 24, 2009
Posts: 4
This warning "WARNING: [SetPropertiesRule]{Context/Manager} Setting property 'classname' to 'org.apache.catalina.session.StandardManager' did not find a matching property." how do we ensure that it does not show up in the log file.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14480
    
    7

You need to go back and look at the Tomcat7 documentation for the Context element. According to the Digester, what you have coded isn't even close to what is required. I think some stuff got moved around somewhere back at Tomcat 5, give or take.


Customer surveys are for companies who didn't pay proper attention to begin with.
Issac Koshy
Greenhorn

Joined: Jun 24, 2009
Posts: 4
if at all i want to suppress the warnings for digestor - what should i do ? i tried setting the logger to severe but does not have any effect.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14480
    
    7

Those warnings are telling you that you've got something screwed up and need to fix it. Hiding the warnings in order to make them go away is very dangerous.
Issac Koshy
Greenhorn

Joined: Jun 24, 2009
Posts: 4
Hi Tim
I understand that hiding the warning is dangerous , however the current requirement for me is to hide the warning message in stdout file. is there any way that i can do so .
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14480
    
    7


Those warnings are telling you that you've got something screwed up.

Fix It.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Tomcat 7 shows the following warning.
 
Similar Threads
No rules found matching 'Server/Service/Engine/Host/Cluster/Membership'.
Migration from tomcat 5.0 to 7.0.22
how to connect to database in java class and fetch the database table
Tomcat warnings
SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown.