Glassfish v3.01 I've got a filter declared in the default-web.xml. The class
for the filter is in a .jar file residing in the domains\domain1\lib
directory. The url-pattern for the filter is /* . When I attempt to access a
dynamic resource (dynamic web app or enterprise application) the filter works
correctly. When I attempt to access a static resource (say, an icon
referenced by a .jsp page that exists in the server's docroot) I get the
following: PWC1406: Servlet.service() for servlet default threw exception
java.lang.ClassNotFoundException: {my filter class name} at
org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1995)
at
org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:894)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1430)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:245)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
... What could be causing the ClassNotFoundException for a class in the
shared ..\lib folder?
--
[Message sent by forum member 'cafal']
View Post: http://forums.java.net/node/712432