Erro VoltMenuRenderer

Post Reply
fsantosmg
Posts: 4
Joined: 16 Oct 2015, 02:46

25 Apr 2017, 22:40

I'm use primefaces 6.0 and volt2.1.2.
My application return :

17:29:07,625 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 13) Inicializando Mojarra 2.2.13.SP1 20160303-1204 para o contexto '/aphoras'
17:29:08,282 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 13) Critical error during deployment: : com.sun.faces.config.ConfigurationException:
Source Document: file:/C:/dev/wildfly-10.1.0.Final/standalone/deployments/aphoras.war/WEB-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.volt.component.menu.VoltMenuRenderer': javax.faces.FacesException: org.primefaces.volt.component.menu.VoltMenuRenderer from [Module "deployment.aphoras.war:main" from Service Module Loader]
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:378)
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:288)
at com.sun.faces.config.processor.RenderKitConfigProcessor.addRenderers(RenderKitConfigProcessor.java:313)
at com.sun.faces.config.processor.RenderKitConfigProcessor.process(RenderKitConfigProcessor.java:179)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.ManagedBeanConfigProcessor.process(ManagedBeanConfigProcessor.java:270)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.ValidatorConfigProcessor.process(ValidatorConfigProcessor.java:120)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.ConverterConfigProcessor.process(ConverterConfigProcessor.java:126)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.ComponentConfigProcessor.process(ComponentConfigProcessor.java:117)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:362)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:137)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:239)
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:200)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: javax.faces.FacesException: org.primefaces.volt.component.menu.VoltMenuRenderer from [Module "deployment.aphoras.war:main" from Service Module Loader]
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:428)
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:301)
... 38 more
Caused by: java.lang.ClassNotFoundException: org.primefaces.volt.component.menu.VoltMenuRenderer from [Module "deployment.aphoras.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.faces.util.Util.loadClass(Util.java:364)
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:420)
... 39 more

17:29:08,283 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 13) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./aphoras: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./aphoras: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: file:/C:/dev/wildfly-10.1.0.Final/standalone/deployments/aphoras.war/WEB-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.volt.component.menu.VoltMenuRenderer': javax.faces.FacesException: org.primefaces.volt.component.menu.VoltMenuRenderer


But I configured faces-config as in the tutorial:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.2"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web- ... ig_2_2.xsd">

<component>
<component-type>org.primefaces.component.VoltMenu</component-type>
<component-class>org.primefaces.volt.component.menu.VoltMenu</component-class>
</component>

<render-kit>
<renderer>
<component-family>org.primefaces.component</component-family>
<renderer-type>org.primefaces.component.VoltMenuRenderer</renderer-type>
<renderer-class>org.primefaces.volt.component.menu.VoltMenuRenderer</renderer-class>
</renderer>
</render-kit>
</faces-config>

User avatar
aragorn
Posts: 2638
Joined: 29 Jun 2013, 12:38

01 May 2017, 12:24

Did you try our sample project? Also, do you have theme.jar or VoltMenu.java and VoltMenuRenderer.java in your project?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest