Hi Wolfgang and Anil
Thank you for your replies. I changed the client login as mentioned in the thread:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=144865]
Unfortunately, it didn't solve the problem. May the problem is related to how my custom login module passes the roles back to the JAAS framework. According this blog:
http://stuffthathappens.com/blog/2008/05/16/writing-a-custom-jaas-loginmo...]
the way of passing roles are JBoss specific. May I have to pass it differently when using standard JAAS client login without the SecurityClient.
The code is:
| if (!subject.getPrincipals().contains(user))
| {
| subject.getPrincipals().add(user);
|
| /**
| * this is the important part to work with JBoss:
| * jboss requires the name 'Roles'
| */
| SimpleGroup group = new SimpleGroup("Roles");
| for (SimplePrincipal role : roles)
| {
| group.addMember(role);
| }
|
| subject.getPrincipals().add(group);
| }
|
The login itself works fine. The security exception is thrown when the client invokes a method from the session bean.
Regards,
Ralf
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236388#4236388
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236388
Hi Jim,
it seems your app is not bundled according to the JavaEE spec.
It should be (taken your sample):
Shop.ear
| |---META-INF\application.xml (this file is not required)
| |---Shop.jar
| |--META-INF\manifest.mf
| |--META-INF\ejb-jar.xml (optional)
| |--EJB classes and interfaces
| |---Shop.war
| |--META-INF\manifest.mf
| |--WEB-INF\web.xml
| |--WEB-INF\lib\yourlibraries.jar
| |--WEB-INF\classes\....
| |--web\some.jsp
The "Shop.war" must not contain any classes which are already contained in "Shop.jar".
Seems the classes in your WAR are in the wrong location.
Hope this helps
Wolfgang
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236387#4236387
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236387
Ok, I found a solution, here it is if anybody is interested:
| Configuration configuration = new Configuration();
| ProcessEngine processEngine = configuration.buildProcessEngine();
| Environment env = ((EnvironmentFactory)processEngine).openEnvironment();
| RepositorySession repositorySession = env.getFromCurrent(RepositorySession.class);
| ProcessDefinitionImpl processDefinition = (ProcessDefinitionImpl)
| repositorySession.findProcessDefinitionById("_YOUR_ID_");
| Activity a = processDefinition.findActivity("_ACTIVITY_NAME_");
Once you have the Activity object, you can query it for a lot of information including the list of outgoing transitions.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236371#4236371
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236371
Hi Wolfgang,
yes I had to add "Shop.war", because the helper classes which are called from the index.jsp are located unter web/
i.e. the war file contains 2 directories
META-INF/
and
web/
and under web these helper classes are located.
Surely, the war file is packed in an EAR file named
Shop.ear which contains
it's own META-INF subdirectory, namely
META-INF/MANIFEST.MF
and
META-INF/application.xml
and the above mentioned war file Shop.war as well as a jar file Shop.jar where the entities and session beans are packed.
Best wishes,
Jim
WebShop.jar WebShop.war
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236369#4236369
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4236369