2 Replies Latest reply on Feb 7, 2011 3:56 PM by Darryl Baker

    The warning message stomp out.

    Darryl Baker Newbie

      I'm new to being a web admin. As a system admin I didn't like spurious messages in my logs and did what was needed to get rid of them.

       

      I've joined a company as a Unix/Web admin. They have beed using JBoss for several years. I find during the JBoss startup several warning messages on every installation they have. I know they are not causing functional problems but my version of OCD requires me to try to fix them.

       

      << Update no comments, not even an RFTM, which would be ok if you at least tell me which manual and about where>>

       

      Most of the deployed environments are 4.0.5 but we are in the process of moving the latest implementation of our software to 6.0. So I would like to set the configuration instruction for new environments such that these messages never occur. I have already fixed a simple log4j file issue and a Jakarta plugin issue. Now I'd like to fix some other message the first is this series:

       

      [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

      16:14:43,566 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/

      16:14:43,676 INFO  [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

      16:14:43,770 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp3718574988013474295jbossws-context-exp.war/

      16:14:43,879 INFO  [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

      16:14:44,035 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/

      16:14:44,113 INFO  [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

      16:14:45,145 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/

      16:14:45,363 INFO  [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

       

      Which I think should be fixable by defining a security role in server/myserver/deploy/jbossweb-tomcat55.sar/conf/web.xml but I don't understand how to do that well enough. I'm also not sure how to debug my attempts.

       

      The next error message is:

       

      [STDERR] The developer file [null] does not exist and will not be used.

       

      Obviously we are not using a developer file but what is it? What are the possible values? Where should it be set? Since we are not using it how do I set it to a value that does not break the applications yet has the eqivalent effect as now but without an error message.

        • 1. The warning message stomp out.
          jaikiran pai Master

          Darryl Baker wrote:

           

          Now I'd like to fix some other message the first is this series:

           

          [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

          16:14:43,566 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/

          16:14:43,676 INFO  [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

          16:14:43,770 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp3718574988013474295jbossws-context-exp.war/

          16:14:43,879 INFO  [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

          16:14:44,035 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/

          16:14:44,113 INFO  [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

          16:14:45,145 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/

          16:14:45,363 INFO  [ContextConfig] WARNING: Security role name nobody-has-this-role used in an <auth-constraint> without being defined in a <security-role>

           

          Which I think should be fixable by defining a security role in server/myserver/deploy/jbossweb-tomcat55.sar/conf/web.xml but I don't understand how to do that well enough. I'm also not sure how to debug my attempts.

           

          Looks like someone has changed the web.xml files of web-console, jbossmq-httpil.war, ROOT.war and others. What does one of those web.xml look like? You'll have to do the changes to each of those web.xml to fix the WARN message.

           

           

          Darryl Baker wrote:

           

          The next error message is:

           

          [STDERR] The developer file [null] does not exist and will not be used.

           

          Obviously we are not using a developer file but what is it? What are the possible values? Where should it be set? Since we are not using it how do I set it to a value that does not break the applications yet has the eqivalent effect as now but without an error message.

          This doesn't look like being logged by JBoss AS. It appears to be logged from the application deployed on that server. Do you see this error message on a clean installation, without any of your applications?

          • 2. The warning message stomp out.
            Darryl Baker Newbie

            Sorry about the delay in responding.

             

            Actually the nobody-has-this-role errors come out of a mostly unchanged setup. All the files you mentioned are unchanged. I know because I'm the one who does the changing. I expand the distribution. Edit for port bindings, jgroup multicasting, instance names, and log4j configuration. Here is my web.xml from deploy\jbossweb-tomcat55.sar\ROOT.war\WEB-INF anyway.

             

            <?xml version="1.0" encoding="ISO-8859-1"?>

             

            <!DOCTYPE web-app

                PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

                "http://java.sun.com/dtd/web-app_2_3.dtd">

             

            <web-app>

              <display-name>Welcome to JBoss</display-name>

              <description>

                 Welcome to JBoss

              </description>

              <servlet>

                <servlet-name>Status Servlet</servlet-name>

                <servlet-class>org.jboss.web.tomcat.tc5.StatusServlet</servlet-class>

              </servlet>

              <servlet-mapping>

                <servlet-name>Status Servlet</servlet-name>

                <url-pattern>/status</url-pattern>

              </servlet-mapping>

            </web-app>