jsp - Using SSL with an application deployed on IBM-WASCE -


I have an application that uses JSP and servlet and deployed on IBM Vess 2.1 I want to That application should use SSL for login purposes. Based on the documentation, I web.xml

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Web-app xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: web = "http: //java.sun.com/xml/ns/javaee/web-app_2_5.xsd "xsi: Schema Location =" http://java.sun.com/xml/ns/javaee http: //java.sun Com / Xml / ns / javaee / web-app_2_5.xsd "id =" WebApp_ID "version =" 2.5 "& gt; & Lt ;! - General servlet mapping code - & gt; & Lt; Security-lock & gt; & Lt; Web resource collection & gt; & Lt; Web resource name & gt; Login & lt; / Web resource name & gt; & Lt; URL pattern & gt; /login.jsp< / Url pattern & gt; & Lt; Http-method & gt; Received & lt; / Http-method & gt; & Lt; Http-method & gt; Post & lt; / Http-method & gt; & Lt; / Web resource collection & gt; & Lt; User data-barrier & gt; & Lt; Transportation Guarantee & gt; Confidential & lt; / Transportation Guarantee & gt; & Lt; / User data-barrier & gt; & Lt; / Safety-barrier & gt;  

However, I get an error which states,

default for web.xml web app / foo / 1.0 / Car safety element, but the Zeroino deployment plan has not been provided or accordingly it does not include the necessary elements to configure security.

How to proceed from here? geronimo-web.xml ?

[resolve]]

The following changes are made by Garonimo-Web. Had to be done in the xml file.

  & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Web-app xmlns = "http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns: name = "http://geronimo.apache.org/xml/ns/naming-1.1" Xmlns : Sec = "http://geronimo.apache.org/xml/ns/security-1.1" xmlns: sys = "http://geronimo.apache.org/xml/ns/deployment-1.1" & gt; & Lt; Sys: Environment & gt; & Lt; Sys: moduleId> ... & lt ;! - Original content - & gt; ... & lt; / Sys: ModuleID & gt; & Lt; / Sys: Environment & gt; & Lt; Context root & gt; / Foo & lt; / Reference root & gt; & Lt; Security-Scope-name & gt; Geronimo-admin & lt; / Security-scope-name & gt; & Lt; Security & gt; & Lt; Default-Principal & gt; & Lt; Key name = "anonymous" class = "org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" /> & Lt; / Default-Principal & gt; & Lt; Role Mapping & gt; & Lt; Role role-name = "admin" & gt; & Lt; Key name = "administrator" named-run-like = "true" class = "org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" /> & Lt; Key name = "root" category = "org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" /> & Lt; / Role & gt; & Lt; / Role Mapping & gt; & Lt; / Safety & gt; & Lt; / Web application & gt;  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -