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 cartridge
uses the securityRealm namespace property, but I think hibernate and ejb
use
the one defined by xdoclet.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad
Brandon
Sent: Friday, January 21, 2005 10:18 AM
To: 'Bruno Suárez Laffargue'; Andromda-user@lists.sourceforge.net
Subject: RE: [Andromda-user] isCallerInRole error
Did you set securityRealm in the maven-andromda-plugin dependency so that
it
used for all cartridges?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno
Suárez
Laffargue
Sent: Friday, January 21, 2005 10:08 AM
To: Andromda-user@lists.sourceforge.net
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
Andromda-user@lists.sourceforge.net
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
Andromda-user@lists.sourceforge.net
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
Andromda-user@lists.sourceforge.net
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
Andromda-user@lists.sourceforge.net
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
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user