[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2016-05-30 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306450#comment-15306450
 ] 

Romain Manni-Bucau commented on TOMEE-1021:
---

[~abyss] can you 1. open another issue targetting 7.0.0 2. share the 
faces-config.xml you use and the full stack trace please? We surely need to 
enhance a test cause 
https://github.com/apache/tomee/blob/master/container/openejb-jee-accessors/src/test/resources/a-faces-config-22.xml#L61
 should check it

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
> Fix For: 1.7.0
>
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/x

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2016-05-30 Thread Petras (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306430#comment-15306430
 ] 

Petras commented on TOMEE-1021:
---

This issue is marked as resolved, though I still get exception using TomEE 
7.0.0 if I try to used {{redirect-param}} element insider {{redirect}} as shown 
in my previous post:
{code}
Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
org.apache.openejb.OpenEJBException: Cannot unmarshall the faces configuration 
file: file:/C:/.../WEB-INF/navigation-rules.xml: Unexpected element 
{http://xmlns.jcp.org/xml/ns/javaee}redirect-param, expected 
[{http://java.sun.com/xml/ns/javaee}view-param]
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2213)
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1133)
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1094)
at 
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
... 56 more
{code}

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
> Fix For: 1.7.0
>
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.cata

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2015-03-26 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14381555#comment-14381555
 ] 

Romain Manni-Bucau commented on TOMEE-1021:
---

well 2.0 should let it be now even if not read/parsed. 1.7 doesnt

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
> Fix For: 1.7.0
>
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:824)
>   a

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2015-03-25 Thread Roger Ripley (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14380951#comment-14380951
 ] 

Roger Ripley commented on TOMEE-1021:
-

TomEE 2.0.0 snapshot builds still won't let you use those tags, regardless if 
MyFaces 2.2 is supporting them, because faces-config.xml is being parsed by 
org.apache.openejb packages.

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
> Fix For: 1.7.0
>
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2015-02-26 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14338375#comment-14338375
 ] 

Romain Manni-Bucau commented on TOMEE-1021:
---

yes was really a task to tolerate few tags, now tomee 2 already supports 
myfaces 2.2 not sure this task makes much sense

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
> Fix For: 1.7.0
>
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.openejb.config.ReadDescrip

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2015-02-26 Thread Petras (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14338348#comment-14338348
 ] 

Petras commented on TOMEE-1021:
---

It seems still some issues left. I use TomEE v1.71 with MyFaces v2.2.7
For this navigation case:
{code:xml}

someFlow
/someFlow/someFlow.xhtml



{code}
Get:
{code}
Caused by: javax.xml.bind.UnmarshalException: Unexpected element 
{http://xmlns.jcp.org/xml/ns/javaee}to-flow-document-id, expected 
[{http://java.sun.com/xml/ns/javaee}description, 
{http://java.sun.com/xml/ns/javaee}display-name, 
{http://java.sun.com/xml/ns/javaee}icon, 
{http://java.sun.com/xml/ns/javaee}from-action, 
{http://java.sun.com/xml/ns/javaee}from-outcome, 
{http://java.sun.com/xml/ns/javaee}if, 
{http://java.sun.com/xml/ns/javaee}to-view-id, 
{http://java.sun.com/xml/ns/javaee}redirect]
at 
org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:390)
at 
org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:379)
at 
org.metatype.sxc.jaxb.RuntimeContext.unexpectedElement(RuntimeContext.java:225)
at 
org.apache.openejb.jee.FacesNavigationCase$JAXB._read(FacesNavigationCase$JAXB.java:181)
at 
org.apache.openejb.jee.FacesNavigationCase$JAXB.readFacesNavigationCase(FacesNavigationCase$JAXB.java:53)
at 
org.apache.openejb.jee.FacesNavigationRule$JAXB._read(FacesNavigationRule$JAXB.java:151)
at 
org.apache.openejb.jee.FacesNavigationRule$JAXB.readFacesNavigationRule(FacesNavigationRule$JAXB.java:54)
at 
org.apache.openejb.jee.FacesConfig$JAXB._read(FacesConfig$JAXB.java:257)
at 
org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:399)
at 
org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:61)
at org.apache.openejb.sxc.Sxc.unmarshall(Sxc.java:167)
at org.apache.openejb.sxc.Sxc.unmarhsal(Sxc.java:158)
at org.apache.openejb.sxc.Sxc.unmarshalJavaee(Sxc.java:143)
at 
org.apache.openejb.sxc.FacesConfigXml.unmarshal(FacesConfigXml.java:34)
at 
org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:827)
... 66 more
{code}

For navigation case
{code:xml}

myLetters
/portal/letter/letterList.xhtml


type
LETTER



{code}
get
{code}
Caused by: javax.xml.bind.UnmarshalException: Unexpected element 
{http://xmlns.jcp.org/xml/ns/javaee}redirect-param, expected 
[{http://java.sun.com/xml/ns/javaee}view-param]
at 
org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:390)
at 
org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:379)
at 
org.metatype.sxc.jaxb.RuntimeContext.unexpectedElement(RuntimeContext.java:225)
at 
org.apache.openejb.jee.FacesRedirect$JAXB._read(FacesRedirect$JAXB.java:117)
at 
org.apache.openejb.jee.FacesRedirect$JAXB.readFacesRedirect(FacesRedirect$JAXB.java:48)
at 
org.apache.openejb.jee.FacesNavigationCase$JAXB._read(FacesNavigationCase$JAXB.java:178)
at 
org.apache.openejb.jee.FacesNavigationCase$JAXB.readFacesNavigationCase(FacesNavigationCase$JAXB.java:53)
at 
org.apache.openejb.jee.FacesNavigationRule$JAXB._read(FacesNavigationRule$JAXB.java:151)
at 
org.apache.openejb.jee.FacesNavigationRule$JAXB.readFacesNavigationRule(FacesNavigationRule$JAXB.java:54)
at 
org.apache.openejb.jee.FacesConfig$JAXB._read(FacesConfig$JAXB.java:257)
at 
org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:399)
at 
org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:61)
at org.apache.openejb.sxc.Sxc.unmarshall(Sxc.java:167)
at org.apache.openejb.sxc.Sxc.unmarhsal(Sxc.java:158)
at org.apache.openejb.sxc.Sxc.unmarshalJavaee(Sxc.java:143)
at 
org.apache.openejb.sxc.FacesConfigXml.unmarshal(FacesConfigXml.java:34)
at 
org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:827)
... 66 more
{code}

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
> Fix For: 1.7.0
>
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleExcept

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-11-19 Thread MyPey (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826544#comment-13826544
 ] 

MyPey commented on TOMEE-1021:
--

Indeed...

It runs now, the same war file with the same faces-config.xml file ran in glass 
fish...

Thanks !

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:824)
>   at 
> org.apac

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-11-19 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826400#comment-13826400
 ] 

Romain Manni-Bucau commented on TOMEE-1021:
---

context-param should be in web.xml, not faces-config.xml AFAIK

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:824)
>   at 
> org.apache.openejb.config.Dep

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-11-19 Thread Peyrusaubes (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826354#comment-13826354
 ] 

Peyrusaubes commented on TOMEE-1021:


Here:

http://java.sun.com/xml/ns/javaee";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd";>


javax.faces.STATE_SAVING_METHOD
server

State saving method: "client" or "server" (= default)




XXX



*


logout
/Login.xhtml



  



> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {ht

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-11-19 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826341#comment-13826341
 ] 

Romain Manni-Bucau commented on TOMEE-1021:
---

can you share your faces-config.xml?



> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:824)
>   at 
> org.apache.openejb.config.DeploymentLoader.addFacesCo

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-11-19 Thread Peyrusaubes (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13826338#comment-13826338
 ] 

Peyrusaubes commented on TOMEE-1021:


Hello,

I have the same problem... I've tried with 1.5.3-snapshot and 1.6.0-snapshot...

I'm trying to deploy a war (CDI, JPA, JSF)

org.apache.tomee.catalina.TomEERuntimeException: 
org.apache.openejb.OpenEJBException: Cannot unmarshall the faces configuration 
file: 
file:/private/tmp/com.valtechtraining/NoteDeFrais/1.0-SNAPSHOT/apache-tomee/webapps/NoteDeFrais/WEB-INF/faces-config.xml:
 élément inattendu (URI : "http://java.sun.com/xml/ns/javaee";, local : 
"context-param"). Les éléments attendus sont 
<{http://java.sun.com/xml/ns/javaee}faces-config-extension>,<{http://java.sun.com/xml/ns/javaee}component>,<{http://java.sun.com/xml/ns/javaee}converter>,<{http://java.sun.com/xml/ns/javaee}lifecycle>,<{http://java.sun.com/xml/ns/javaee}name>,<{http://java.sun.com/xml/ns/javaee}ordering>,<{http://java.sun.com/xml/ns/javaee}factory>,<{http://java.sun.com/xml/ns/javaee}application>,<{http://java.sun.com/xml/ns/javaee}navigation-rule>,<{http://java.sun.com/xml/ns/javaee}render-kit>,<{http://java.sun.com/xml/ns/javaee}behavior>,<{http://java.sun.com/xml/ns/javaee}referenced-bean>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}managed-bean>,<{http://java.sun.com/xml/ns/javaee}absolute-ordering>
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1903)

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-10-22 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802637#comment-13802637
 ] 

Romain Manni-Bucau commented on TOMEE-1021:
---

