[jbdevstudio-users] Dashboard HTTP status 404 /dashboard/j_security_check ERROR

jbdevstudio-users at lists.jboss.org jbdevstudio-users at lists.jboss.org
Mon Dec 22 02:55:32 EST 2014


Hi Alls,


I created a new role defined into WEB_INF/web.xml file.

but while I tried to logon the dashboard I was getting HTTP status 404 /dashboard/j_security_check.


Does anyone have any idea about this?

I described setting file.
-----------------------------------------------------------------
<1> teiid-security-roles.properties

# A roles.properties file for use with the UsersRolesLoginModule
# username=role1,role2
#user=odata,example-role

# Dashboard builder roles
#  edit mode: admin
#  read only: user
user=user
admin=admin
szuser=szuser



--------------------------------------------------------------------
<2> teiid-security-users.properties
# A users.properties file for use with the UsersRolesLoginModule
# username=password

#user=user
user=user
admin=admin
szuser=sZuser


--------------------------------------------------------------------
<3> WEB_INF/web.xml
<!--

    Copyright (C) 2012 JBoss Inc

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<web-app metadata-complete="false">

    <display-name>dashboard</display-name>
    <description>JBoss Dashboard-Builder Application</description>

    <!-- Security configuration -->

    <security-role>
        <description>Administrator</description>
        <role-name>admin</role-name>
    </security-role>

    <security-role>
        <description>End user</description>
        <role-name>user</role-name>
    </security-role>

    <security-role>
        <description>End user</description>
        <role-name>szuser</role-name>
    </security-role>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Free access</web-resource-name>
            <url-pattern>/redhat/*</url-pattern>
        </web-resource-collection>
    </security-constraint>

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Restricted access</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
            <role-name>user</role-name>
            <role-name>szuser</role-name>
        </auth-constraint>
    </security-constraint>

    <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
            <form-login-page>/login.jsp</form-login-page>
            <form-error-page>/login_failed.jsp</form-error-page>
        </form-login-config>
    </login-config>

    <error-page>
        <error-code>403</error-code>
        <location>/not_authorized.jsp</location>
    </error-page>

    <!-- Application main data source definition -->

    <resource-ref>
        <description>Dashboard Builder Datasource</description>
        <res-ref-name>jdbc/dashbuilder</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>

</web-app>
--------------------------------------------------------------

Posted by forums
Original post: https://developer.jboss.org/message/914319#914319



More information about the jbdevstudio-users mailing list