Hello
We are trying to configure PEP filtering for fedora 3.6. Have added
PEPFilter to the various security filters in security.xml, then tried to
define the PEP filter by adding the following definition (as in the
security-complicated.xml file in config/spring/alt) to security.xml:
<bean id="PEPFilter" class="org.fcrepo.server.security.xacml.pep.rest.PEP"
lazy-init="true" init-method="init" />
However this throws an error:
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'springSecurityFilterChain' defined in file
[/opt/york/digilib/fedora/server/config/spring/web/security.xml]: Cannot
resolve reference to bean 'PEPFilter' while setting bean property
'filterChainMap' with key [/getDSAuth*] with key [2]; nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'PEPFilter' defined in file
[/opt/york/digilib/fe
dora/server/config/spring/web/security.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.fcrepo.server.security.xacml.pep.rest.PEP]: No default constructor
found; nested exception is java.lang.NoSuchMethodException:
org.fcrepo.server.security.xacml.pep.rest.PEP.<init>()
The error message seems to suggest some additional initialisation arguments
need to be passed to the bean constructor (although the example in
security-complicated.xml doesnt have any); looking into the PEP.java source
I can see a requirement for two arguments in the constructoreas follows:
ObjectsRESTFilterMatcher objectsRESTFilterMatcher, Map<String, RESTFilter>
filters
However although I can find a class
org.fcrepo.server.security.xacml.pep.rest.filters.ObjectsRESTFilterMatcher
listed in jaxrs.xml, I cant so far find any reference to the RESTFilter
object specified by the Map, so I'm at a bit of a loss how to pass the
PEP.class constructor the objects it seems to require in order to
initialise the bean
Presumably we are missing out some vital step (s), in our configuration can
anyone point us towards what this might be?
Peri Stracchino
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users