This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat 7 shows the following warning. 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 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: 15960
    
  19

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: 15960
    
  19

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: 15960
    
  19


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

Fix It.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7 shows the following warning.
 
Similar Threads
Migration from tomcat 5.0 to 7.0.22
Tomcat warnings
SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown.
No rules found matching 'Server/Service/Engine/Host/Cluster/Membership'.
how to connect to database in java class and fetch the database table