Primefaces 10 主题 Avalon 3.0.0 ClassNotFoundException org.primefaces.avalon.component.AvalonMenuRenderer
Primefaces 10 theme Avalon 3.0.0 ClassNotFoundException org.primefaces.avalon.component.AvalonMenuRenderer
环境:
- Jboss 7.2
- Java11
- JSF 2.3
- Primefaces 10
- Primefaces 主题 Avalon 3.0.0
主题 Avalon 3.0.0 的新版本似乎缺少 class avalon-theme-3.0 上的 AvalonMenuRenderer。0.jar.There 只是 META-INF 文件夹
难道是?
加载迁移到 avalon 3.0.0 的项目时出现此错误。
错误日志
14:56:14,600 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 83) Critical error during deployment: : com.sun.faces.config.ConfigurationException:
Source Document: vfs:/C:/desarrollo/workspace/accfor2/accfor/accfor-ear/target/accfor2/accfor-extra.war/WEB-INF/lib/avalon-3.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.avalon.component.AvalonMenuRenderer': javax.faces.FacesException: org.primefaces.avalon.component.AvalonMenuRenderer from [Module "deployment.accfor2.ear.accfor-extra.war" from Service Module Loader]
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:382)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:291)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.RenderKitConfigProcessor.addRenderers(RenderKitConfigProcessor.java:323)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.RenderKitConfigProcessor.process(RenderKitConfigProcessor.java:180)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ManagedBeanConfigProcessor.process(ManagedBeanConfigProcessor.java:271)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ValidatorConfigProcessor.process(ValidatorConfigProcessor.java:121)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ConverterConfigProcessor.process(ConverterConfigProcessor.java:127)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ComponentConfigProcessor.process(ComponentConfigProcessor.java:118)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:403)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:138)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:246)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:443)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:237)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl.call(DeploymentManagerImpl.java:216)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl.call(DeploymentManagerImpl.java:185)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.ServletRequestContextThreadSetupAction.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.ContextClassLoaderSetupAction.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create[=11=](SecurityContextThreadSetupAction.java:105)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.run(UndertowDeploymentService.java:78)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: javax.faces.FacesException: org.primefaces.avalon.component.AvalonMenuRenderer from [Module "deployment.accfor2.ear.accfor-extra.war" from Service Module Loader]
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:431)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:304)
... 42 more
Caused by: java.lang.ClassNotFoundException: org.primefaces.avalon.component.AvalonMenuRenderer from [Module "deployment.accfor2.ear.accfor-extra.war" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.util.Util.loadClass(Util.java:333)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:423)
... 43 more
看起来这个问题已经解决,并且有一个新的 JAR 可用。
环境:
- Jboss 7.2
- Java11
- JSF 2.3
- Primefaces 10
- Primefaces 主题 Avalon 3.0.0
主题 Avalon 3.0.0 的新版本似乎缺少 class avalon-theme-3.0 上的 AvalonMenuRenderer。0.jar.There 只是 META-INF 文件夹
难道是?
加载迁移到 avalon 3.0.0 的项目时出现此错误。
错误日志
14:56:14,600 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 83) Critical error during deployment: : com.sun.faces.config.ConfigurationException:
Source Document: vfs:/C:/desarrollo/workspace/accfor2/accfor/accfor-ear/target/accfor2/accfor-extra.war/WEB-INF/lib/avalon-3.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.avalon.component.AvalonMenuRenderer': javax.faces.FacesException: org.primefaces.avalon.component.AvalonMenuRenderer from [Module "deployment.accfor2.ear.accfor-extra.war" from Service Module Loader]
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:382)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:291)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.RenderKitConfigProcessor.addRenderers(RenderKitConfigProcessor.java:323)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.RenderKitConfigProcessor.process(RenderKitConfigProcessor.java:180)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ManagedBeanConfigProcessor.process(ManagedBeanConfigProcessor.java:271)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ValidatorConfigProcessor.process(ValidatorConfigProcessor.java:121)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ConverterConfigProcessor.process(ConverterConfigProcessor.java:127)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ComponentConfigProcessor.process(ComponentConfigProcessor.java:118)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:403)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:138)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:155)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:246)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:443)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:237)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl.call(DeploymentManagerImpl.java:216)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl.call(DeploymentManagerImpl.java:185)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.ServletRequestContextThreadSetupAction.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.ContextClassLoaderSetupAction.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create[=11=](SecurityContextThreadSetupAction.java:105)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create[=11=](UndertowDeploymentInfoService.java:1502)
at io.undertow.servlet@2.0.15.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
at org.wildfly.extension.undertow@7.2.0.GA-redhat-00005//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.run(UndertowDeploymentService.java:78)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads@2.3.2.Final-redhat-1//org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: javax.faces.FacesException: org.primefaces.avalon.component.AvalonMenuRenderer from [Module "deployment.accfor2.ear.accfor-extra.war" from Service Module Loader]
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:431)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:304)
... 42 more
Caused by: java.lang.ClassNotFoundException: org.primefaces.avalon.component.AvalonMenuRenderer from [Module "deployment.accfor2.ear.accfor-extra.war" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.util.Util.loadClass(Util.java:333)
at com.sun.jsf-impl@2.3.5.SP2-redhat-00001//com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:423)
... 43 more
看起来这个问题已经解决,并且有一个新的 JAR 可用。