I have a Java web project which can't find the filter classes, I get this error:
java.lang.ClassNotFoundException: AuthFilter
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:166)
at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:154)
at ____bootstrap.Deployer.setFilters(Deployer.java:277)
at ____bootstrap.Deployer.deploy(Deployer.java:336)
at ____bootstrap.Deployer.deployExpandedWar(Deployer.java:410)
at ____bootstrap.Deployer.deployApplication(Deployer.java:405)
at ____bootstrap.Deployer.deployApplications(Deployer.java:107)
at ____bootstrap.Deployer.start(Deployer.java:203)
at ____bootstrap.____Bootstrap._start(____Bootstrap.java:38)
at ____bootstrap.____Bootstrap.start(____Bootstrap.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ____embedded.____EntryPoint.invoke(____EntryPoint.java:273)
at ____embedded.____EntryPoint.main(____EntryPoint.java:96)
The filters are in the classes
dir:
My web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>ApexMod</display-name>
<context-param>
<param-name>version</param-name>
<param-value>1.1.4.195.00.12</param-value>
</context-param>
<listener>
<listener-class>oracle.dbtools.rt.web.SCListener</listener-class>
</listener>
<filter>
<filter-name>AuthFilter</filter-name>
<filter-class>AuthFilter</filter-class>
<init-param>
<param-name>debug-mode</param-name>
<param-value>true</param-value>
</init-param>
I tried changing the class to classes.AuthFilter
and WEB-INF.classes.AuthFilter
Is this the correct directory to put the filters?