0 Replies Latest reply on Jul 20, 2018 1:25 PM by Noe Briones

    Ayuda con errores en migración de GlassFish a JBoss

    Noe Briones Newbie

      Estoy migrando un proyecto de GlassFish a JBoss, pero al compilar me manda los siguientes errores.

       

      11:02:10,153 WARN  [org.jboss.modules] (Weld Thread Pool -- 2) Failed to define class org.eclipse.persistence.jpa.rs.exceptions.JPARSExceptionMapper in Module "org.eclipse.persistence" from local module loader @47fd17e3 (finder: local module finder @7cdbc5d3 (roots: C:\jboss\modules,C:\jboss\modules\system\layers\base)): java.lang.NoClassDefFoundError: Failed to link org/eclipse/persistence/jpa/rs/exceptions/JPARSExceptionMapper (Module "org.eclipse.persistence" from local module loader @47fd17e3 (finder: local module finder @7cdbc5d3 (roots: C:\jboss\modules,C:\jboss\modules\system\layers\base))): javax/ws/rs/ext/ExceptionMapper

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)

      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)

      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)

      at org.jboss.modules.Module.loadModuleClass(Module.java:713)

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)

      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)

      at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68)

      at org.jboss.weld.bootstrap.AnnotatedTypeLoader.loadClass(AnnotatedTypeLoader.java:65)

      at org.jboss.weld.bootstrap.FastAnnotatedTypeLoader.createContext(FastAnnotatedTypeLoader.java:110)

      at org.jboss.weld.bootstrap.FastAnnotatedTypeLoader.loadAnnotatedType(FastAnnotatedTypeLoader.java:89)

      at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:94)

      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:61)

      at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:58)

      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)

      at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)

      at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:748)

      at org.jboss.threads.JBossThread.run(JBossThread.java:320)

       

       

      11:02:10,206 INFO  [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 2) WELD-000119: Not generating any bean definitions from org.eclipse.persistence.jpa.rs.exceptions.JPARSExceptionMapper because of underlying class loading error: Type Failed to link org.eclipse.persistence.jpa.rs.exceptions.JPARSExceptionMapper (Module "org.eclipse.persistence" from local module loader @47fd17e3 (finder: local module finder @7cdbc5d3 (roots: C:\jboss\modules,C:\jboss\modules\system\layers\base))): javax.ws.rs.ext.ExceptionMapper not found.  If this is unexpected, enable DEBUG logging to see the full error.

      11:02:12,049 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 121) Inicializando Mojarra 2.2.13.SP4  para el contexto '/SSECOE'

      11:02:13,574 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 121) Critical error during deployment: : com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

      at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:331)

      at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236)

      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:439)

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)

      at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)

      at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:205)

      at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:174)

      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)

      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

      at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:239)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:99)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:748)

      at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Caused by: javax.faces.FacesException: org.jboss.portletbridge.context.FacesContextFactoryImpl

      at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:394)

      at javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:270)

      at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:543)

      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:283)

      at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328)

      ... 23 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.portletbridge.context.FacesContextFactoryImpl from [Module "deployment.SSECCOE.war" from Service Module Loader]

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)

      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Class.java:348)

      at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:382)

      ... 27 more

       

       

      11:02:13,716 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 121) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./SSECOE: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./SSECOE: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:84)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:748)

      at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:241)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:99)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)

      ... 6 more

      Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)

      at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)

      at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:205)

      at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:174)

      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)

      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

      at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:239)

      ... 8 more

      Caused by: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

      at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:331)

      at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236)

      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:439)

      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)

      ... 20 more

      Caused by: javax.faces.FacesException: org.jboss.portletbridge.context.FacesContextFactoryImpl

      at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:394)

      at javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:270)

      at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:543)

      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:283)

      at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328)

      ... 23 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.portletbridge.context.FacesContextFactoryImpl from [Module "deployment.SSECCOE.war" from Service Module Loader]

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)

      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Class.java:348)

      at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:382)

      ... 27 more

       

       

      11:02:13,781 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operación ("deploy") falló - dirección: ([("deployment" => "SSECCOE.war")]) - descripción de la falla: {"WFLYCTL0080: Servicios fallidos" => {"jboss.undertow.deployment.default-server.default-host./SSECOE" => "java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

          Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

          Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

          Caused by: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

          Caused by: javax.faces.FacesException: org.jboss.portletbridge.context.FacesContextFactoryImpl

          Caused by: java.lang.ClassNotFoundException: org.jboss.portletbridge.context.FacesContextFactoryImpl from [Module \"deployment.SSECCOE.war\" from Service Module Loader]"}}

      11:02:13,822 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Implementado "SSECCOE.war" (runtime-name : "SSECCOE.war")

      11:02:13,824 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Reporte del estatus del servicio

      WFLYCTL0186: Servicios que no lograron iniciar:      service jboss.undertow.deployment.default-server.default-host./SSECOE: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.FacesContextFactory' was not configured properly.

       

       

      11:02:13,924 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Reanudando el servidor

      11:02:13,928 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Interfaz de administración http escuchando en http://127.0.0.1:9990/management

      11:02:13,929 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Consola de administración escuchando en http://127.0.0.1:9990

      11:02:13,929 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: JBoss EAP 7.1.0.GA (WildFly Core 3.0.10.Final-redhat-1)  inició (con errores) en 20136ms - Inició 1601 de 1830 servicios (2 servicios fallaron o faltan dependencias, 354 servicios son perezosos, pasivos o por demanda)

       

       

       

       

      Encontré que hay que configurar:

       

      I just switched from glassfish to wildfly 9 and I would like to use Eclipselink since it is what I was using before. I added the eclipselink.jar in the C:\wildfly-9.0.2.Final\modules\system\layers\base\org\eclipse\persistence\main folder. And did the following

      added to module.xml :

          <resource-root path="eclipselink.jar"> <filter> <exclude path="javax/**" /> </filter>

      in persistence.xml :

      <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>


       

      Ya lo realice pero aún me sigue marcando este error, de ante mano mil gracias.

       

      Saludos!!!