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 [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to