You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/07/22 21:39:07 UTC

DO NOT REPLY [Bug 30149] - IllegalArgumentException when using context-param in web.xml

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30149>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30149

IllegalArgumentException when using context-param in web.xml





------- Additional Comments From cheng.fang@sun.com  2004-07-22 19:39 -------
I traced the problem to CallMethodRule class, where callMethodN was invoked 
twice.  With the following change, Tomcat works fine with context-param.  I 
also tested this change with jsp tck.  I will appreciate it if someone could 
review and apply it.

Index: CallMethodRule.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-
connectors/util/java/org/apache/tomcat/util/digester/CallMethodRule.java,v
retrieving revision 1.1
diff -u -r1.1 CallMethodRule.java
--- CallMethodRule.java 26 Jun 2004 17:41:30 -0000      1.1
+++ CallMethodRule.java 22 Jul 2004 19:24:05 -0000
@@ -572,7 +572,6 @@
             sb.append(")");
             digester.log.debug(sb.toString());
         }
-        IntrospectionUtils.callMethodN(target, methodName, paramValues, 
paramTypes);
         Object result = IntrospectionUtils.callMethodN(target, methodName,
                 paramValues, paramTypes);
         processMethodCallResult(result);

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org