You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Martin Holz <ho...@fiz-chemie.de> on 2004/01/06 20:09:29 UTC
Permission bootstrap problem with J2EE StandardAdapter
Hi,
the StandardAdapter.grantPermission expected, that a
uri and uri_id already existed for the subject and the
action. Otherwise the permission was silently dropped.
However the standard Domain.xml does not define nodes
for subjects like "self" or "unauthenticated" and actions
like "all". So I changed the adapter to call assureUri
for those uris. I am not sure, if this only cures
the symptoms or is the proper solution.
The problem is hidden, when the J2EE store is cached
and will be seen only, if caching is disabled.
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org
Testing with Caching turned OFF / WAS Permission bootstrap problem
with J2EE StandardAdapter
Posted by Oliver Zeigermann <oz...@c1-fse.de>.
I currently test things with caching globally turned off and found in
initialization (staring Slide with an empty database)
StandardRDBMSAdapter fails when trying to load actions:
org.apache.slide.common.Domain -
org.apache.slide.structure.ObjectNotFoundException: No object found at
/actions/read
at
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveObject(StandardRDBMSAdapter.java:323)
at
org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveObject(AbstractRDBMSStore.java:489)
at
org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:538)
at
org.apache.slide.store.ExtendedStore.retrieveObject(ExtendedStore.java:448)
at
org.apache.slide.common.NamespaceConfig.getActionNode(NamespaceConfig.java:1098)
at
org.apache.slide.common.NamespaceConfig.getConfiguredNode(NamespaceConfig.java:845)
at
org.apache.slide.common.NamespaceConfig.initializeNamespaceConfig(NamespaceConfig.java:715)
at org.apache.slide.common.Namespace.loadConfiguration(Namespace.java:876)
at org.apache.slide.common.Domain.initNamespace(Domain.java:859)
at org.apache.slide.common.Domain.init(Domain.java:473)
at org.apache.slide.common.Domain.selfInit(Domain.java:787)
at org.apache.slide.common.Domain.accessNamespace(Domain.java:275)
at wrappers.catalina.SlideRealm.start(SlideRealm.java:219)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Have you experienced anything similar? Do you have any idea what might
be the solution to this?
Oliver
Martin Holz wrote:
> Hi,
>
> the StandardAdapter.grantPermission expected, that a
> uri and uri_id already existed for the subject and the
> action. Otherwise the permission was silently dropped.
>
> However the standard Domain.xml does not define nodes
> for subjects like "self" or "unauthenticated" and actions
> like "all". So I changed the adapter to call assureUri
> for those uris. I am not sure, if this only cures
> the symptoms or is the proper solution.
>
> The problem is hidden, when the J2EE store is cached
> and will be seen only, if caching is disabled.
>
>
> Martin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>
> .
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org