(sorry for the repost, but part of the message was invisible)

Thanx but I prefer a solution without any "hacking". I managed to pass the 
credentials using a JAAS Realm in Tomcat. I configured the JAAS Realm in 
server.xml as follows:

    lt Realm  className="org.apache.catalina.realm.JAASRealm"                 
appName="ClientLogin"       
userClassNames="com.tagish.auth.TypedPrincipal"       
roleClassNames="com.tagish.auth.TypedPrincipal" 
debug="99"/ gt

Then I configured the ClientLogin context as follows:
ClientLogin {
        com.tagish.auth.FileLogin required debug=true 
pwdFile="C:/java_tools/Server/Tomcat5.0/conf/passwd";
        org.jboss.security.ClientLoginModule  required;
};

This all works fine in a simple HelloWorld application which calls a secured 
session bean, but when I try the same using the JSF framework I get the 
Exception:  Authentication exception, principal=null when I do a call to the 
EJB.

Any suggestions?

Regards,
Mario



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864521#3864521

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864521


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to