Hello,
J'ai crée une servlet accéssible via authentification par FORM.
j'ai par la suite déclaré la confidentialité de type CONFIDENTIAL
En demandant la requête http://localhost:8080/Ex/hello<security-constraint>
<web-resource-collection>
<web-resource-name>index</web-resource-name>
<url-pattern>/hello.do</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>guest</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/loginPage.html</form-login-page>
<form-error-page>/loginError.html</form-error-page>
</form-login-config>
</login-config>
je suis bien redirigé vers https://localhost:8443/Ex/hello sauf que cette requête est ignoré par tomcat.
après un coup d'oeil sur le fichier server.xml, j'ai activé le bloque suivant:
Mais là, j'ai le serveur qui démarre plus et qui donne l'erreur:<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
Merci pour votre collaboration.RAVE: Failed to load keystore type JKS with path C:\Documents and Settings/.keystore due to C:\Documents and Settings\kraouine\.keystore (Le fichier spécifié est introuvable)
java.io.FileNotFoundException: C:\Documents and Settings\.keystore (Le fichier spécifié est introuvable)
Partager