Re: RealmBase Digest Method
Yes Rob, All you need to do is drop the catalina.jar into: /your_webapps/WEB-INF/lib and in your web application: import org.apache.catalina.realm.RealmBase encryptedPassword = RealmBase.Digest(clear_passwd, MD5); Hope this is what you looking for, Thai Nguyen I have used this method from the command-line to create encrypted passwords for use in a JDBCRealm protected web application. I would like add the ability to create new users on the fly using this same web application while continuing to use the Digest method to create these encrypted passwords. Since this class exists in catalina.jar which is hidden from web applications, is there a better practice for creating these passwords? Or is there a good way to include catalina.jar in the classpath and make it available to web applications? Rob Abernethy Dynamic Edge, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Un-authorized page 403
Hi there, I search the archive and found that if I put these lines: error-page error-code403/error-code location/to-a-correct-path/unauthorized.jsp/location /error-page into /path/to/jakarta/webapps/myapps/WEB-INF/web.xml it will overwrite the Ugly default error page. Yes, it works. However, I found this error in my catalina.out log file: SEVERE: Parse Error at line 72 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*). The error only occurs once (when restart tomcat) but it's still an error. Anyone know how to fix this error? Thanks in advance Thai Nguyen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Un-authorized page 403
Thanks so much Shapira, The element I added in is error-page. This element does not exist in the element's list from the error message. I guess my question now is how do I add that element. Thanks, Thai Nguyen Howdy, SEVERE: Parse Error at line 72 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- entry*,ejb-ref*,ejb-local-ref*). The error only occurs once (when restart tomcat) but it's still an error. Anyone know how to fix this error? Not only is it still an error, but a very significant error at that. That's why it's a SEVERE-level message ;) You need to edit your web.xml so that its elements are in the order specified in the error message above. If you think your web.xml is correct, validate it with a tool like XMLSpy or simply post it (all of it) here. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]