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 2006/01/30 05:55:18 UTC
DO NOT REPLY [Bug 31339] - admin app throwing struts exceptions
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=31339>.
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=31339
------- Additional Comments From amilaSuriarachchi@gmail.com 2006-01-30 05:55 -------
Created an attachment (id=17533)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17533&action=view)
use the domain parameter instead of TomcatTreeBuilder.DEFAULT_DOMAIN
this bug is caused by the following method in
org.apache.webapp.admin.Lists.java class
The method is :
public static String getAdminAppService (MBeanServer mbserver, String domain,
HttpServletRequest
request)
throws Exception {
String adminDomain = TomcatTreeBuilder.DEFAULT_DOMAIN;
// Get the admin app's service name
StringBuffer sb = new StringBuffer(adminDomain);
sb.append(":type=Service,*");
ObjectName search = new ObjectName(sb.toString());
// other parts
return service;
}
as you can see it always uses the TomcatTreeBuilder.DEFAULT_DOMAIN to find the
service. but this value is hard coded as "Catalina"
so if someone rename the Engine name(defuaul Catalina) in server.xml it causes
this error.
some we have to use the domain paramenter as follows
StringBuffer sb = new StringBuffer(domain);
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org