[JBoss Seam] - Sharing JAAS context with existing application
by alxs
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" ?>
| <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
18Â years, 10Â months
[JBoss Seam] - No operation in WSDL with JBoss 4.2
by djohan0817
Hello,
I was using Jboss 4.0.5 to create webservice in an EJB project with eclipse, it worked just fine, but when I generate the webservice client, it added a "jaws" folder in namespace.
That is annoying because if a Webmethod is returning an entity (for ex. EntityExample), it will be a webservice.EntityExample, but in the webservice client, it will be webservice.jaws.EntityExample and therefore casting is not possible. In my wsdl, instead of having
<definitions name="WSServerCentral" targetNamespace="http://webservice">
| <import location="http://127.0.0.1:8080/WSServerCentralService/WSServerCentral?wsdl&resourc..." namespace="http://webservice/"/>
| ...
I was having :
<definitions name="WSServerCentral" targetNamespace="http://webservice">
| <import location="http://127.0.0.1:8080/WSServerCentralService/WSServerCentral?wsdl&resourc..." namespace="http://webservice/jaws/"/>
| ...
When I try to use JBoss 4.2 instead of 4.0.5, in the wsdl I had the right namespace but I had no operation. Could someone tell me why? the same .jar file, when it's in the deploy folder of JBoss 4.0.5 it generates a wsdl with all my operations (webmethod) but with the wrong namespace and when it's in the deploy folder of JBoss 4.2 it generates a wsdl with no operation but the right namespace! I hope that I made myself understood.
Thank you in advance
Johan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073280#4073280
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073280
18Â years, 10Â months