dropping in the jar in for ecuador (or ultima) doesn't work

Post Reply
bizhub
Posts: 6
Joined: 06 May 2014, 04:55

30 Aug 2018, 03:05

Hey guys,

Firstly congrats on all the good work.
Got a problem using ecuador and utima themes (a general problem I guess).
I have tried multiple times over the last 6 months to drop the theme jars into my project under WEB-INF/lib/ but they wont find the theme's specialised menu renderering classes.
I am using Wildfly 10, with the faces version included in wildfly.
I have tried this in an ear and war deployment and both behave the same.
I get the stack below - essentially ClassNotFoundException.
The only way I've found to work around this is to put org.primefaces.ecuador.component sources files into my project so they are compiled into WEB-INF/classes/. Then they can be loaded.
Any advice on what I'm doing wrong?

Thanks fellas,
Mike.

10:28:45,945 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 332) Critical error during deployment: : com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.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.deploy(DeploymentManagerImpl.java:198)
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(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:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.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)
... 29 more
Caused by: java.lang.ClassNotFoundException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.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(Class.java:348)
at com.sun.faces.util.Util.loadClass(Util.java:364)
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:420)
... 30 more

10:28:45,946 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 332) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./skyve: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./skyve: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.war:main" from Service Module Loader]
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
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:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.war:main" from Service Module Loader]
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:231)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
... 6 more
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.war:main" from Service Module Loader]
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.deploy(DeploymentManagerImpl.java:198)
... 8 more
Caused by: com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.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)
... 10 more
Caused by: javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.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)
... 29 more
Caused by: java.lang.ClassNotFoundException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module "deployment.skyve.ear.skyve.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(Class.java:348)
at com.sun.faces.util.Util.loadClass(Util.java:364)
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:420)
... 30 more

10:28:45,955 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./skyve" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./skyve: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module \"deployment.skyve.ear.skyve.war:main\" from Service Module Loader]
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module \"deployment.skyve.ear.skyve.war:main\" from Service Module Loader]
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module \"deployment.skyve.ear.skyve.war:main\" from Service Module Loader]
Caused by: com.sun.faces.config.ConfigurationException:
Source Document: vfs:/Users/mike/_/skyve/skyve-ee/javaee/skyve.ear/skyve.war/WEB-INF/lib/ecuador-theme-2.0.0.jar/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.primefaces.ecuador.component.EcuadorMenuRenderer': javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module \"deployment.skyve.ear.skyve.war:main\" from Service Module Loader]
Caused by: javax.faces.FacesException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module \"deployment.skyve.ear.skyve.war:main\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException: org.primefaces.ecuador.component.EcuadorMenuRenderer from [Module \"deployment.skyve.ear.skyve.war:main\" from Service Module Loader]"}}

bizhub
Posts: 6
Joined: 06 May 2014, 04:55

30 Aug 2018, 03:18

OK, so I can see why the ecuador menu is loading - the classes are not in the ecuador theme jar!
Why does ultima-1.1.3.jar have the menu renderer classes in it but ecuador.2.0.0.jar does not?
Also ultima jar has things aranged under META-INF/ but ecuador jar does not.
My original question is still valid but for the ultima theme - the menu renderer wont load...

Thanks guys,
Mike


bizhub
Posts: 6
Joined: 06 May 2014, 04:55

31 Aug 2018, 05:02

Thanks for the videos.

I'm surpised that
1) ecuador jar doesn't contain the class files for the its menu - I had to add them to my source path.
2) The resources can't be served out of the ecuador jar itself and must be placed in a resources folder.

but anyway, I'm up and running - cheers.

huseyinT
Posts: 123
Joined: 27 Mar 2016, 13:05

03 Sep 2018, 08:05

You are welcome,

Greetings,

cagatay.civici
Prime
Posts: 17996
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Oct 2018, 09:50

Menu belongs to the layout so not included in the theme jar, ecuador jar contains the component related resources only like the theme. Rest of the resources are placed inside layout, still you may customize it as you did.

Post Reply

Return to “Ecuador - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest