You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joe Germuska <Jo...@Germuska.com> on 2004/09/13 14:43:59 UTC
Re: PlugIn/ ActionServlet init() method called 2 times in Linux
>Can anyone pl suggest ways to initialize a struts webapp other than
>plugIn and extended ActionServlet.
If you are using Servlet 2.3 or newer, you could use a ServletContextListener
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html
Although from what you describe, I would thing that the real problem
is that Tomcat is initializing the servlet twice, which means that
even the ServletContextListeners might get initialized twice.
I would double-check your assumption that the difference is
platform-specific; perhaps it's more a difference in how the two
different Tomcat installations are configured? If that's not the
case, then the only other difference between Tomcat on Windows and
Tomcat on Linux is the manner in which Tomcat is actually started up.
Hope this helps,
Joe
--
Joe Germuska
Joe@Germuska.com
http://blog.germuska.com
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn
back; I'll know I'm in the wrong place."
- Carlos Santana
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org