hi harald,

it's needed to secure jsf-views based on type-safe view-configs.
the security-module just provides a very thin integration layer to
integrate any security framework (like shiro).
(codi has the ~same, but in its core.)

regards,
gerhard



2013/2/12 Harald Wellmann <[email protected]>

> I'm trying to use a local build of deltaspike-jsf-module-impl (latest
> trunk) in my web app to enable @ViewScoped beans.
>
> When adding only this module to my POM dependencies I get the
> following exception:
>
> 13:45:57,224 SEVERE
> [javax.enterprise.resource.webcontainer.jsf.config] (MSC service
> thread 1-4) Critical error during deployment: :
> com.sun.faces.config.ConfigurationException:
>   Source Document:
>
> vfs:/home/hwellmann/apps/jboss-as-7.1.3.Final/standalone/deployments/demo.war/WEB-INF/lib/deltaspike-jsf-module-impl-0.4-incubating-SNAPSHOT.jar/META-INF/faces-config.xml
>   Cause: Class
> 'org.apache.deltaspike.jsf.impl.listener.phase.DeltaSpikePhaseListener'
> is missing a runtime dependency: java.lang.NoClassDefFoundError:
>
> org/apache/deltaspike/security/api/authorization/ErrorViewAwareAccessDeniedException
>         at
> com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:279)
> [jsf-impl-2.1.11-jbossorg-3.jar:]
>         at
> com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)
> [jsf-impl-2.1.11-jbossorg-3.jar:]
>         at
> com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)
> [jsf-impl-2.1.11-jbossorg-3.jar:]
>         at
> com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
> [jsf-impl-2.1.11-jbossorg-3.jar:]
>         at
> com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)
> [jsf-impl-2.1.11-jbossorg-3.jar:]
>         at
> com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:362)
> [jsf-impl-2.1.11-jbossorg-3.jar:]
>         at
> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:228)
> [jsf-impl-2.1.11-jbossorg-3.jar:]
>         at
> org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
> [jbossweb-7.0.17.Final.jar:]
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
> [jbossweb-7.0.17.Final.jar:]
>         at
> org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89)
> [jboss-as-web-7.1.3.Final.jar:7.1.3.Final]
>         at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
>         at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> [rt.jar:1.7.0_13]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> [rt.jar:1.7.0_13]
>         at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_13]
>
>
> I had to add deltaspike-security-module-impl to make the exception
> disappear.
>
> deltaspike-jsf-module-impl has the following dependencies in its POM:
>
>         <dependency>
>             <groupId>org.apache.deltaspike.modules</groupId>
>             <artifactId>deltaspike-security-module-api</artifactId>
>             <scope>provided</scope>
>         </dependency>
>
>         <dependency>
>             <groupId>org.apache.deltaspike.modules</groupId>
>             <artifactId>deltaspike-security-module-impl</artifactId>
>             <scope>test</scope>
>         </dependency>
>
> But in fact there seems to be a runtime dependency on
> deltaspike-security-module-impl.
>
> Why is there any dependency on security at all? Shouldn't this be an
> optional add-on for JSF support? I'm using Apache Shiro in my
> application, which most likely does not work together with DeltaSpike
> Security anyway...
>
> Best regards,
> Harald
>

Reply via email to