Does it matter if I create my WAR file from WSAD environment? My plugin class just queries the database for a set of results and cache them. Nothing complex. Atleast if I fail going to the database I should see my log statements in the log files. Right? See my plugin config code in my struts-config.xml and my actual Plug-in class code below. I am not sure if I am doing anything wrong here. I also have plugins for ValidatorPlugin and TilesPlugin which work fine.
Plug in class code: public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { log.info("Initializing state information from persistent data store"); // Remember our associated configuration and servlet this.config = config; this.servlet = servlet; // get state information Collection stateList = RegistrationServices.getStateList(); // Make the initialized state list available servlet.getServletContext().setAttribute( RegistrationConstants.STATE_KEY, stateList); // Put member registration into cache framework during bootstrapping for fast retrieval log.info("Getting registration information from persistent data store and putting it into Cache Framework"); RegistrationServices.putRegistrationIntoCache(); } struts-config.xml <plug-in className="org.acaosa.registration.web.plugin.RegistrationPlugIn"> </plug-in> Gnan -----Original Message----- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Friday, August 12, 2005 12:01 PM To: user@struts.apache.org Subject: Re: Struts Plug-in on Tomcat Shabada, Gnaneshwer wrote: > Is there any chance that Struts Plug-in class wouldn't work on Tomcat 5.5.9 > server? I have a web application where I wrote a Plugin to cache my results > prior to the page display. I want to run this plug-in during server startup. > I configured my struts-config.xml accordingly. Apparently, the same code > works on Websphere App sever but not on Tomcat. I cannot see my trace > statements in the log files? Any help is appreciated. How is it not working? Struts should load plugins exactly the same regardless of the container used, so if your plugin is sensitive to the deployment environment it's probably due to something the plugin is doing... (or a difference in configuration between deployments of course). L. -- Laurie Harper Open Source advocate, Java geek: http://www.holoweb.net/laurie Founder, Zotech Software: http://www.zotechsoftware.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ======================================================================== This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, send an email to [EMAIL PROTECTED] Toys "R" Us, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]