tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21419] - error on startup - java.lang.NoSuchMethodException: org.apache.catalina.core.StandardHost.getHost()
Date Wed, 09 Jul 2003 11:29:47 GMT
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()

tfohrer@t-online.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED



------- Additional Comments From tfohrer@t-online.de  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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message