[Security & JAAS/JBoss] - Re: Accessing a secure EJB from standalone Java client
by jej2003
My EJB looks like this:
@RolesAllowed({"user", "admin"})
| public String echoUser(String src) {
| log.debug("echoUser called with source string " + src);
| return "Echo User: " + src;
| }
|
| /* (non-Javadoc)
| * @see com.csp.ejb.echo.EchoBeanInterface#echoAdmin(java.lang.String)
| */
| @RolesAllowed({"admin"})
| public String echoAdmin(String src) {
| log.debug("echoAdmin called with source string " + src);
| return "Echo Admin: " + src;
| }
|
| /* (non-Javadoc)
| * @see com.csp.ejb.echo.EchoBeanInterface#echoAll(java.lang.String)
| */
| @PermitAll
| public String echoAll(String src) {
| log.debug("echoAll called with source string " + src);
| return "Echo All: " + src;
| }
my login-config file is very simple and looks like
<application-policy name="test">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
| <module-option name="unauthenticatedIdentity">guest</module-option>
| <module-option name="usersProperties">props/axle-users.properties</module-option>
| <module-option name="rolesProperties">props/axle-roles.properties</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
The application works fine if I login as a user or admin and try to use the echo functions, but if I do not login I can't call the echoAll method.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184866#4184866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184866
17 years, 6 months
[JBoss jBPM] - Re: NPE in GPD
by mputz
java.lang.NullPointerException
| at org.jbpm.gd.jpdl.notation.JpdlNode.getDestinationNode(Unknown Source)
|
looks like there is an incorrect transition somewhere in the process, pointing to a node that cannot be resolved.
I would suspect the following:
<decision name="do manual?">
| <transition to="end" name="No"></transition>
| <transition to="super-state1/select users" name="Yes"></transition>
| </decision>
and change it to:
<decision name="do manual?">
| <transition to="end" name="No"></transition>
| <transition to="manual annotation configuration/select users" name="Yes"></transition>
| </decision>
How did you end up with this corrupted process in the first place?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184860#4184860
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184860
17 years, 6 months