Results 1 to 2 of 2
  1. #1
    Arash.Babak is offline Member
    Join Date
    Sep 2014
    Location
    Mashhad, Iran
    Posts
    2
    Rep Power
    0

    Default org.apache.catalina.LifecycleException: Failed to start component

    Hi,
    When i add these lines

    <locale-config>
    <default-locale>fa</default-locale>
    <supported-locale>pes</supported-locale>
    </locale-config>
    <resource-bundle>
    <base-name>Text.Text</base-name>
    <var>text</var>
    </resource-bundle>

    in my faces-config.xml file, i get these errors:

    ================================================== ================================================== =================
    SEVERE: ContainerBase.addChild: start:
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Workshop]]
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:154)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:649)
    at org.apache.catalina.startup.HostConfig.deployDescr iptor(HostConfig.java:672)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:547)
    at org.apache.catalina.startup.HostConfig.check(HostC onfig.java:1671)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invo ke(BaseModelMBean.java:301)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:801)
    at org.apache.catalina.manager.ManagerServlet.check(M anagerServlet.java:1485)
    at org.apache.catalina.manager.ManagerServlet.deploy( ManagerServlet.java:882)
    at org.apache.catalina.manager.ManagerServlet.doGet(M anagerServlet.java:368)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:620)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at org.apache.catalina.filters.SetCharacterEncodingFi lter.doFilter(SetCharacterEncodingFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:122)
    at org.apache.tomee.catalina.OpenEJBValve.invoke(Open EJBValve.java:44)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:610)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:950)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:1070)
    at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:316)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$Wrapping Runnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces configuration file: file:/F:/Web%20Design/wwwroot/Ali%20Farvardin/Farvardin%20Workshop/Workshop/build/web/WEB-INF/faces-config.xml: Unexpected element {http://xmlns.jcp.org/xml/ns/javaee}locale-config, 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.load Application(TomcatWebAppBuilder.java:2150)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.star tInternal(TomcatWebAppBuilder.java:1134)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.conf igureStart(TomcatWebAppBuilder.java:1087)
    at org.apache.tomee.catalina.GlobalListenerSupport.li fecycleEvent(GlobalListenerSupport.java:130)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecyc leEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5378)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
    ... 42 more
    Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces configuration file: file:/F:/Web%20Design/wwwroot/Ali%20Farvardin/Farvardin%20Workshop/Workshop/build/web/WEB-INF/faces-config.xml: Unexpected element {http://xmlns.jcp.org/xml/ns/javaee}locale-config, 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.readFace sConfig(ReadDescriptors.java:831)
    at org.apache.openejb.config.DeploymentLoader.addFace sConfigs(DeploymentLoader.java:1366)
    at org.apache.openejb.config.DeploymentLoader.createW ebModule(DeploymentLoader.java:1014)
    at org.apache.openejb.config.DeploymentLoader.createW ebModule(DeploymentLoader.java:777)
    at org.apache.openejb.config.DeploymentLoader.load(De ploymentLoader.java:211)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.load Application(TomcatWebAppBuilder.java:2148)
    ... 49 more
    Caused by: javax.xml.bind.UnmarshalException: Unexpected element {http://xmlns.jcp.org/xml/ns/javaee}locale-config, 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.validationErr or(RuntimeContext.java:390)
    at org.metatype.sxc.jaxb.RuntimeContext.validationErr or(RuntimeContext.java:379)
    at org.metatype.sxc.jaxb.RuntimeContext.unexpectedEle ment(RuntimeContext.java:225)
    at org.apache.openejb.jee.FacesConfig$JAXB._read(Face sConfig$JAXB.java:343)
    at org.apache.openejb.jee.FacesConfig$JAXB.read(Faces Config$JAXB.java:399)
    at org.apache.openejb.jee.FacesConfig$JAXB.read(Faces Config$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.jav a:143)
    at org.apache.openejb.sxc.FacesConfigXml.unmarshal(Fa cesConfigXml.java:34)
    at org.apache.openejb.config.ReadDescriptors.readFace sConfig(ReadDescriptors.java:827)
    ... 54 more

    Sep 08, 2014 9:51:26 AM org.apache.catalina.startup.HostConfig deployDescriptor
    SEVERE: Error deploying configuration descriptor D:\Sun\Apache TomEE Plume\conf\Catalina\localhost\Workshop.xml
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Workshop]]
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:904)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:649)
    at org.apache.catalina.startup.HostConfig.deployDescr iptor(HostConfig.java:672)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:547)
    at org.apache.catalina.startup.HostConfig.check(HostC onfig.java:1671)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invo ke(BaseModelMBean.java:301)
    at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:819)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:801)
    at org.apache.catalina.manager.ManagerServlet.check(M anagerServlet.java:1485)
    at org.apache.catalina.manager.ManagerServlet.deploy( ManagerServlet.java:882)
    at org.apache.catalina.manager.ManagerServlet.doGet(M anagerServlet.java:368)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:620)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at org.apache.catalina.filters.SetCharacterEncodingFi lter.doFilter(SetCharacterEncodingFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:122)
    at org.apache.tomee.catalina.OpenEJBValve.invoke(Open EJBValve.java:44)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:610)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:950)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:1070)
    at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:316)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$Wrapping Runnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
    ================================================== ================================================== =================

    faces-config.xml:

    ================================================== ================================================== =================
    <?xml version='1.0' encoding='UTF-8'?>
    <faces-config version="2.2" xmlns="http://xmlns.jcp.org/xml/ns/javaee" 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">
    <locale-config>
    <default-locale>fa</default-locale>
    <supported-locale>pes</supported-locale>
    </locale-config>
    <resource-bundle>
    <base-name>Text.Text</base-name>
    <var>text</var>
    </resource-bundle>
    </faces-config>
    ================================================== ================================================== =================


    Specification:

    Web Server: Apache TomEE Plume 1.7.0

    Framework: JSF

    Libraries: JSF2.2, PrimeFaces 5.0, Eclipselink 2.5

    Platform : JDK 1.8

    IDE: Netbeans 8.0



    What is wrong?

    Thank you in advance.

  2. #2
    Arash.Babak is offline Member
    Join Date
    Sep 2014
    Location
    Mashhad, Iran
    Posts
    2
    Rep Power
    0

    Default Re: org.apache.catalina.LifecycleException: Failed to start component

    I Found the answer.
    Sometimes a simple thing can't be seen. When i was commenting some lines in my faces-config.xml, i commented application start tag as well. Unfortunately i didn't notice this line of error: "Unexpected element {http://xmlns.jcp.org/xml/ns/javaee}locale-config, expected [{http://java.sun.com/xml/ns/javaee}application".

Similar Threads

  1. Replies: 3
    Last Post: 08-08-2014, 08:41 PM
  2. Replies: 6
    Last Post: 03-29-2014, 12:10 AM
  3. Replies: 4
    Last Post: 12-07-2010, 10:34 PM
  4. glassfish server3 start failed
    By jyothi.priyanka in forum NetBeans
    Replies: 1
    Last Post: 07-26-2010, 05:09 AM
  5. How to rotate catalina.out without restarting tomcat
    By kzvi.kzvi.1 in forum Advanced Java
    Replies: 1
    Last Post: 03-25-2010, 06:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •