Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000168 [Resin] minor always 05-13-05 00:00 11-30-05 14:44
Reporter camelcai View Status public  
Assigned To
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.14 Product Version 3.0.12
  Product Build 3.0.12
Summary 0000168: misleading error message when filter class refers to a class not found
Description RSN-168
When a filter class is referring to another class that cannot be found in CLASSPATH, Resin will complain that the filter class does not have a default constructor with an error message like this:

"[22:45:36.619] com.caucho.config.LineConfigException: WEB-INF/web.xml:108: com.caucho.util.RegistryException: must have a public zero-arg constructor."

When I insert a printStackTrace in this block:
    try {
      zero = cl.getConstructor(new Class[0]);
      System.out.println ("Constr: " + zero);
    } catch (Throwable e) {

We can see the real reason is class not found, from the stack:

java.lang.NoClassDefFoundError: org/apache/regexp/RESyntaxException
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(
        at java.lang.Class.getConstructor0(
        at java.lang.Class.getConstructor(
        at com.caucho.util.BeanUtil.validateClass(
        at com.caucho.server.dispatch.FilterConfigImpl.setFilterClass(
Steps To Reproduce
Additional Information Any
Attached Files

- Relationships

- Notes
05-13-05 00:00


- Issue History
Date Modified Username Field Change
05-13-05 00:00 camelcai New Issue
11-30-05 00:00 administrator Fixed in Version  => 3.0.14
11-30-05 14:44 ferg Status resolved => closed

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker