Thank you very much for your help Chad, I have it running.
I've added the @ejb.permission tag to the HibernateSessionBean.vsl in each create and bussiness method.
I've seen that in the new hibernate/ejb templates, the methods permission has been set... I'll try it.
Regards Bruno
Chad Brandon dijo lo siguiente el 21/01/2005 18:52:
If you're using the hibernate cartridge, you'll need to modify your
maven.xml in the core module to include your security realm information.
Check the xdoclet docs.
P.S. very soon xdoclet will be eliminated from the Hibernate cartridge therefore setting the <securityRealm> will work for it just like it does for the Spring cartridge.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Su�rez Laffargue Sent: Friday, January 21, 2005 10:43 AM To: Andromda User Subject: Re: [Andromda-user] isCallerInRole error
I'm using the hibernate cartridge.
I've added <securityRealm>SeguPruebas</securityRealm> to the the maven-andromda-plugin dependencies (I hadn't set it) in mda/project.xml, and I'm recompiling to test it.
I'll tell you the result.
Thanks
Bruno
Chad Brandon dijo lo siguiente el 21/01/2005 18:21:
By the way: which cartridge are you using for EJBs? The spring cartridgeuse
uses the securityRealm namespace property, but I think hibernate and ejb
Brandonthe one defined by xdoclet.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad
itSent: Friday, January 21, 2005 10:18 AM To: 'Bruno Su�rez Laffargue'; [email protected] Subject: RE: [Andromda-user] isCallerInRole error
Did you set securityRealm in the maven-andromda-plugin dependency so that
Su�rezused for all cartridges?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno
Laffargue Sent: Friday, January 21, 2005 10:08 AM To: [email protected] Subject: [Andromda-user] isCallerInRole error
Hi,
I'm trying to discrimate between roles in the service.
I do _ctx.isCallerInRole("admin") and i get the following error:
javax.ejb.EJBException: ServPruebasBean.guardaDatos: java.lang.IllegalStateException: isCallerInRole() called with no security context. Check that a security-domain has been set for the application.
I've setted the security realm in mda/project.xml, and I succesfully log to the application through bpm4struts default login page.
I've tryed to pass environment parameters to the service.getHome(environment) method as follows: Hashtable environment = new Hashtable(); environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); environment.put(Context.PROVIDER_URL, "jnp://localhost:1099");
but I still getting the same error. If I use the getServPruebas() of the controller, I get the same...
What am I missing? Where can I set this environment parameters to be used as default for all the services?
Best regards Bruno
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
