Can't run PrimeFaces Extensions java.lang.ClassNotFoundException: org.primefaces.util.ComponentTraversalUtils - primefaces-extensions

Gretting I'm struggling with this exception and I can't find any help.
My jars are
jars
My primefaces config
primefaces config

I solved it. I just need to add all the necessary depended jars of prime-extensions.

Related

struts2 configuration bean issue

Recently i started looking into struts2 and I've been noticing this weird problem
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name struts has already been loaded by bean - jar:file:/C:/Users/M/.m2/repository/org/apache/struts/struts2-core/2.5.13/struts2-core-2.5.13.jar!/struts-default.xml:75:72
In the stack it complains about the bean already loaded with the same jar. I noticed couple questions regarding this, but nothing fixed the issue. I am not using two struts2-core jars, both same version. I did mvn clean,but that didn't fix the issue.
The issue is intermittent, sometimes it just works fine and sometimes it fails.
pom.xml
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.5.13</version>
</dependency>
Try this:
Close your eclipse (or other IDE);
Go to this folder on your PC C:/Users/M/.m2/repository/ and delete everything in it;
Open your project and update Maven Project (Alt+F5 in eclipse).
This steps will restore all jars in your local repository and will fix all conflicts, if there any.
I tried clearing all the jars from .m2 folder, I also tried removing the jar from the target folders, re importing all maven dependencies. But that didn't work.
The issue was due to intellij iml file, there was a struts2 library entry that i needed to delete

How can I read a Grails 2.x project dependencies programmatically?

I have a Grails 2.x project with a BuildConfig.groovy, and I need to read the dependencies programmatically, using some kind of API that will process the file so that I can read how it would be at runtime. So far I have been unable to locate the right class in the Grails API for processing a BuildConfig.groovy.
How can I do this?
Thanks
Use this simple command to generate your dependency report -
grails dependency-report runtime
reference - doc

How do I configure installation of plugins in Grails 3.0.4?

I'm porting an application from Grails 2.4.2 to Grails 3.0.4, and I'm having problems with some plugins that were installed previously. Specifically one that is referenced in a GSP page. The particular plugin is called google-visualizer, and I've found some info here:
https://github.com/bmuschko/grails-google-visualization/blob/master/grails-app/views/formatter/index.gsp
However, I am clueless as to how to install this. I have not found the particular jar file in any maven repo, so I can't add it as a Gradle dependency. In general, where is it documented how to install existing plugins in Grails 3.X? I've read the documentation on how to port existing plugins, but that's not what I'm trying to do. I simply want to tell Grails/Gradle that I'd like to use this particular plugin and have it resolve the dependencies for me. I've tried this syntax as shown here:
https://grails.org/plugins/tag/grails3
Example:
compile ":quartz:1.0.2"
I've put that line in the dependencies block in my build.gradle file, but it doesn't work. I get errors from Gradle. Is there a particular Maven repo that has to be added for plugins? Any help with this is appreciated. Thanks.
Grails 1.x and 2.x plugins are sadly not compatible with Grails 3.x.
You can find the plugins that already have been ported to Grails 3 at: https://bintray.com/grails/plugins/
The grails-google-visualization plugin is not released in a Grails 3 version, but from the repo, it appears that work has started on upgrading.
You can see the progress on a Grails 3 version in this issue: https://github.com/bmuschko/grails-google-visualization/issues/49
Benjamin searched for a new maintainer back some time ago, and found a volunteer - see this tread for details: https://twitter.com/bmuschko/status/498610606896066560
For those plugins that are most important, the Grails Core team maintains a list here: https://github.com/grails/grails-core/wiki/Grails-3-Priority-Upgrade-Plugins
Some of the old plugins will be replaced by their Gradle counterpart, fx. the codenarc plugin, that exist in a Gradle version already.
A simple way is to find out the JAR file for the plugin and then use them in Grails 3.0.4. In this way there is no need to change the source code of the plugin

Add a JAR to WEB-INF\lib in Grails Portlets

I'm using the Grails Porlets Plugin, and the generated portlet doesn't deploy because it needs commons-logging.jar, adding it manually to WEB-INF\lib in the generated portlet with 'grails war' solves the problem.
How can I do to automatically add this dependency to WEB-INF\lib every time I generate a new version of the portlet without having to do it manually?
Configure commons-logging.jar as a dependency of your application in BuildConfig.groovy. You'll need to add something like the following:
dependencies {
runtime 'commons-logging:commons-logging:1.1.1'
}
If you put your libs in the appname\lib-folder it should be included automatically in you war-file.

How to get sources for Grails dependencies

How can I get Ivy to download the sources for dependencies from within Grails?
I tried editing all the ivy.xml files I could find as per this, but no luck.
~/.grails/1.3.4/projects/workspace-sts/integration-files/ivy.xml
/c/grails-1.3.4/src/grails/ant/ivy.xml
I've been reading the grails source, and can't find any way to do this. Does anyone have any ideas?
I just use:
grails refresh-dependencies --include-source
Grails Eclipse Scripts Plugin

Resources