javax.faces.FacesException

Can’t parse configuration file: jndi:/localhost/padraoJSF/WEB-INF/faces-config.xml: Error at line 18 column 25: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘managed-bean-class’. One of ‘{“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”:managed-bean-name}’ is expected.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1354

  • Can’t parse configuration file: jndi:/localhost/padraoJSF/WEB-INF/faces-config.xml: Error at line 18 column 25: cvc-complex-type.2.4.a: Invalid content was found starting with elementmanaged-bean-class’. One of ‘{“http://java.sun.com/xml/ns/javaee
  • via Icesoft by ramak, 2 weeks ago
    Can't parse configuration file: jndi:/server/component-showcase/WEB-INF/faces-config.xml: Error at line 228 column 20: The content of element type "managed-bean" must match "(description*,display-name*,icon*,managed-bean-name,managed-bean-class,managed-bean-scope,(managed-property*|map-entries|list-entries))".
  • via java2s.com by Unknown author, 4 months ago
    Can't parse configuration file: jndi:/server/component-showcase/WEB-INF/faces-config.xml: Error at line 228 column 20: The content of element type "managed-bean" must match "(description*,display-name*,icon*,managed-bean-name,managed-bean-class,managed-bean-scope,(managed-property*|map-entries|list-entries))".
  • Stack trace

    • javax.faces.FacesException: Can’t parse configuration file: jndi:/localhost/padraoJSF/WEB-INF/faces-config.xml: Error at line 18 column 25: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘managed-bean-class’. One of ‘{“http://java.sun.com/xml
    • s/javaee”:description, “http://java.sun.com/xml
    • s/javaee”:display-name, “http://java.sun.com/xml
    • s/javaee”:icon, “http://java.sun.com/xml
    • s/javaee”:managed-bean-name}’ is expected. at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:376) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago