access control – prettyfaces

Splash Forums PrettyFaces Users access control – prettyfaces

This topic contains 8 replies, has 2 voices, and was last updated by  Christian Kaltepoth 2 years, 3 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #26080

    arcturus
    Participant

    how to use prettyfaces to control access pages

    example :

    arcturus/private/url1: user1
    arcturus/public/url1 : user2

    User 1 can enter priavte url but user 2 cannot .

    in prettyfaces I want to forbade taking Urls, in case the user is not entitled.
    the confiuguration it is reflected in the rules of trasformation of prettyfaces as conditions

    • This topic was modified 2 years, 3 months ago by  arcturus.
    #26087

    You can simply create a custom condition to implement such access control checks. Something similar to JAASRole which ships with rewrite. Just create a class extending HttpCondition and implement the check accordingly:

    https://github.com/ocpsoft/rewrite/blob/master/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/JAASRoles.java#L52

    Then just use your custom condition like any other condition as shown here:

    https://github.com/ocpsoft/rewrite/blob/master/config-servlet/src/test/java/org/ocpsoft/rewrite/servlet/config/JaasRolesTestProvider.java#L19

    #26090

    arcturus
    Participant

    thanks for reply, can you please attach a showcase or a small webapp to test? I’m not fimiliar with this framework. this is the 1st time with rewrite
    Btw I tried access control showcase and its doesnt works at all

    #26091

    If you are not familiar with Rewrite, I suggest to have a look at the documentation:

    http://ocpsoft.org/rewrite/docs/

    There are also some other showcase app that may help you to get started:

    https://github.com/ocpsoft/rewrite/tree/master/showcase

    You write that the access controll showcase app doesn’t work? Could you explain this a little bit more? What error do you get?

    #26092

    arcturus
    Participant

    here’s the error i took :

    org.ocpsoft.rewrite.cdi.manager.BeanManagerUnavailableException: Failed to locate BeanManager using any of these providers: org.ocpsoft.rewrite.cdi.manager.DefaultJndiBeanManagerProvider(10), org.ocpsoft.rewrite.cdi.manager.ServletContainerJndiBeanManagerProvider(11)
    	at org.ocpsoft.rewrite.cdi.manager.BeanManagerLocator.getBeanManager(BeanManagerLocator.java:85)
    	at org.ocpsoft.rewrite.cdi.manager.BeanManagerAware.getBeanManager(BeanManagerAware.java:52)
    	at org.ocpsoft.rewrite.cdi.CdiServiceEnricher.produce(CdiServiceEnricher.java:45)
    	at org.ocpsoft.common.services.ServiceLoader.loadEnriched(ServiceLoader.java:297)
    	at org.ocpsoft.common.services.ServiceLoader.loadClass(ServiceLoader.java:243)
    	at org.ocpsoft.common.services.ServiceLoader.loadService(ServiceLoader.java:234)
    	at org.ocpsoft.common.services.ServiceLoader.loadServiceFile(ServiceLoader.java:196)
    	at org.ocpsoft.common.services.ServiceLoader.reload(ServiceLoader.java:145)
    	at org.ocpsoft.common.services.ServiceLoader.iterator(ServiceLoader.java:394)
    	at org.ocpsoft.common.util.Iterators.asList(Iterators.java:40)
    	at org.ocpsoft.rewrite.servlet.RewriteFilter.init(RewriteFilter.java:81)
    	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
    	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
    	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    	at java.util.concurrent.FutureTask.run(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)

    I’m using tomcat 7

    #26093

    arcturus
    Participant

    here’s my simple app attachement.
    I’m using myfaces 2.1
    i didnt copy myfaces jars for size reason

    #26095

    Looks like the access control showcase app uses CDI. So you will need a JEE compliant container to run the app. We created these showcase apps using JBoss AS7. If you are using Tomcat 7, you should give TomEE a try, this one should also work fine.

    #26096

    arcturus
    Participant

    Tnx for reply, access control works well now .
    i built small app of me, but its seems that i have some problems on running
    can u please help me ?
    here’s the full stack trace and the project attach:
    Note : note i delete myfaces2.1 jars from project for size reason ( im using myfaces2.1)

    13:03:44,543 Infos [org.jboss.modules] JBoss Modules version 1.1.1.GA
    13:03:44,732 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
    13:03:44,781 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
    13:03:45,585 INFO  [org.xnio] XNIO Version 3.0.3.GA
    13:03:45,585 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
    13:03:45,595 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
    13:03:45,603 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
    13:03:45,625 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
    13:03:45,630 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
    13:03:45,649 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
    13:03:45,654 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
    13:03:45,656 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
    13:03:45,658 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
    13:03:45,670 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
    13:03:45,725 INFO  [org.jboss.as.security] (MSC service thread 1-6) JBAS013100: Current PicketBox version=4.0.7.Final
    13:03:45,751 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
    13:03:45,753 INFO  [org.jboss.as.connector] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
    13:03:45,846 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-5) JBoss Web Services - Stack CXF Server 4.0.2.GA
    13:03:45,861 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
    13:03:45,868 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-7) JBAS015400: Bound mail session [java:jboss/mail/Default]
    13:03:46,246 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) Démarrage de Coyote HTTP/1.1 sur http-localhost-127.0.0.1-8080
    13:03:46,279 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.1.Final\standalone\deployments
    13:03:46,290 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:9999
    13:03:46,291 INFO  [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on localhost/127.0.0.1:4447
    13:03:46,318 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found pretty-access.war in deployment directory. To trigger deployment create a file called pretty-access.war.dodeploy
    13:03:46,319 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found prettyMigration.war in deployment directory. To trigger deployment create a file called prettyMigration.war.dodeploy
    13:03:46,370 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
    13:03:46,402 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "pretty-access.war"
    13:03:46,402 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "prettyMigration.war"
    13:03:47,080 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016002: Processing weld deployment prettyMigration.war
    13:03:47,142 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016005: Starting Services for CDI deployment: prettyMigration.war
    13:03:47,175 INFO  [org.jboss.weld.Version] (MSC service thread 1-7) WELD-000900 1.1.5 (AS71)
    13:03:47,245 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016008: Starting weld service for deployment prettyMigration.war
    13:03:47,929 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016002: Processing weld deployment pretty-access.war
    13:03:48,159 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: pretty-access.war
    13:03:48,194 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016008: Starting weld service for deployment pretty-access.war
    13:03:48,244 Infos [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-6) Initialisation de Mojarra 2.1.7-jbossorg-1 (20120227-1401) pour le contexte «/prettyMigration»
    13:03:48,704 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
    13:03:48,767 Grave [javax.faces] (MSC service thread 1-2) L’application n’a pas été initialisée correctement au démarrage. Impossible de localiser la Fabrique : javax.faces.application.ApplicationFactory. Attempting to find backup.
    13:03:48,769 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/pretty-access]] (MSC service thread 1-2) Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.apache.myfaces.webapp.StartupServletContextListener: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory. 
    	at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
    	at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
    	at org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:159) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at org.apache.myfaces.context.servlet.FacesContextImplBase.getELContext(FacesContextImplBase.java:210) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:1463) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
    	at org.apache.myfaces.webapp.AbstractFacesInitializer._createFacesContext(AbstractFacesInitializer.java:477) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at org.apache.myfaces.webapp.AbstractFacesInitializer.initStartupFacesContext(AbstractFacesInitializer.java:449) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:113) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
    	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.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_45]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
    	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
    
    13:03:48,788 Infos [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Initialisation de Mojarra 2.1.7-jbossorg-1 (20120227-1401) pour le contexte «/pretty-access»
    13:03:49,682 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-6) Hibernate Validator 4.2.0.Final
    13:03:50,183 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart
    13:03:50,184 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Erreur de démarrage du contexte [/pretty-access] suite aux erreurs précédentes
    13:03:50,192 Grave [javax.faces] (MSC service thread 1-2) L’application n’a pas été initialisée correctement au démarrage. Impossible de localiser la Fabrique : javax.faces.application.ApplicationFactory. Attempting to find backup.
    13:03:50,197 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/pretty-access]] (MSC service thread 1-2) Exception lors de l'envoi de l'évènement contexte détruit (context destroyed) à l'instance de classe d'écoute org.apache.myfaces.webapp.StartupServletContextListener: java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory. 
    	at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
    	at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
    	at org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:159) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at org.apache.myfaces.context.servlet.FacesContextImplBase.getELContext(FacesContextImplBase.java:210) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:1463) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
    	at org.apache.myfaces.webapp.AbstractFacesInitializer._createFacesContext(AbstractFacesInitializer.java:477) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at org.apache.myfaces.webapp.AbstractFacesInitializer.initShutdownFacesContext(AbstractFacesInitializer.java:459) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:155) [myfaces-bundle-2.1.14.jar:2.1.14]
    	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3489) [jbossweb-7.0.13.Final.jar:]
    	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3999) [jbossweb-7.0.13.Final.jar:]
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3917) [jbossweb-7.0.13.Final.jar:]
    	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.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_45]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
    	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
    
    13:03:50,203 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) RewriteFilter starting up...
    13:03:50,218 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.web.deployment.default-host./pretty-access: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./pretty-access: JBAS018040: Failed to start context
    	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
    	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
    	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
    
    13:03:50,259 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [4] org.ocpsoft.rewrite.servlet.spi.RewriteLifecycleListener [org.ocpsoft.rewrite.cdi.bridge.RewriteLifecycleEventBridge<-100>, org.ocpsoft.rewrite.cdi.bridge.RewriteLifecycleEventBridge<-100>, org.ocpsoft.rewrite.servlet.impl.DefaultRewriteLifecycleListener<2147483647>, org.ocpsoft.rewrite.servlet.config.lifecycle.JoinRewriteLifecycleListener<2147483647>]
    13:03:50,261 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [3] org.ocpsoft.rewrite.servlet.spi.RequestCycleWrapper [org.ocpsoft.rewrite.cdi.bridge.RequestCycleWrapperBridge<0>, org.ocpsoft.rewrite.cdi.bridge.RequestCycleWrapperBridge<0>, org.ocpsoft.rewrite.servlet.impl.HttpRewriteRequestCycleWrapper<0>]
    13:03:50,264 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [3] org.ocpsoft.rewrite.spi.RewriteProvider [org.ocpsoft.rewrite.servlet.impl.DefaultHttpRewriteProvider<0>, org.ocpsoft.rewrite.cdi.bridge.RewriteProviderBridge<100>, org.ocpsoft.rewrite.cdi.bridge.RewriteProviderBridge<100>]
    13:03:50,267 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [1] org.ocpsoft.rewrite.spi.RewriteResultHandler [org.ocpsoft.rewrite.servlet.impl.HttpRewriteResultHandler<0>]
    13:03:50,268 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [1] org.ocpsoft.rewrite.servlet.spi.InboundRewriteProducer [org.ocpsoft.rewrite.servlet.impl.HttpInboundRewriteProducer<0>]
    13:03:50,269 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [1] org.ocpsoft.rewrite.servlet.spi.OutboundRewriteProducer [org.ocpsoft.rewrite.servlet.impl.HttpOutboundRewriteProducer<0>]
    13:03:50,271 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [0] org.ocpsoft.rewrite.servlet.spi.ContextListener []
    13:03:50,274 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [0] org.ocpsoft.rewrite.servlet.spi.RequestListener []
    13:03:50,276 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [0] org.ocpsoft.rewrite.servlet.spi.RequestParameterProvider []
    13:03:50,293 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [2] org.ocpsoft.rewrite.el.spi.ExpressionLanguageProvider [org.ocpsoft.rewrite.cdi.CdiExpressionLanguageProvider<10>, org.ocpsoft.rewrite.cdi.CdiExpressionLanguageProvider<10>]
    13:03:50,298 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [0] org.ocpsoft.rewrite.spi.InvocationResultHandler []
    13:03:50,302 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [2] org.ocpsoft.common.spi.ServiceEnricher [org.ocpsoft.rewrite.cdi.CdiServiceEnricher, org.ocpsoft.rewrite.cdi.CdiServiceEnricher]
    13:03:50,307 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [1] org.ocpsoft.rewrite.spi.ConfigurationCacheProvider [org.ocpsoft.rewrite.servlet.impl.ServletContextConfigurationCacheProvider<0>]
    13:03:50,316 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) Loaded [5] org.ocpsoft.rewrite.config.ConfigurationProvider [org.ocpsoft.rewrite.annotation.config.AnnotationConfigProvider<100>, at.w0mb.prettyMigration.rewrite.AccessRewriteConfiguration<10>, at.w0mb.prettyMigration.rewrite.AccessRewriteConfiguration<10>, at.w0mb.prettyMigration.rewrite.LoginInterceptor<0>, at.w0mb.prettyMigration.rewrite.LoginInterceptor<0>]
    13:03:50,328 Infos [org.ocpsoft.rewrite.servlet.impl.DefaultHttpRewriteProvider] (MSC service thread 1-6) Loaded [0] org.ocpsoft.rewrite.spi.RuleCacheProvider []
    13:03:50,393 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) RewriteFilter initialized.
    13:03:50,429 INFO  [org.jboss.web] (MSC service thread 1-6) JBAS018210: Registering web context: /prettyMigration
    13:03:50,437 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015951: Admin console listening on http://127.0.0.1:9990
    13:03:50,438 ERROR [org.jboss.as] (MSC service thread 1-6) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 6166ms - Started 404 of 485 services (2 services failed or missing dependencies, 78 services are passive or on-demand)
    13:03:50,655 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "prettyMigration.war" was rolled back with no failure message
    13:03:50,663 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) RewriteFilter shutting down...
    13:03:50,664 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "pretty-access.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./pretty-access" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./pretty-access: JBAS018040: Failed to start context"}}
    13:03:50,685 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016009: Stopping weld service for deployment pretty-access.war
    13:03:50,664 Infos [org.ocpsoft.rewrite.servlet.RewriteFilter] (MSC service thread 1-6) RewriteFilter deactivated.
    13:03:50,705 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016009: Stopping weld service for deployment prettyMigration.war
    13:03:50,720 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment prettyMigration.war in 63ms
    13:03:50,734 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment pretty-access.war in 69ms
    13:03:50,736 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
    JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./pretty-access: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./pretty-access: JBAS018040: Failed to start context
    
    13:03:50,755 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./pretty-access" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./pretty-access: JBAS018040: Failed to start context"}}}}
    13:03:50,759 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
    
    #26098

    Try removing MyFaces from you project. You don’t need to include a JSF implementation in your project if you deploy to a JEE container.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Comments are closed.