Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB3.0 project cannot be started = gives SASL exception

 
Ravi Desigan
Ranch Hand
Posts: 31
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: 31
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...
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!