Thanks, I will give it a shot, although we don't have UI and no JSP files. This application serves as sort of background mail server I can't send you the relevant code, but here is the relevant piece of code
*listener class:* public class ComServerConfigListener implements ServletContextListener { public void contextInitialized(ServletContextEvent arg0) { String path = "..." initLog4j(path); initNetworkLayer(path); // eventually calling the getFileList method } } *HandleFiles class* public static File[] getFileList(File dir, final String extension) { if(!dir.isDirectory()) return new File[] { }; return dir.listFiles(new FileFilter() { public boolean accept(File arg0) { return arg0.getName().endsWith(extension); } }); } *web.xml* * <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>CommunicationServer</display-name> <!-- servlets definitions --> <listener> <listener-class>com.nextnine.web.ComServerConfigListener</listener-class> </listener> <context-param> <param-name>cs-root</param-name> <param-value>Q:/CommunicationServer</param-value> </context-param> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app> * On Wed, Jul 7, 2010 at 3:51 PM, Mark Thomas <ma...@apache.org> wrote: > On 07/07/2010 13:22, daniel polonsky wrote: > > The same deployment runs OK on other machines and in development, while > on > > server 2008 i am getting this error. > > java.lang.NoClassDefFoundError is thrown when creating a > java.io.FileFilter > > instance which is part of JDK and we do have a JDK 1.5 installed > > > > On Wed, Jul 7, 2010 at 1:59 PM, Mark Thomas <ma...@apache.org> wrote: > > > >> On 07/07/2010 10:44, daniel polonsky wrote: > >>> and here is the localhost log > >>> > >>> Jul 7, 2010 11:57:33 AM org.apache.catalina.core.StandardContext > >>> listenerStart > >>> SEVERE: Exception sending context initialized event to listener > instance > >> of > >>> class com.nextnine.web.ComServerConfigListener > >>> java.lang.NoClassDefFoundError: tool/HandleFiles$2 > > I sometimes seen root causes get swallowed in this type of situation > (although usually with a security manager). > > I'd suggest disabling the listener and then placing the failing code in > a JSP (so you can edit the code and re-test easily) and see if you can > track down the real root cause. Also, if you can provide the source for > a JSP that fails (and probably HandleFile.java as well) someone here may > be able to spot the issues. > > Mark > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >