DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21419>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21419 error on startup - java.lang.NoSuchMethodException: org.apache.catalina.core.StandardHost.getHost() [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED ------- Additional Comments From [EMAIL PROTECTED] 2003-07-09 11:29 ------- Same problem, here is a small patch from me. WORKS FOR ME Index: SetDocBaseRule.java =================================================================== RCS file: /home/cvspublic/jakarta-tomcat- catalina/catalina/src/share/org/apache/catalina/startup/SetDocBaseRule.java,v retrieving revision 1.1 diff -u -w -b -r1.1 SetDocBaseRule.java --- SetDocBaseRule.java 24 Jun 2003 22:37:05 -0000 1.1 +++ SetDocBaseRule.java 9 Jul 2003 11:24:21 -0000 @@ -118,8 +118,13 @@ Context child = (Context) digester.peek(0); Deployer parent = (Deployer) digester.peek(1); + Host host = null; + if (!( parent instanceof StandardHost )) { Method method = parent.getClass().getMethod("getHost", null); - Host host = (Host) method.invoke(parent, null); + host = (Host) method.invoke(parent, null); + } else + host = (Host)parent; + String appBase = host.getAppBase(); if (!(host instanceof StandardHost)) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]