小编98p*_*key的帖子

登录失败:javax.security.auth.login.FailedLoginException:密码不正确/需要密码

我遇到了身份验证和 JBoss AS 7.1.1.Final "Brontes" 和 JSF 2.0 的问题

jboss-web.xml

<jboss-web>
    <security-domain>testRealm</security-domain>
</jboss-web>
Run Code Online (Sandbox Code Playgroud)

网页.xml

<security-constraint>
        <display-name>login_web_displayname</display-name>
        <web-resource-collection>
            <web-resource-name>web_main</web-resource-name>
            <url-pattern>/web/*</url-pattern>
            <http-method>TRACE</http-method>
            <http-method>OPTIONS</http-method>
            <http-method>HEAD</http-method>
            <http-method>DELETE</http-method>
            <http-method>PUT</http-method>
            <http-method>POST</http-method>
            <http-method>GET</http-method>
        </web-resource-collection>
        <auth-constraint>
            <role-name>login_web</role-name>
        </auth-constraint>
    </security-constraint>
    <login-config>
        <auth-method>FORM</auth-method>
        <realm-name>testRealm</realm-name>
        <form-login-config>
            <form-login-page>/security/login.xhtml</form-login-page>
            <form-error-page>/security/loginerror.xhtml</form-error-page>
        </form-login-config>
    </login-config>
    <security-role>
        <role-name>login_web</role-name>
    </security-role>
Run Code Online (Sandbox Code Playgroud)

登录.xml

<h:form id="j_login">
        <p:panel style="width: 600px; margin: auto">
            <f:facet name="header">
                <h:outputLabel value="Authentifizierung" />
            </f:facet>
            <h:panelGrid columns="3">
                <h:column>
                    <h:outputLabel value="Benutzername:" for="username" />
                </h:column>
                <h:column>
                    <h:inputText size="30" id="username" required="true"
                        requiredMessage="Bitte Benutzernamen eingeben!"
                        value="#{webBean.username}" />
                </h:column>
                <h:column>
                    <h:message for="username" style="FONT-SIZE: small;" …
Run Code Online (Sandbox Code Playgroud)

jboss password-protection jaas jsf-2

3
推荐指数
1
解决办法
7300
查看次数

在没有JDK的情况下在JRE 6(Windows)上堆转储

有没有办法在没有安装JDK的远程计算机上创建堆转储?

我无法更改安装/设置,它在Windows上运行.所以我可以访问命令行工具.

问题是远程计算机上的Java应用程序冻结(没有内存不足因此-XX:-HeapDumpOnOutOfMemoryError无效)我们需要创建转储.

-XX:+HeapDumpOnCtrlBreak 
Run Code Online (Sandbox Code Playgroud)

也没有选择,因为它不再支持JDK6 +.

出于安全原因,不允许使用JMX.

有任何想法吗?谢谢您的帮助!

编辑:

  • 视窗
  • 没有JDK
  • 没有JMX

java heap memory-leaks dump

3
推荐指数
1
解决办法
2185
查看次数

标签 统计

dump ×1

heap ×1

jaas ×1

java ×1

jboss ×1

jsf-2 ×1

memory-leaks ×1

password-protection ×1