• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 7 shows the following warning.

 
Issac Koshy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Issac Koshy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Fix It.
 
bradley lee
Greenhorn
Posts: 2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See http://stackoverflow.com/questions/11829348/warnings-and-errors-at-tomcat-6-startup:
<Resource> elements no longer take sub-elements called <parameter>, etc. Instead, convert all your parameters to attributes of the <Resource> element.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic