elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Sigue las noticias más importantes de seguridad informática en el Twitter! de elhacker.NET


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web (Moderador: #!drvy)
| | |-+  Excepción con TomEE
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Excepción con TomEE  (Leído 2,276 veces)
bertamax

Desconectado Desconectado

Mensajes: 40


Ver Perfil
Excepción con TomEE
« en: 9 Diciembre 2014, 10:20 am »

Soy nueva con TomEE, siguiendo este tutorial: http://jaxenter.com/getting-started-with-apache-tomee-105824.html he intentado implementarlo en mi proyecto, pero me da la siguiente excepción:
Código
  1. java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyProject]]
  2. at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
  3. at java.util.concurrent.FutureTask.get(Unknown Source)
  4. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
  5. at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
  6. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  7. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
  8. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
  9. at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  10. at java.util.concurrent.FutureTask.run(Unknown Source)
  11. at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  12. at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  13. at java.lang.Thread.run(Unknown Source)
  14. Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyProject]]
  15. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
  16. ... 7 more
  17. Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces configuration file: file:/home/user/MyWorkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyProject/WEB-INF/faces-config.xml: Unexpected element {http://xmlns.jcp.org/xml/ns/javaee}protected-views, 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]
  18. at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2150)
  19. at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1134)
  20. at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1087)
  21. at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
  22. at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  23. at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
  24. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
  25. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  26. ... 7 more
  27. Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the faces configuration file: file:/home/user/MyWorkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyProject/WEB-INF/faces-config.xml: Unexpected element {http://xmlns.jcp.org/xml/ns/javaee}protected-views, 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]
  28. at org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:831)
  29. at org.apache.openejb.config.DeploymentLoader.addFacesConfigs(DeploymentLoader.java:1396)
  30. at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:1044)
  31. at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:779)
  32. at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:213)
  33. at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2148)
  34. ... 14 more
  35. Caused by: javax.xml.bind.UnmarshalException: Unexpected element {http://xmlns.jcp.org/xml/ns/javaee}protected-views, 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]
  36. at org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:390)
  37. at org.metatype.sxc.jaxb.RuntimeContext.validationError(RuntimeContext.java:379)
  38. at org.metatype.sxc.jaxb.RuntimeContext.unexpectedElement(RuntimeContext.java:225)
  39. at org.apache.openejb.jee.FacesConfig$JAXB._read(FacesConfig$JAXB.java:343)
  40. at org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:399)
  41. at org.apache.openejb.jee.FacesConfig$JAXB.read(FacesConfig$JAXB.java:61)
  42. at org.apache.openejb.sxc.Sxc.unmarshall(Sxc.java:167)
  43. at org.apache.openejb.sxc.Sxc.unmarhsal(Sxc.java:158)
  44. at org.apache.openejb.sxc.Sxc.unmarshalJavaee(Sxc.java:143)
  45. at org.apache.openejb.sxc.FacesConfigXml.unmarshal(FacesConfigXml.java:34)
  46. at org.apache.openejb.config.ReadDescriptors.readFacesConfig(ReadDescriptors.java:827)
  47. ... 19 more
  48. Dec 5, 2014 2:42:38 PM org.apache.catalina.core.ContainerBase startInternal
  49. SEVERE: A child container failed during start
  50. java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
  51. at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
  52. at java.util.concurrent.FutureTask.get(Unknown Source)
  53. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
  54. at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
  55. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  56. at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
  57. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  58. at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
  59. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  60. at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
  61. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  62. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  63. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  64. at java.lang.reflect.Method.invoke(Unknown Source)
  65. at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
  66. at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
  67. Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
  68. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
  69. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
  70. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
  71. at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  72. at java.util.concurrent.FutureTask.run(Unknown Source)
  73. at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  74. at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  75. at java.lang.Thread.run(Unknown Source)
  76. Caused by: org.apache.catalina.LifecycleException: A child container failed during start
  77. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
  78. at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
  79. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  80. ... 7 more
  81. Dec 5, 2014 2:42:38 PM org.apache.catalina.startup.Catalina start
  82. SEVERE: The required Server component failed to start so Tomcat is unable to start.
  83. org.apache.catalina.LifecycleException: Failed to start component [StandardServer[9005]]
  84. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
  85. at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
  86. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  87. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  88. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  89. at java.lang.reflect.Method.invoke(Unknown Source)
  90. at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
  91. at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
  92. Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
  93. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
  94. at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
  95. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  96. ... 7 more
  97. Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
  98. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
  99. at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
  100. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  101. ... 9 more
  102. Caused by: org.apache.catalina.LifecycleException: A child container failed during start
  103. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
  104. at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
  105. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  106. ... 11 more

No entiendo qué es lo que puede fallar.



I delete The Servers folder and I configure again to run with TomEE, I get the following exception:
Código
  1. java.lang.IncompatibleClassChangeError: class org.apache.bcel.util.ClassPath$2 has interface org.apache.bcel.util.ClassPath$ClassFile as super class
  2. at java.lang.ClassLoader.defineClass1(Native Method)
  3. at java.lang.ClassLoader.defineClassCond(Unknown Source)
  4. at java.lang.ClassLoader.defineClass(Unknown Source)
  5. at java.security.SecureClassLoader.defineClass(Unknown Source)
  6. at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
  7. at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1148)
  8. at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
  9. at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
  10. at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:1956)
  11. at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1919)
  12. at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1806)
  13. at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1765)
  14. at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1751)
  15. at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1255)
  16. at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:882)
  17. at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:317)
  18. at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  19. at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
  20. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5081)
  21. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  22. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
  23. at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
  24. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  25. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
  26. at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
  27. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  28. at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
  29. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  30. at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
  31. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  32. at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
  33. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  34. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  35. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  36. at java.lang.reflect.Method.invoke(Unknown Source)
  37. at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
  38. at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)



The problem is with the xalan-2.7.1.jar library. I do not know how to make it works with TomEE.

Mod: No hacer doble post. Utilizar etiquetas [code][/code] para publicar output.


« Última modificación: 15 Diciembre 2014, 14:29 pm por #!drvy » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Excepcion SQLException
Java
al020594 4 2,784 Último mensaje 13 Enero 2013, 03:34 am
por Slider324
Capturar excepcion
Programación C/C++
Xedrox 2 2,214 Último mensaje 6 Agosto 2013, 01:31 am
por BlackZeroX
Lanzar excepcion « 1 2 »
Programación C/C++
Jaquieline_JJ 10 4,325 Último mensaje 24 Abril 2014, 00:54 am
por Jaquieline_JJ
Excepción con TomEE
Desarrollo Web
bertamax 0 1,655 Último mensaje 10 Diciembre 2014, 13:01 pm
por bertamax
Un MDB en TOMEE
Ejercicios
desatole 0 2,175 Último mensaje 6 Marzo 2015, 16:15 pm
por desatole
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines