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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>