3 Replies Latest reply on Jan 12, 2007 8:52 AM by zlatko josic

    Jboss 5.0.0beta1 messaging problem

    zlatko josic Newbie


      I use Jboss5.0.0. I create Topic programmatically. I always get:

      16:12:04,265 INFO [Topic] Topic[OPERATOR_TRACKING_COMPETITION_TIME] started, fullSize=75000, pageSize=2000, downCacheSize=2000
      16:12:46,609 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
      java.io.IOException: No properties file: props/messaging-users.properties or defaults: defaultUsers.properties found
      at org.jboss.security.auth.spi.Util.loadProperties(Util.java:314)

      After this exception I found

      User clientMessagePublisher is NOT authenticated

      I have both messaging-users.properties and messaging-roles.properties

      clientMessagePublisher is configured in both properties files.

      Sorry because of my English.

      Thanks for any help.

        • 1. Re: Jboss 5.0.0beta1 messaging problem
          Peter Johnson Master

          It would help if you posted the code that created the topic. I am especially interested in any code that specifies the locations of the messaging-users.properties and messaging-roles.properties files (if you specified it using login-config.xml, post that also)

          • 2. Re: Jboss 5.0.0beta1 messaging problem
            zlatko josic Newbie

            This is from login-config.xml file :

            <application-policy name="messaging">

            <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
            <module-option name="unauthenticatedIdentity">guest</module-option>
            <module-option name="usersProperties">props/messaging-users.properties</module-option>
            <module-option name="rolesProperties">props/messaging-roles.properties</module-option>


            code :

            private static TopicConnection getTopicConnection() throws NamingException, JMSException {
            if (conn == null) {
            conn = getTopicConnectionFactory().createTopicConnection("clientMessagePublisher", "clientMessagePublisher!");
            conn.setExceptionListener(new ExceptionListener() {
            public void onException(JMSException jmsException) {
            Log.getInstance().addEntry(Log.LEVEL_ERR, jmsException, "Greska u komnunikaciji sa JBossMQ-om.");
            return conn;

            private static TopicConnectionFactory getTopicConnectionFactory() throws NamingException {
            if (tcf == null) {
            tcf = (TopicConnectionFactory)getInitialContext().lookup("ConnectionFactory");
            return tcf;

            • 3. Re: Jboss 5.0.0beta1 messaging problem
              zlatko josic Newbie

              if I execute code out of server, I made application, it works fine.

              Within server it is called from session bean.
              Maybe it is problem with security.