[JBossWS] - Re: WS 181 and my own security module - call problems
by georgesberscheid
Hi,
I have a similar situation than the one described above.
| @Stateless
| @Remote(Test.class)
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| @SecurityDomain("java:/jaas/MyDomain")
| public class TestService implements Test {
|
| @WebMethod
| public String test() {
| return "test";
| }
| }
|
I'm trying to protect my 181 SLSB WS by HTTP BASIC authentication but using my custom login module.
If I use the @SecurityDomain("MyDomain") annotation with MyDomain as defined in login-config.xml, each client call to any of the @WebMethod methods causes the following exception:
| 16:01:07,478 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
| java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
| at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
|
However, the MyDomain configuration does not include a reference to the UsersRolesLoginModule. Also, the login() method in MyLoginModule (as defined in MyDomain in login-config.xml) is never called.
So I feel like it's not actually using MyDomain as security domain, but something else instead (JBossWS)?
Any ideas?
Thanks,
Georges
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971577#3971577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971577
19 years, 7 months
[JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)
by antitrust1982
Have on my portal two same jbpm portlets. when I run the portlet I have a fonction which give me back the processId : System.out.println("PROCESS INSTANCE ID:"+ pi.getId());. Executing the both portlet in the same time I have the same ID :
anonymous wrote :
| PROCESS INSTANCE ID:0
So I think that the portlet create a specifique context which isolates the contexts. So perhaps there is a fonction which put in the data base the Id of the diverse Process and permit to have a unique ID among the portlets. and consequently have the tasks of the JBPM engine and not just of one portlet.
In my portlet I put a jbpm librairies. Must I do a specific thing in order to have the same context between the portlet.
I use now liferay portal. Must I copy in a specific place the jbpm files?
Until now I work jsut on one portlet in order to understand well the functionment. I don't know all but I can do somethings.
thank you for you help
Antitrust1982
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971568#3971568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971568
19 years, 7 months