Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 28058
198
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
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
Posts: 28058
198
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
Oh yeah - the application I mentioned is running Struts, too!
 
Jes Sie
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic