12 Replies Latest reply on Nov 7, 2012 3:44 AM by jaikiran

    how I can disable all the security of JBoss7?

    jonatan.guillen

      I keep having problems with security in Jboss 7. As I can disable it for all kinds of connections?

      - remote connections

      - local connections

      - jboss to jboss connections.

        • 1. Re: how I can disable all the security of JBoss7?
          jaikiran

          Jonatan Guillen wrote:

           

          I keep having problems with security in Jboss 7.

          What kind of problems?

          • 2. Re: how I can disable all the security of JBoss7?
            jonatan.guillen

            Now I have two instances of Jboss standalone in the same machine with different ports.

            - Each instance operates correctly

            - I can access each of the two instances from outside.

            - I have a tomcat in the same machine and it can access each of the two instances.

             

            But the two instances do not communicate with each other.

             

            I understand that security is important, but I have checked the security on my machine. I want to remove Jboss security so you can allow any type of connection.

            • 3. Re: how I can disable all the security of JBoss7?
              jaikiran

              What exactly do you mean by the two JBoss instances cannot communicate with each other? The reason I ask is because without knowing that information, we can't really tell whether disabling the security on some resources is going to help at all.

              • 4. Re: how I can disable all the security of JBoss7?
                jonatan.guillen

                I have this error:

                 

                EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:mod1, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@309a10

                 

                Instance2 not see EJB of instance1

                But if I test instance1 from outside I see all the EJB with same piece of code.

                • 5. Re: how I can disable all the security of JBoss7?
                  jonatan.guillen

                  This is my configuration in instance1

                   

                  <?xml version='1.0' encoding='UTF-8'?>

                   

                   

                  <server xmlns="urn:jboss:domain:1.3">

                   

                   

                      <extensions>

                          <extension module="org.jboss.as.connector"/>

                          <extension module="org.jboss.as.deployment-scanner"/>

                          <extension module="org.jboss.as.ee"/>

                          <extension module="org.jboss.as.ejb3"/>

                          <extension module="org.jboss.as.logging"/>

                          <extension module="org.jboss.as.naming"/>

                          <extension module="org.jboss.as.remoting"/>

                          <extension module="org.jboss.as.security"/>

                          <extension module="org.jboss.as.transactions"/>

                      </extensions>

                   

                   

                   

                   

                      <management>

                          <security-realms>

                              <security-realm name="ManagementRealm">

                                  <authentication>

                                      <local default-user="$local"/>

                                      <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>

                                  </authentication>

                              </security-realm>

                              <security-realm name="ApplicationRealm">

                                  <authentication>

                                      <local default-user="$local" allowed-users="*"/>

                                      <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>

                                  </authentication>

                                  <authorization>

                                      <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>

                                  </authorization>

                              </security-realm>

                          </security-realms>

                          <management-interfaces>

                              <native-interface security-realm="ManagementRealm">

                                  <socket-binding native="management-native"/>

                              </native-interface>

                          </management-interfaces>

                      </management>

                   

                   

                      <profile>

                          <subsystem xmlns="urn:jboss:domain:logging:1.1">

                              <console-handler name="CONSOLE">

                                  <level name="INFO"/>

                                  <formatter>

                                      <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                                  </formatter>

                              </console-handler>

                              <periodic-rotating-file-handler name="FILE">

                                  <formatter>

                                      <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                                  </formatter>

                                  <file relative-to="jboss.server.log.dir" path="server.log"/>

                                  <suffix value=".yyyy-MM-dd"/>

                                  <append value="true"/>

                              </periodic-rotating-file-handler>

                              <root-logger>

                                  <level name="INFO"/>

                                  <handlers>

                                      <handler name="CONSOLE"/>

                                      <handler name="FILE"/>

                                  </handlers>

                              </root-logger>

                          </subsystem>

                          <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">

                              <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>

                          </subsystem>

                          <subsystem xmlns="urn:jboss:domain:ee:1.1">

                              <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>

                              <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>

                          </subsystem>

                          <subsystem xmlns="urn:jboss:domain:ejb3:1.3">

                              <session-bean>

                                  <stateless>

                                      <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>

                                  </stateless>

                                  <stateful default-access-timeout="5000" cache-ref="simple"/>

                                  <singleton default-access-timeout="5000"/>

                              </session-bean>

                              <pools>

                                  <bean-instance-pools>

                                      <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                                      <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                                  </bean-instance-pools>

                              </pools>

                              <caches>

                                  <cache name="simple" aliases="NoPassivationCache"/>

                                  <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>

                              </caches>

                              <passivation-stores>

                                  <file-passivation-store name="file"/>

                              </passivation-stores>

                              <async thread-pool-name="default"/>

                              <timer-service thread-pool-name="default">

                                  <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>

                              </timer-service>

                              <remote connector-ref="remoting-connector" thread-pool-name="default"/>

                              <thread-pools>

                                  <thread-pool name="default">

                                      <max-threads count="10"/>

                                      <keepalive-time time="100" unit="milliseconds"/>

                                  </thread-pool>

                              </thread-pools>

                          </subsystem>

                          <subsystem xmlns="urn:jboss:domain:jca:1.1">

                              <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>

                              <bean-validation enabled="true"/>

                              <default-workmanager>

                                  <short-running-threads>

                                      <core-threads count="50"/>

                                      <queue-length count="50"/>

                                      <max-threads count="50"/>

                                      <keepalive-time time="10" unit="seconds"/>

                                  </short-running-threads>

                                  <long-running-threads>

                                      <core-threads count="50"/>

                                      <queue-length count="50"/>

                                      <max-threads count="50"/>

                                      <keepalive-time time="10" unit="seconds"/>

                                  </long-running-threads>

                              </default-workmanager>

                              <cached-connection-manager/>

                          </subsystem>

                          <subsystem xmlns="urn:jboss:domain:naming:1.2">

                              <remote-naming/>

                          </subsystem>

                          <subsystem xmlns="urn:jboss:domain:remoting:1.1">

                              <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>

                          </subsystem>

                          <subsystem xmlns="urn:jboss:domain:security:1.2">

                              <security-domains>

                                  <security-domain name="other" cache-type="default">

                                      <authentication>

                                          <login-module code="Remoting" flag="optional">

                                              <module-option name="password-stacking" value="useFirstPass"/>

                                          </login-module>

                                          <login-module code="RealmDirect" flag="required">

                                              <module-option name="password-stacking" value="useFirstPass"/>

                                          </login-module>

                                      </authentication>

                                  </security-domain>

                                  <security-domain name="jboss-web-policy" cache-type="default">

                                      <authorization>

                                          <policy-module code="Delegating" flag="required"/>

                                      </authorization>

                                  </security-domain>

                                  <security-domain name="jboss-ejb-policy" cache-type="default">

                                      <authorization>

                                          <policy-module code="Delegating" flag="required"/>

                                      </authorization>

                                  </security-domain>

                              </security-domains>

                          </subsystem>

                          <subsystem xmlns="urn:jboss:domain:transactions:1.2">

                              <core-environment>

                                  <process-id>

                                      <uuid/>

                                  </process-id>

                              </core-environment>

                              <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>

                              <coordinator-environment default-timeout="300"/>

                          </subsystem>

                      </profile>

                   

                   

                      <interfaces>

                          <interface name="management">

                              <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

                          </interface>

                          <interface name="public">

                              <any-address/>

                          </interface>

                          <interface name="unsecure">

                              <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

                          </interface>

                      </interfaces>

                   

                   

                      <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

                          <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>

                          <socket-binding name="ajp" port="8009"/>

                          <socket-binding name="remoting" port="4447"/>

                          <socket-binding name="txn-recovery-environment" port="4712"/>

                          <socket-binding name="txn-status-manager" port="4713"/>

                      </socket-binding-group>

                   

                   

                  </server>

                  • 6. Re: how I can disable all the security of JBoss7?
                    jaikiran

                    Jonatan Guillen wrote:

                     

                    I have this error:

                     

                    EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:mod1, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@309a10

                     

                    Instance2 not see EJB of instance1

                    But if I test instance1 from outside I see all the EJB with same piece of code.

                    That specific issue has nothing to do with security (for now). See the "note" about jboss.node.name here https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance (search for jboss.node.name on that page) to fix that part.

                    • 7. Re: how I can disable all the security of JBoss7?
                      jonatan.guillen

                      I change that. Then I check the boot.log and jboss.node.name exists with different values in the 2 instance of Jboss. But the problem persists.

                      • 8. Re: how I can disable all the security of JBoss7?
                        jaikiran

                        Please post more details about your code/configurations and the appropriate exception stacktraces.

                        • 9. Re: how I can disable all the security of JBoss7?
                          jonatan.guillen

                          Configuration for server 1:

                           

                          <?xml version='1.0' encoding='UTF-8'?>

                          <server xmlns="urn:jboss:domain:1.3">

                              <extensions>

                                  <extension module="org.jboss.as.connector"/>

                                  <extension module="org.jboss.as.deployment-scanner"/>

                                  <extension module="org.jboss.as.ee"/>

                                  <extension module="org.jboss.as.ejb3"/>

                                  <extension module="org.jboss.as.logging"/>

                                  <extension module="org.jboss.as.naming"/>

                                  <extension module="org.jboss.as.remoting"/>

                                  <extension module="org.jboss.as.security"/>

                                  <extension module="org.jboss.as.transactions"/>

                              </extensions>

                              <management>

                                  <security-realms>

                                      <security-realm name="ManagementRealm">

                                          <authentication>

                                              <local default-user="$local"/>

                                              <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>

                                          </authentication>

                                      </security-realm>

                                      <security-realm name="ApplicationRealm">

                                          <authentication>

                                              <local default-user="$local" allowed-users="*"/>

                                              <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>

                                          </authentication>

                                          <authorization>

                                              <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>

                                          </authorization>

                                      </security-realm>

                                  </security-realms>

                                  <management-interfaces>

                                      <native-interface security-realm="ManagementRealm">

                                          <socket-binding native="management-native"/>

                                      </native-interface>

                                  </management-interfaces>

                              </management>

                              <profile>

                                  <subsystem xmlns="urn:jboss:domain:logging:1.1">

                                      <console-handler name="CONSOLE">

                                          <level name="TRACE"/>

                                          <formatter>

                                              <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                                          </formatter>

                                      </console-handler>

                                      <periodic-rotating-file-handler name="FILE">

                                          <formatter>

                                              <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                                          </formatter>

                                          <file relative-to="jboss.server.log.dir" path="server.log"/>

                                          <suffix value=".yyyy-MM-dd"/>

                                          <append value="true"/>

                                      </periodic-rotating-file-handler>

                                      <root-logger>

                                          <level name="TRACE"/>

                                          <handlers>

                                              <handler name="CONSOLE"/>

                                              <handler name="FILE"/>

                                          </handlers>

                                      </root-logger>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">

                                      <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:ee:1.1">

                                      <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>

                                      <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:ejb3:1.3">

                                      <session-bean>

                                          <stateless>

                                              <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>

                                          </stateless>

                                          <stateful default-access-timeout="5000" cache-ref="simple"/>

                                          <singleton default-access-timeout="5000"/>

                                      </session-bean>

                                      <pools>

                                          <bean-instance-pools>

                                              <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                                              <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                                          </bean-instance-pools>

                                      </pools>

                                      <caches>

                                          <cache name="simple" aliases="NoPassivationCache"/>

                                          <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>

                                      </caches>

                                      <passivation-stores>

                                          <file-passivation-store name="file"/>

                                      </passivation-stores>

                                      <async thread-pool-name="default"/>

                                      <timer-service thread-pool-name="default">

                                          <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>

                                      </timer-service>

                                      <remote connector-ref="remoting-connector" thread-pool-name="default"/>

                                      <thread-pools>

                                          <thread-pool name="default">

                                              <max-threads count="10"/>

                                              <keepalive-time time="100" unit="milliseconds"/>

                                          </thread-pool>

                                      </thread-pools>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:jca:1.1">

                                      <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>

                                      <bean-validation enabled="true"/>

                                      <default-workmanager>

                                          <short-running-threads>

                                              <core-threads count="50"/>

                                              <queue-length count="50"/>

                                              <max-threads count="50"/>

                                              <keepalive-time time="10" unit="seconds"/>

                                          </short-running-threads>

                                          <long-running-threads>

                                              <core-threads count="50"/>

                                              <queue-length count="50"/>

                                              <max-threads count="50"/>

                                              <keepalive-time time="10" unit="seconds"/>

                                          </long-running-threads>

                                      </default-workmanager>

                                      <cached-connection-manager/>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:naming:1.2">

                                      <remote-naming/>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:remoting:1.1">

                                      <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:security:1.2">

                                      <security-domains>

                                          <security-domain name="other" cache-type="default">

                                              <authentication>

                                                  <login-module code="Remoting" flag="optional">

                                                      <module-option name="password-stacking" value="useFirstPass"/>

                                                  </login-module>

                                                  <login-module code="RealmDirect" flag="required">

                                                      <module-option name="password-stacking" value="useFirstPass"/>

                                                  </login-module>

                                              </authentication>

                                          </security-domain>

                                          <security-domain name="jboss-web-policy" cache-type="default">

                                              <authorization>

                                                  <policy-module code="Delegating" flag="required"/>

                                              </authorization>

                                          </security-domain>

                                          <security-domain name="jboss-ejb-policy" cache-type="default">

                                              <authorization>

                                                  <policy-module code="Delegating" flag="required"/>

                                              </authorization>

                                          </security-domain>

                                      </security-domains>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:transactions:1.2">

                                      <core-environment>

                                          <process-id>

                                              <uuid/>

                                          </process-id>

                                      </core-environment>

                                      <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>

                                      <coordinator-environment default-timeout="300"/>

                                  </subsystem>

                              </profile>

                              <interfaces>

                                  <interface name="management">

                                      <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

                                  </interface>

                                  <interface name="public">

                                      <any-address/>

                                  </interface>

                                  <interface name="unsecure">

                                      <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

                                  </interface>

                              </interfaces>

                              <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

                                  <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>

                                  <socket-binding name="ajp" port="8009"/>

                                  <socket-binding name="remoting" port="4447"/>

                                  <socket-binding name="txn-recovery-environment" port="4712"/>

                                  <socket-binding name="txn-status-manager" port="4713"/>

                              </socket-binding-group>

                          </server>

                           

                           

                           

                          Configuration for server 2:

                           

                          <?xml version='1.0' encoding='UTF-8'?>

                          <server xmlns="urn:jboss:domain:1.3">

                              <extensions>

                                  <extension module="org.jboss.as.connector"/>

                                  <extension module="org.jboss.as.deployment-scanner"/>

                                  <extension module="org.jboss.as.ee"/>

                                  <extension module="org.jboss.as.ejb3"/>

                                  <extension module="org.jboss.as.logging"/>

                                  <extension module="org.jboss.as.naming"/>

                                  <extension module="org.jboss.as.remoting"/>

                                  <extension module="org.jboss.as.security"/>

                                  <extension module="org.jboss.as.transactions"/>

                              </extensions>

                           

                           

                           

                           

                              <management>

                                  <security-realms>

                                      <!--security-realm name="ManagementRealm">

                                          <authentication>

                                              <local default-user="$local"/>

                                              <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>

                                          </authentication>

                                      </security-realm-->

                                      <security-realm name="ApplicationRealm">

                                          <authentication>

                                              <local default-user="$local" allowed-users="*"/>

                                              <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>

                                          </authentication>

                                          <authorization>

                                              <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>

                                          </authorization>

                                      </security-realm>

                                  </security-realms>

                              </management>

                              <profile>

                                  <subsystem xmlns="urn:jboss:domain:logging:1.1">

                                      <console-handler name="CONSOLE">

                                          <level name="TRACE"/>

                                          <formatter>

                                              <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                                          </formatter>

                                      </console-handler>

                                      <periodic-rotating-file-handler name="FILE">

                                          <formatter>

                                              <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

                                          </formatter>

                                          <file relative-to="jboss.server.log.dir" path="server.log"/>

                                          <suffix value=".yyyy-MM-dd"/>

                                          <append value="true"/>

                                      </periodic-rotating-file-handler>

                                      <root-logger>

                                          <level name="TRACE"/>

                                          <handlers>

                                              <handler name="CONSOLE"/>

                                              <handler name="FILE"/>

                                          </handlers>

                                      </root-logger>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">

                                      <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:ee:1.1">

                                      <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>

                                      <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:ejb3:1.3">

                                      <session-bean>

                                          <stateless>

                                              <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>

                                          </stateless>

                                          <stateful default-access-timeout="5000" cache-ref="simple"/>

                                          <singleton default-access-timeout="5000"/>

                                      </session-bean>

                                      <pools>

                                          <bean-instance-pools>

                                              <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                                              <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>

                                          </bean-instance-pools>

                                      </pools>

                                      <caches>

                                          <cache name="simple" aliases="NoPassivationCache"/>

                                          <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>

                                      </caches>

                                      <passivation-stores>

                                          <file-passivation-store name="file"/>

                                      </passivation-stores>

                                      <async thread-pool-name="default"/>

                                      <timer-service thread-pool-name="default">

                                          <data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>

                                      </timer-service>

                                      <remote connector-ref="remoting-connector" thread-pool-name="default"/>

                                      <thread-pools>

                                          <thread-pool name="default">

                                              <max-threads count="10"/>

                                              <keepalive-time time="100" unit="milliseconds"/>

                                          </thread-pool>

                                      </thread-pools>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:jca:1.1">

                                      <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>

                                      <bean-validation enabled="true"/>

                                      <default-workmanager>

                                          <short-running-threads>

                                              <core-threads count="50"/>

                                              <queue-length count="50"/>

                                              <max-threads count="50"/>

                                              <keepalive-time time="10" unit="seconds"/>

                                          </short-running-threads>

                                          <long-running-threads>

                                              <core-threads count="50"/>

                                              <queue-length count="50"/>

                                              <max-threads count="50"/>

                                              <keepalive-time time="10" unit="seconds"/>

                                          </long-running-threads>

                                      </default-workmanager>

                                      <cached-connection-manager/>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:naming:1.2">

                                      <remote-naming/>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:remoting:1.1">

                                      <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:security:1.2">

                                      <security-domains>

                                          <security-domain name="other" cache-type="default">

                                              <authentication>

                                                  <login-module code="Remoting" flag="optional">

                                                      <module-option name="password-stacking" value="useFirstPass"/>

                                                  </login-module>

                                                  <login-module code="RealmDirect" flag="required">

                                                      <module-option name="password-stacking" value="useFirstPass"/>

                                                  </login-module>

                                              </authentication>

                                          </security-domain>

                                          <!--security-domain name="jboss-web-policy" cache-type="default">

                                              <authorization>

                                                  <policy-module code="Delegating" flag="required"/>

                                              </authorization>

                                          </security-domain-->

                                          <!--security-domain name="jboss-ejb-policy" cache-type="default">

                                              <authorization>

                                                  <policy-module code="Delegating" flag="required"/>

                                              </authorization>

                                          </security-domain-->

                                      </security-domains>

                                  </subsystem>

                                  <subsystem xmlns="urn:jboss:domain:transactions:1.2">

                                      <core-environment>

                                          <process-id>

                                              <uuid/>

                                          </process-id>

                                      </core-environment>

                                      <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>

                                      <coordinator-environment default-timeout="300"/>

                                  </subsystem>

                              </profile>

                              <interfaces>

                                  <interface name="public">

                                      <any-address/>

                                  </interface>

                              </interfaces>

                              <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">

                                  <socket-binding name="ajp" port="7909"/>

                                  <socket-binding name="remoting" port="2099"/>

                                  <socket-binding name="txn-recovery-environment" port="4612"/>

                                  <socket-binding name="txn-status-manager" port="4613"/>

                              </socket-binding-group>

                          </server>

                           

                          Then I have a client in server 2:

                           

                           

                          Properties jndiProps = new Properties();

                          jndiProps.put("org.jboss.ejb.client.scoped.context", true);

                          jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

                          String connectionName = "default";

                          jndiProps.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");

                          jndiProps.put("remote.connections", connectionName);

                          jndiProps.put("remote.connection." + connectionName + ".host", "127.0.0.1");

                          jndiProps.put("remote.connection." + connectionName + ".port", "4447");

                          jndiProps.put("remote.connection." + connectionName + ".username", "user");

                          jndiProps.put("remote.connection." + connectionName + ".password", "pass");

                          jndiProps.put("remote.connection." + connectionName + ".connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false");

                          Context context =  new InitialContext( env );

                          home = clazz.cast(context.lookup("ejb:/" + moduleName + "/" + beanName + "!" + clazz.getName()));

                           

                          Do a call to ejb 2.x

                          • 10. Re: how I can disable all the security of JBoss7?
                            jaikiran

                            Which exact version of JBoss AS7 are you trying this against?

                            • 11. Re: how I can disable all the security of JBoss7?
                              jonatan.guillen

                              EAP6 with your new client.

                              • 12. Re: how I can disable all the security of JBoss7?
                                jaikiran

                                Jonatan Guillen wrote:

                                 

                                EAP6 with your new client.

                                If your client which does the lookup, itself is an EAP6/AS7 server, then you can't just replace the EJB client jar to get this feature. There are some server side changes needed too - which aren't available in EAP6 and only available in the next version of AS7. See my reply in your other thread https://community.jboss.org/message/775269?tstart=0#775269