You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Peyrusaubes (JIRA)" <ji...@apache.org> on 2013/11/19 10:27:22 UTC

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

    [ 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 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(DeploymentLoader.java:1291)
> 	at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:948)
> 	at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:753)
> 	at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:196)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1951)
> 	... 18 more
> Caused by: javax.xml.bind.UnmarshalException: 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.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.FacesConfig$JAXB._read(FacesConfig$JAXB.java:340)
> 	at org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:396)
> 	at org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:61)
> 	at org.apache.openejb.sxc.Sxc.unmarshall(Sxc.java:168)
> 	at org.apache.openejb.sxc.Sxc.unmarhsal(Sxc.java:159)
> 	at org.apache.openejb.sxc.Sxc.unmarshalJavaee(Sxc.java:144)
> 	at org.apache.openejb.sxc.FacesConfigXml.unmarshal(FacesConfigXml.java:34)
> 	at org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:820)
> 	... 23 more
> I would appreciate your help with this, specially because some new features JSF 2.2 requires CDI and Tomee comes in handy.



--
This message was sent by Atlassian JIRA
(v6.1#6144)