Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB3.0 project cannot be started = gives SASL exception  RSS feed

 
Ravi Desigan
Ranch Hand
Posts: 35
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am consistently getting a SASL exception on starting my EJB3.0 project.

After looking around for a solution, the following seemed to be what I should do for a fix:

1. Add user "ejb" with add-user.sh on the EJB server side, and check its host.xml
==============
    <management>
        <security-realms>
<!-- Giving "ejb" user's authentication method on the EJB server side -->
            <security-realm name="ApplicationRealm"> 
                <authentication>
                    <properties path="application-users.properties" relative-to="jboss.domain.config.dir"/>
                </authentication>
            </security-realm>
        </security-realms>
==============

2. Edit the EJB client's host.xml
==============
    <management>
        <security-realms>
<!-- Giving "ejb" user's identity on the EJB client side -->
            <security-realm name="ejb-security-realm">
                <server-identities>
                    <secret value="YXNkZmhvZ2U="/>
                </server-identities>
            </security-realm>
==============

3. Edit domain's domain.xml
==============
    <socket-binding-groups>
        <socket-binding-group name="standard-sockets" default-interface="public">
            <outbound-socket-binding name="remote-ejb">
                <remote-destination host="node02" port="4447"/>
            </outbound-socket-binding>
        </socket-binding-group>
...
            <subsystem xmlns="urn:jboss:domain:remoting:1.1">
<!-- Specifying the security realm on the EJB server side -->
                <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>

                <outbound-connections>
<!-- Specifying the security realm and user name on the EJB client side -->
                    <remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb"
                                                security-realm="ejb-security-realm" username="ejb">
...
                    </remote-outbound-connection>
                </outbound-connections>
            </subsystem>
==============


However, I have no clue where I should do the above changes in my Eclipse/Jboss EJB3.0 project.

Can someone here help please?

Thank you.
 
Ravi Desigan
Ranch Hand
Posts: 35
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any EJB enthusiast out there who can help me with this problem? Please...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!