• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I verify the ocurrence of <load-on-startup> Servlet? (TOMCAT)

 
pedro abs
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I verify the ocurrence of <load-on-startup> Servlet?
Which log "<tomcat installation>/log" I have to search for verify that some servlet configured with <load-on-startup>1</load-on-startup> has been loaded?
 
Yogendra Joshi
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pedro abs wrote:How can I verify the ocurrence of <load-on-startup> Servlet?
Which log "<tomcat installation>/log" I have to search for verify that some servlet configured with <load-on-startup>1</load-on-startup> has been loaded?


Why do you need to know that? Just incase you are still curious to know, then you can use ServletContext.log inside your servlet code and you can check the servlet loaded on the server startup.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends upon how you have logging set up. Generally, logs get written to catalina.out.
 
pedro abs
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thank you very much !!! I put ServletContex.log("...") in the init() method and I can see it !
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic