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=37588>. 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=37588 Summary: Creating JNDIRealm through JMX is not correct. Product: Tomcat 5 Version: 5.5.12 Platform: Other OS/Version: other Status: NEW Severity: major Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] This is the bug from http://marc.theaimsgroup.com/?l=tomcat-dev&m=113264006531391&w=2 the user group can't contain a attachment,so I fire this bug to attach the patch.Bellow is the bug description I pasted here. >>>>>>>>>>>> Regarding this mail, http://marc.theaimsgroup.com/?l=tomcat-user&m=113035775420898&w=2 I have tested both tomcat admin app and MBean createJNDIRealm can't create a realm successfully with Tomcat5.5.12. I have checked some code and found a bug in creating an JNDIRealm. The signature of createJNDIRealm in MBeanFactory.java is not enough, it only has one parameter called parent, if we want to create an JNDIRealm through JMX, we need another three parameters, they are ConnectionURL,ConnectionName,ConnectionPassword.If we provide this information, the JNDIRealm can be initialized correctly,so you can set other attribute to the realm. Attachments are the patches for admin webapp and the MBeanFactory modification with tc5.5.x, I have tested it, and it can work now, Another improvement is I add createJAASRealm in MBeanFactory for tomcat source code didn't contain creating JAASRealm JMX API,so I add it, it can work too. The above problem I haven't fire a bug in bugzilla, if it's necessary, I can do it. Thanks. Terry Zhou -- 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]