should be better now

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:824)
>   at 
> org.apache.openejb.config.DeploymentLoader.addFacesConfigs(DeploymentLo

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-10-22 Thread Leonardo Uribe (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802220#comment-13802220
 ] 

Leonardo Uribe commented on TOMEE-1021:
---

I have found something like this:

{{
http://xmlns.jcp.org/xml/ns/javaee";
  xmlns:xi="http://www.w3.org/2001/XInclude";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd";>



org.apache.myfaces.example.windowScope.WindowScopeELResolver


/blue/*
blue



}}

Cause the same exception:

org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/client-window-example]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
at 
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
org.apache.openejb.OpenEJBException: Cannot unmarshall the faces configuration 
file: 
file:/D:/workspace/myfaces/test22/apache-tomee-webprofile-1.6.0-SNAPSHOT/webapps/client-window-example/WEB-INF/faces-config.xml:
 Unexpected element 
{http://xmlns.jcp.org/xml/ns/javaee}resource-library-contracts, expected 
[{http://java.sun.com/xml/ns/javaee}action-listener, 
{http://java.sun.com/xml/ns/javaee}default-render-kit-id, 
{http://java.sun.com/xml/ns/javaee}message-bundle, 
{http://java.sun.com/xml/ns/javaee}navigation-handler, 
{http://java.sun.com/xml/ns/javaee}view-handler, 
{http://java.sun.com/xml/ns/javaee}state-manager, 
{http://java.sun.com/xml/ns/javaee}el-resolver, 
{http://java.sun.com/xml/ns/javaee}property-resolver, 
{http://java.sun.com/xml/ns/javaee}variable-resolver, 
{http://java.sun.com/xml/ns/javaee}resource-handler, 
{http://java.sun.com/xml/ns/javaee}system-event-listener, 
{http://java.sun.com/xml/ns/javaee}locale-config, 
{http://java.sun.com/xml/ns/javaee}resource-bundle, 
{http://java.sun.com/xml/ns/javaee}application-extension, 
{http://java.sun.com/xml/ns/javaee}default-validators]
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2006)
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1054)
at 
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1014)
at 
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

It seems there is still things to do in this issue, it shouldn't be that hard. 
Could you please help me with this? or at least could you please point me to 
the lines this is happening, so I can check the code and provide a patch?

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> or

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-09-03 Thread Leonardo Uribe (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13757065#comment-13757065
 ] 

Leonardo Uribe commented on TOMEE-1021:
---

I have tried with the latest snapshot 
(apache-tomee-1.6.0-20130903.041125-168-webprofile.zip) and now the exception 
is gone. Thanks for the help.

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.openejb.config.ReadDesc

[jira] [Commented] (TOMEE-1021) Allow read JSF 2.2 faces-config.xml files

2013-08-26 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/TOMEE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13749915#comment-13749915
 ] 

Romain Manni-Bucau commented on TOMEE-1021:
---

Hi

can you give it another try please?

> Allow read JSF 2.2 faces-config.xml files
> -
>
> Key: TOMEE-1021
> URL: https://issues.apache.org/jira/browse/TOMEE-1021
> Project: TomEE
>  Issue Type: Improvement
>Reporter: Leonardo Uribe
>
> Hi
> I'm working on MyFaces 2.2.x, and on the way I have found that Tomee doesn't 
> allow faces-config.xml files in JSF 2.2 format. Since the spec was out some 
> months ago, it would be great if you guys can allow this so I can test 
> MyFaces 2.2.x + Tomee just changing the jars. 
> Here is the exception I have:
> org.apache.catalina.LifecycleException: Failed to start component 
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>   at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
>   at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: 
> org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1953)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1025)
>   at 
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:985)
>   at 
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>   at 
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>   at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>   ... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces 
> configuration file: : Unexpected element 
> {http://xmlns.jcp.org/xml/ns/javaee}flow-definition, expected 
> [{http://java.sun.com/xml/ns/javaee}application, 
> {http://java.sun.com/xml/ns/javaee}ordering, 
> {http://java.sun.com/xml/ns/javaee}absolute-ordering, 
> {http://java.sun.com/xml/ns/javaee}factory, 
> {http://java.sun.com/xml/ns/javaee}component, 
> {http://java.sun.com/xml/ns/javaee}converter, 
> {http://java.sun.com/xml/ns/javaee}managed-bean, 
> {http://java.sun.com/xml/ns/javaee}name, 
> {http://java.sun.com/xml/ns/javaee}navigation-rule, 
> {http://java.sun.com/xml/ns/javaee}referenced-bean, 
> {http://java.sun.com/xml/ns/javaee}render-kit, 
> {http://java.sun.com/xml/ns/javaee}lifecycle, 
> {http://java.sun.com/xml/ns/javaee}validator, 
> {http://java.sun.com/xml/ns/javaee}behavior, 
> {http://java.sun.com/xml/ns/javaee}faces-config-extension]
>   at 
> org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:824)
>   at 
> org.apache.openejb.config.Deployment