org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Workshop]]

Coderanch | Arash Babak | 2 years ago
  1. 0

    org.apache.catalina.LifecycleException

    Coderanch | 2 years ago | Arash Babak
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Workshop]]
  2. 0

    Re: Unmarshalling error when I rename my mapping file to make sure at runtime this mapping is referred not the generated one.

    openejb-users | 4 years ago | Bibhuti
    orm.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", lo cal:"entity"). Expected elements are <{http://java.sun.com/xml/ns/persistence/orm}package> ,<{http://java.sun.com/xml/ns/persistence/orm}sequence-generator>,<{http://java.sun.com/xm l/ns/persistence/orm}mapped-superclass>,<{http://java.sun.com/xml/ns/persistence/orm}named -query>,<{http://java.sun.com/xml/ns/persistence/orm}access>,<{http://java.sun.com/xml/ns/ persistence/orm}table-generator>,<{http://java.sun.com/xml/ns/persistence/orm}persistence- unit-metadata>,<{http://java.sun.com/xml/ns/persistence/orm}entity>,<{http://java.sun.com/ xml/ns/persistence/orm}embeddable>,<{http://java.sun.com/xml/ns/persistence/orm}catalog>,< {http://java.sun.com/xml/ns/persistence/orm}named-native-query>,<{http://java.sun.com/xml/ ns/persistence/orm}sql-result-set-mapping>,<{http://java.sun.com/xml/ns/persistence/orm}sc hema>,<{http://java.sun.com/xml/ns/persistence/orm}description>
  3. 0

    Re: Unmarshalling error when I rename my mapping file to make sure at runtime this mapping is referred not the generated one.

    openejb-users | 4 years ago | Bibhuti
    org.apache.openejb.OpenEJBException: Cannot unmarshall the openejb-cmp-orm.xml file: jar:f ile:/E:/Softwares/apache-tomee-1.5.1-plus/apache-tomee-plus-1.5.1/apps/EntityBean.jar!/MET A-INF/openejb-cmp-orm.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", lo cal:"entity"). Expected elements are <{http://java.sun.com/xml/ns/persistence/orm}package> ,<{http://java.sun.com/xml/ns/persistence/orm}sequence-generator>,<{http://java.sun.com/xm l/ns/persistence/orm}mapped-superclass>,<{http://java.sun.com/xml/ns/persistence/orm}named -query>,<{http://java.sun.com/xml/ns/persistence/orm}access>,<{http://java.sun.com/xml/ns/ persistence/orm}table-generator>,<{http://java.sun.com/xml/ns/persistence/orm}persistence- unit-metadata>,<{http://java.sun.com/xml/ns/persistence/orm}entity>,<{http://java.sun.com/ xml/ns/persistence/orm}embeddable>,<{http://java.sun.com/xml/ns/persistence/orm}catalog>,< {http://java.sun.com/xml/ns/persistence/orm}named-native-query>,<{http://java.sun.com/xml/ ns/persistence/orm}sql-result-set-mapping>,<{http://java.sun.com/xml/ns/persistence/orm}sc hema>,<{http://java.sun.com/xml/ns/persistence/orm}description>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Unmarshalling error when I rename my mapping file to make sure at runtime this mapping is referred not the generated one.

    openejb-users | 4 years ago | Bibhuti
    org.apache.openejb.OpenEJBException: Cannot unmarshall the openejb-cmp-orm.xml file: jar:f ile:/E:/Softwares/apache-tomee-1.5.1-plus/apache-tomee-plus-1.5.1/apps/EntityBean.jar!/MET A-INF/openejb-cmp-orm.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", lo cal:"entity"). Expected elements are <{http://java.sun.com/xml/ns/persistence/orm}package> ,<{http://java.sun.com/xml/ns/persistence/orm}sequence-generator>,<{http://java.sun.com/xm l/ns/persistence/orm}mapped-superclass>,<{http://java.sun.com/xml/ns/persistence/orm}named -query>,<{http://java.sun.com/xml/ns/persistence/orm}access>,<{http://java.sun.com/xml/ns/ persistence/orm}table-generator>,<{http://java.sun.com/xml/ns/persistence/orm}persistence- unit-metadata>,<{http://java.sun.com/xml/ns/persistence/orm}entity>,<{http://java.sun.com/ xml/ns/persistence/orm}embeddable>,<{http://java.sun.com/xml/ns/persistence/orm}catalog>,< {http://java.sun.com/xml/ns/persistence/orm}named-native-query>,<{http://java.sun.com/xml/ ns/persistence/orm}sql-result-set-mapping>,<{http://java.sun.com/xml/ns/persistence/orm}sc hema>,<{http://java.sun.com/xml/ns/persistence/orm}description>
  6. 0

    Glassfish 4.1, JPA 2.1 persistance.xml

    Stack Overflow | 2 years ago
    javax.xml.bind.UnmarshalException: unexpected element (uri:"http://xmlns.jcp.org/xml/ns/persistence", local:"persistence"). Expected elements are <{http://java.sun.com/xml/ns/persistence}persistence>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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.validationError()
    2. SXC JAXB :: Core
      RuntimeContext.unexpectedElement
      1. org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:390)
      2. org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:379)
      3. org.metatype.sxc.jaxb.RuntimeContext.unexpectedElement(RuntimeContext.java:225)
      3 frames
    3. OpenEJB :: Container :: Java EE
      FacesConfig$JAXB.read
      1. org.apache.openejb.jee.FacesConfig$JAXB._read(FacesConfig$JAXB.java:343)
      2. org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:399)
      3. org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:61)
      3 frames
    4. OpenEJB :: Container :: Java EE Accessors
      FacesConfigXml.unmarshal
      1. org.apache.openejb.sxc.Sxc.unmarshall(Sxc.java:167)
      2. org.apache.openejb.sxc.Sxc.unmarhsal(Sxc.java:158)
      3. org.apache.openejb.sxc.Sxc.unmarshalJavaee(Sxc.java:143)
      4. org.apache.openejb.sxc.FacesConfigXml.unmarshal(FacesConfigXml.java:34)
      4 frames
    5. OpenEJB :: OSGi :: Core
      DeploymentLoader.load
      1. org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:827)
      2. org.apache.openejb.config.DeploymentLoader.addFacesConfigs(DeploymentLoader.java:1366)
      3. org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:1014)
      4. org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:777)
      5. org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:211)
      5 frames
    6. OpenEJB :: TomEE :: Catalina
      GlobalListenerSupport.lifecycleEvent
      1. org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2148)
      2. org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1134)
      3. org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1087)
      4. org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
      4 frames
    7. Glassfish Core
      HostConfig.check
      1. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      2. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      3. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
      4. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
      8. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672)
      9. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:547)
      10. org.apache.catalina.startup.HostConfig.check(HostConfig.java:1671)
      10 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    9. Embedded GlassFish Web
      BaseModelMBean.invoke
      1. org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
      1 frame
    10. Java RT
      JmxMBeanServer.invoke
      1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
      2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
      2 frames
    11. org.apache.catalina
      ManagerServlet.doGet
      1. org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1485)
      2. org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:882)
      3. org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:368)
      3 frames
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2 frames
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    14. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    15. Glassfish Core
      StandardContextValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
      4. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      5. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      6. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      7 frames
    16. OpenEJB :: TomEE :: Catalina
      OpenEJBValve.invoke
      1. org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
      1 frame
    17. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
      2. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      3. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      4. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      5. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      6. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      6 frames
    18. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      3 frames
    19. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    20. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    21. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame