6 Replies Latest reply on Sep 14, 2005 2:32 AM by vikas bhasin

    Deploying web application war file on JBoss App Svr

    Rakesh Arora Newbie

      I'm trying to integrate our web application with JBoss Portal Server and app server 4.0.2. I deployed our web application war file on JBoss App Server's deploy folder. When I try to access our web application, it asks me to provide login credentials. I tried using admin/admin combination but it doesn't seem to work, causing "HTTP Status 401 Error - This request requires HTTP authentication ().". Any idea what credentials to use? I used the default options when installing the JBoss AS and am using Windows 2005 professional platform. Thanks in advance

        • 1. Re: Deploying web application war file on JBoss App Svr
          Eduardo Elgueta Newbie

          Probably you enabled security at installation time. Try again, choose custom installation and make sure you don't enable security.

          • 2. Re: Deploying web application war file on JBoss App Svr
            Rakesh Arora Newbie

            Thanks. Actually, when installing the JBoss app server, all you need to do is to unzip and extract the install files, so didn't have to change any user id/pwd. Not sure why it's not accepting the default admin/admin credentials - any one? Thanks

            • 3. Re: Deploying web application war file on JBoss App Svr
              Darran Lofthouse Master

              Is your application running within JBoss portal or is it an application running on its own?

              Not sure why it's not accepting the default admin/admin credentials


              Where have you got these defaults from? By default the app server is unsecured so wouldn't have defaults.

              Have you checked to see if you already have anything installed an listening on port 8080 instead, double check the file {jboss.home}/server/default/log/server.log for any exceptions during start up. (Ignore any exceptions logged as DEBUG).

              • 4. Re: Deploying web application war file on JBoss App Svr
                vlokesh Newbie

                Can you check your login-config.xml under /server/default/conf folder? You application might be referring to the default login configuration used by the security domain that doesnt have any application-policy mentioned.

                *************************************************************
                <!-- The default login configuration used by any security domain that
                does not have a application-policy entry with a matching name
                -->
                <application-policy name = "other">
                <!-- A simple server login module, which can be used when the number
                of users is relatively small. It uses two properties files:
                users.properties, which holds users (key) and their password (value).
                roles.properties, which holds users (key) and a comma-separated list of
                their roles (value).
                The unauthenticatedIdentity property defines the name of the principal
                that will be used when a null username and password are presented as is
                the case for an unuathenticated web client or MDB. If you want to
                allow such users to be authenticated add the property, e.g.,
                unauthenticatedIdentity="nobody"
                -->

                <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
                flag = "required" />

                </application-policy>
                *************************************************************

                Create users.properties and roles.properties under conf folder and feed with some user data and check it.

                Regards.

                Lokesh.

                • 5. Re: Deploying web application war file on JBoss App Svr
                  Ivelin Ivanov Expert

                  darranl,

                  Can you please email me offline, I would like to chat with you. The email provided in the forums (darran at dalnet.plus.net) bounces back.

                  Sorry for the OT.

                  • 6. Re: Deploying ssl on JBoss 3.2.3 App Svr
                    vikas bhasin Newbie

                    I am getting problem on deploying ssl on jboss 3.2.3. i have register the cerificate of ssl.keystore and also open the connection port for https in jboss-service.xml but the https is not working so if u know the way to solve the problem please help me for the same.

                    thanks
                    vikas