• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 7 shows the following warning.

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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


Fix It.
 
Greenhorn
Posts: 2
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic