On Thu, 27 Mar 2003, Micael wrote:
> Date: Thu, 27 Mar 2003 18:54:37 -0800 > From: Micael <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Struts 1.1 and PlugIn Interface: Has anyone used it > successfully? > > > I am getting the following difficulty loading a class that implements the > PlugIn interface. I have property implement the interface (it compiles) > and I have added the equivalent of the following to the struts-config.xml: > <plug-in className="com.mySite.MyClass"/> > Anyone know what I am doing wrong? > The struts-example app successfully uses a PlugIn. > 2003-03-27 13:34:29 StandardWrapper[/mySite:action]: Marking servlet action > as unavailable > 2003-03-27 13:34:29 StandardContext[/michaelmcgrady]: Servlet /mySite threw > load() exception > javax.servlet.UnavailableException > at > org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java:997) > at org.apache.struts.action.ActionServlet.init(ActionServlet.java:458) > at javax.servlet.GenericServlet.init(GenericServlet.java:256) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) > ................... > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > It looks like the init() method of your PlugIn threw an exception. Buried in the "....." of your stack trace, look for a line that talks about the "root cause" -- that is the underlying exception that is causing the problem. Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

