Why are you tying to initialize Turbine in this way? You can just use the Turbine servlet. It will handle its own initialization.
> -----Original Message----- > From: Juan Jos� Vel�zquez Garcia [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 05, 2003 12:38 PM > To: [EMAIL PROTECTED] > Subject: Tomcat/Sun ONE Studio > > > Hello, > > I'm trying to use Turbine with Tomcat/Sun ONE Studio and I'm > getting an error when Turbine tries to load > the "TurbineResources.properties" file. > > The init servlet code is as follows: > > public class TurbineInit extends HttpServlet { > > /** Initializes the servlet. > */ > public void init(ServletConfig config) throws ServletException { > super.init(config); > String prefix = getServletContext().getRealPath("/"); > String dir = getInitParameter("turbine-resource-directory"); > TurbineConfig tc = new TurbineConfig(dir, > "TurbineResources.properties"); > tc.init(); > > } > ... > } > > The web.xml > > ... > <servlet> > <servlet-name>TurbineInit</servlet-name> > <servlet-class>br.com.usg.erp.services.TurbineInit</servlet-class> > <init-param> > <param-name>turbine-resource-directory</param-name> > <param-value>C:/source/bfg</param-value> > </init-param> > <load-on-startup>1</load-on-startup> > </servlet> > ... > > The application is within C:/source/bfg directory and the > properties file is at > C:/source/bfg/TurbineResources.properties. > > I'm getting the following error: > javax.servlet.ServletException: Servlet.init() for servlet > TurbineInit threw exception ... > > java.lang.NoClassDefFoundError: > org/apache/stratum/lifecycle/Initializable > ... > > > > Thanks in advance, > > +----------------------------------------+ > Juan Jose Velazquez Garcia > Information System Developer > www.htmlspider.com.br > +----------------------------------------+ > > > -- > To unsubscribe, e-mail: > <mailto:turbine-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
