  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - Sharing JAAS context with existing application | - Sharing JAAS context with existing application 2007-08-11 - By alxs
Back Hi,
I'm trying to combine seam with an existing J2EE (pre Version 5) application in a JBoss 4.0.5.GA with EJB3 profile. An independent Seam application runs fine on this server.
The application is running in an own ear containing a lot of 2.1 Beans. The standard database JAAS login module is used for authentication.
If setup a new seam project containing a single SessionBean (Action) and I've added a reference to my existing JAAS domain which is configured separatly in almost every place ;)
First of all as soos as I define the security domain I cannot access my bean method because an authentication is expected. However I allways get an exception that "user.properties" is missing what shows me that my domain that is using a database login is ignored.
web.xml
| <security-constraint> | ... | </security-constraint> | <login-config> | <auth-method>FORM</auth-method> | <realm-name>myDomain</realm-name> | <form-login-config> | <form-login-page>/login.seam</form-login-page> | <form-error-page>/loginError.seam</form-error-page> | </form-login-config> | </login-config> |
components.xml
| <security:identity authenticate-method="#{authenticator.authenticate}" | jaas-config-name="myDomain" | remember-me="true" /> |
jboss.xml
| <?xml version="1.0" encoding="UTF-8 (See http://UTF-8.ora-code.com)" ?> | <jboss> | <security-domain>java:/jaas/myDomain</security-domain> | </jboss> |
What I didn't understand is the role of teh "loader-repository" (e.g. in jboss -app.xml)
Can anyone clarify this?
Thanks, Alex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4073281#4073281
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4073281 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |