Commit 841de0ecf38ff1791e5df013d7b3a7efb992cc9c
1 parent
99f90f9d
Exists in
master
Correção do erro das mensagens
Showing
3 changed files
with
12 additions
and
4 deletions
Show diff stats
impl/extension/servlet/src/main/java/br/gov/frameworkdemoiselle/security/ServletAuthenticator.java
| ... | ... | @@ -70,7 +70,7 @@ public class ServletAuthenticator implements Authenticator { |
| 70 | 70 | result = true; |
| 71 | 71 | |
| 72 | 72 | } catch (ServletException cause) { |
| 73 | - getLogger().debug(getBundle().getString(cause.getLocalizedMessage())); | |
| 73 | + getLogger().debug(getBundle().getString("authentication-failed") + cause.getLocalizedMessage()); | |
| 74 | 74 | |
| 75 | 75 | result = false; |
| 76 | 76 | } | ... | ... |
impl/extension/servlet/src/main/resources/META-INF/web-fragment.xml
| ... | ... | @@ -35,7 +35,10 @@ |
| 35 | 35 | 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. |
| 36 | 36 | --> |
| 37 | 37 | <web-fragment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" |
| 38 | - xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd" version="3.0"> | |
| 38 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd" version="3.0" | |
| 39 | + id="demoiselle-servlet"> | |
| 40 | + | |
| 41 | + <name>demoiselle_servlet</name> | |
| 39 | 42 | |
| 40 | 43 | <listener> |
| 41 | 44 | <listener-class>br.gov.frameworkdemoiselle.util.ServletListener</listener-class> |
| ... | ... | @@ -50,4 +53,9 @@ |
| 50 | 53 | <url-pattern>/*</url-pattern> |
| 51 | 54 | </filter-mapping> |
| 52 | 55 | |
| 56 | + <ordering> | |
| 57 | + <before> | |
| 58 | + <others /> | |
| 59 | + </before> | |
| 60 | + </ordering> | |
| 53 | 61 | </web-fragment> | ... | ... |
impl/extension/servlet/src/main/resources/demoiselle-servlet-bundle.properties
| ... | ... | @@ -33,5 +33,5 @@ |
| 33 | 33 | # ou escreva para a Fundação do Software Livre (FSF) Inc., |
| 34 | 34 | # 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. |
| 35 | 35 | |
| 36 | -has-permission-not-supported=N\u00E3o \u00E9 poss\u00EDvel utilizar @{0}, pois esta funcionalidade n\u00E3o \u00E9 suportada pelo JAAS | |
| 37 | -authentication-failed=Falha na autentica\u00E7\u00E3o. | |
| 36 | +has-permission-not-supported=N\u00E3o \u00E9 poss\u00EDvel utilizar @{0}, pois esta funcionalidade n\u00E3o \u00E9 suportada pelo JAAS. | |
| 37 | +authentication-failed=Falha na autentica\u00E7\u00E3o \: | ... | ... |