Hi, Ole
In this case I just recompiling the filter and copying it over the the classes
folder of the webapp. It's definitely there.
Once again, just to be sure.
The compiler creates two files, TestFilter.class and
TestFilter$1.class. Do you copy both of them? You wrote it, not
they.
Konstantin,
Man - you are so right. Thanks for hanging in there. I should have looked at the target/classes directory and the log a little closer :-).
Thanks again,
- Ole
Once again, just to be sure.
The compiler creates two files, TestFilter.class and
TestFilter$1.class. Do you copy
Well, I was certain it had to be the difference in the JDKs causing it, but
after compiling the filter with the Sun JDK, the same exception is still
present. The localhost log has this:
SEVERE: Exception starting filter testFilter
java.lang.NoClassDefFoundError: test/filter/TestFilter$1
I managed to narrow it down a little further. The same exception appears if
the HttpServletRequestWrapper instance is defined like this:
HttpServletRequestWrapper wrapper =
new HttpServletRequestWrapper((HttpServletRequest)servletRequest)
{
public String
How do you package and deploy your application?
If you are seeing
java.lang.NoClassDefFoundError: test/filter/TestFilter$1
please check, that the class file TestFilter$1.class is present in
your app's WEB-INF/classes/test/filter/ directory on the web server.
still present. The localhost log
Hi Konstantin,
In this case I just recompiling the filter and copying it over the the classes
folder of the webapp. It's definitely there. If I compile and copy with a
statement like this in the filter:
HttpServletRequestWrapper wrapper = new