Build from source problem

UI Components for JSF
Post Reply
50819
Posts: 33
Joined: 16 Dec 2011, 16:54
Location: Switzerland

10 Sep 2013, 08:47

Hi,

After some weeks Itried to build primefaces from source with latest trunk version from source. Maven build (clean install) is successful.

But if I deploy it within my web application, I always get the following error on tomcat startup:

Code: Select all

com.sun.faces.config.ConfigurationException: java.lang.Exception: No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String getWidgetVar(java.lang.String)
	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processFunctions(FaceletTaglibConfigProcessor.java:620)
	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:318)
	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263)
	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:363)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Exception: No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String getWidgetVar(java.lang.String)
	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.createMethod(FaceletTaglibConfigProcessor.java:661)
	at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processFunctions(FaceletTaglibConfigProcessor.java:617)
	... 14 more
I saw in sources, that there was a refactoring in ComponentUtils from getWidgetVar to resolveWidgetVar (I think), but I do not understand, why error occurs. Seams NOT to be a common problem, found no other forum topic...

Can anyone help me, what could be wrong? I made some smaller changes in local sources (js, xml, java) for my needs - but I do not think, that there is anything with widgetVar. Perhaps I need to replace sth.???

Environment is Tomcat 7.0.33, jdk 1.6.0.25 with JSF Mojarra 2.1.23.

Thanks for every hint in advance.
mala

And - actually, I have an eclipse error in Column.java: The method getElementsCount() of type Column must override a superclass method, so I removed the @Overwrite in ColumnTemplate
PF 4.0, Tomcat, Mojarra 2.1, Spring 3.2, Hibernate 4.2

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

10 Sep 2013, 08:55

Looks like you somehow use a old taglib XML
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

50819
Posts: 33
Joined: 16 Dec 2011, 16:54
Location: Switzerland

10 Sep 2013, 10:01

Hi Thomas,

thank you for your fast answer and the hint, so I was able to solve the problem.

I have the file "primefaces-p.taglib.xml" extracted from jar to my local WEB-INF folder to have autocomplete feature in eclispe for some added attributes. After reextracting it from jar, it is working again.

mala
PF 4.0, Tomcat, Mojarra 2.1, Spring 3.2, Hibernate 4.2

ClaudioC
Posts: 114
Joined: 26 Sep 2013, 10:40

15 Nov 2013, 15:21

I've the same problem, but after follow your hint the situation is the same :

Code: Select all

SEVERE:   ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.lang.Exception: No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String resolveWidgetVar(java.lang.String)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5920)
	at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2278)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1924)
	at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:356)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1762)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
	at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
	at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
	at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.lang.Exception: No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String resolveWidgetVar(java.lang.String)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:273)
	at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5362)
	at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:743)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5898)
	... 44 more
I've downloaded primefaces4.0.jar and after extracted it , i've copy primefaces-p.taglib.xml in my META-INF folder. The problem continue to persist. I also make a clean on Maven but this time the problem persist.
How can i fix this problem ? I'm using Maven, JDK 1.7, Netbeans 7.3.1.
Thanks for your help
Netbeans 8.1, PrimeFaces 5.3.10 + PrimeFaces Extensions 4.0, Glassfish ver4.1, Chrome with NetbeansPlugin

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

16 Nov 2013, 08:20

Not sure why this occurs to you,I didn't find any issues with build from source.Just checkout the latest code from trunk and adding the primefaces repo works without issues.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

ClaudioC
Posts: 114
Joined: 26 Sep 2013, 10:40

02 Dec 2013, 12:07

Simply i re-made the project from the beginning and all goes well.
Netbeans 8.1, PrimeFaces 5.3.10 + PrimeFaces Extensions 4.0, Glassfish ver4.1, Chrome with NetbeansPlugin

yamada
Posts: 13
Joined: 20 Mar 2012, 19:20

28 Aug 2014, 22:38

Just had the same error message.

In my case I had the old 3.5 jar in the glassfish/lib folder so the "primefaces-p.taglib.xml" file from 3.5 was taking precedence over the one in the jar bundled with the application.
JDK 1.7
PRIMEFACES 5.0
NB 8.0
JSF 2.2
GlassFish 4.0 (Mojarra 2.2.8)

felipediasnike
Posts: 2
Joined: 03 Sep 2014, 23:06

03 Sep 2014, 23:13

RESOLVED!!! :D
For those who are using maven the problem occurs because there are conflicting versions of primefaces lib in project / target / project / WEB-INF / lib folder
Simply just delete the conflicting lib and make the deploy again.
Example: ... / lib
primefaces-3.5.jar
primefaces-5.0.jar
Delete: primefaces-3.5.jar

felipediasnike
Posts: 2
Joined: 03 Sep 2014, 23:06

03 Sep 2014, 23:18

RESOLVED!!! :D
For those who are using maven the problem occurs because there are conflicting versions of primefaces lib in project / target / project / WEB-INF / lib folder
Simply just delete the conflicting lib and make the deploy again.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 51 guests