Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TomCat refuse to execute init(), but WebLogic could!

 
Jes Sie
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear TomCat people,
I'm currently having a hard time to get TomCat 4.1.12 to execute my Servlet's public void init() or init(ServletConfig servletconfig) methods.
If the same war file is dumped to WebLogic 6.1, it works fine!
I'm merely trying to start a generic framework servlet which 'prepares' for the main application (running in Struts 1.1 beta2).
Here's the snippet of my web.xml for those who could help, thanks: -

Please help.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18163
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sitting in front of a Tomcat application that has a load-on-startup servlet with an init() in it. I've never had a problem, and this isn't the first or only such application I've done that way.
You might check your logs carefully to see if you have some WebLogic-specific code that's causing an exception to be thrown in the init() method.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18163
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yeah - the application I mentioned is running Struts, too!
 
Jes Sie
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS. My fault. I'm quite a newbie on TomCat. Yes, yes, everything is shown on the file log and not on the console log like WebLogic.
Any idea how to re-direct log into the console?
One other question, can anyone tell me how to deploy a war file into TomCat without having TomCat to auto explode it. The auto exploding is causing me to remove the directory every time I require I deploy an updated war file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic