-
Bug
-
Resolution: Cannot Reproduce
-
Blocker
-
7.1.0.CR2
I am not able to run this quickstart successfully.
I add the user.
I configure the server.
I deploy the quickstart.
When I run 'mvn exec:exec' I see an exception in the console. I tracked that down to a misplaced ending bracket at this line:
However, even when I move it past the lines that put out the nice message, it does not work.
The server is throwing a 'Throwable' instead of an 'EJBAccessException', so for this to work, it has to catch a 'Throwable' :
try { hasAdminPermission = reference.administrativeMethod(); } catch (EJBAccessException e) { System.out.println("\nPrincipal has admin permission: " + hasAdminPermission); System.out.println("\n\n* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\n\n"); } catch (Throwable t) { System.out.println("\nTHROWABLE! Principal has admin permission: " + hasAdminPermission); System.out.println("\n\n* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n\n\n"); }
Should it be throwing an EJBAccessException instead of a throwable?
- blocks
-
JBEAP-13273 Issues with readme for ejb-security quickstart
- Closed
- clones
-
JBEAP-13273 Issues with readme for ejb-security quickstart
- Closed