How can I install MAVEN-JSF-PLUGIN 1.3.3-SNAPSHOT

UI Components for JSF
schlebe
Posts: 212
Joined: 25 Sep 2015, 13:32
Location: Colmar-Berg (Luxembourg)

03 Aug 2016, 14:54

Recently, I will correct an error in Primefaces 6.0.

So I download branch 6.0 from GITHUB and I use the new functionnality Clone or Download on GIT desktop.
This work, but the branch installed is not the 6.0 but the MASTER branch.

After wasting a lot of time, I decide to install Primefaces 6.0 from ZIP file and this work fine.

I compile the version 6.0 and I have only a little problem with CSS than begin with *html !
I put these lines in comment and I compile again and the build run without error.

Then I build my application and I start it ... and my program crash with following error

Code: Select all

Severe:   Critical error during deployment: 
com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jar:file:/C:/GIT_SOURCES/TLGA-Web/web/target/web-1.13.2-SNAPSHOT/WEB-INF/lib/primefaces-6.0-GOODYEAR.jar!/META-INF/primefaces-p.taglib.xml': Invalid byte 1 of 1-byte UTF-8 sequence.
	at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:773)
	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:441)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)
	at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5394)
	at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:743)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5932)
	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:2286)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)
	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:500)
	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:539)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
	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.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
	at java.lang.Thread.run(Thread.java:745)
So I search to find the reason and to correct it.

The problem is that the treeTable.xml file contains U+201C and U+201D characters (unicode double quote) and that these characters are copied (I don't know how) in primefaces.taglib.xml without error until the J2EE application is loaded.

I correct these characters, I rebuild Primefaces JAR and I test and all work correctly.

I go to GITHUB to correct it; but before correcting it I verify if the code is not already corrected in MASTER version.
I see that the correction is already done. Good I have nothing to do.

So I decide to install MASTER version, but when I do that the build doesn't work because Primefaces use MAVEN-JSF-PLUGIN version 1.3.3-SNAPSHOT !

So my question is

How can I find or install this plugin so that I can build a MASTER version of Primefaces 6.0 ?

Another question is how is it possible that Primefaces 6.0 JAR version downloaded dynamically with Maven work correctly and that the same version downloaded and installed manually doesn't work ! Is it possible that these 2 versions are not same ?
PrimeFaces 6.2.4
Mojarra 2.2.13
Glassfish 4.1

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

04 Aug 2016, 00:03

The maven plugin development is in the PrimeFaces github too. If you need a snapshot version, you need to check that that out and build it

https://github.com/primefaces/maven-jsf-plugin

schlebe
Posts: 212
Joined: 25 Sep 2015, 13:32
Location: Colmar-Berg (Luxembourg)

05 Aug 2016, 10:45

Yes, I can do what you rate ... but it is not simple.

But I think ... Has Primefaces a repository from which I can download 1.3.3-SNAPSHOT automatically using MAVEN ?

I have try it (see third <repository>), but Netbeans say that he cannot find 1.3.3-SNAPSHOT (see comment at bottom).

Something like this

Code: Select all

    <pluginRepositories>
        <pluginRepository>
            <id>mycompany-nexus-release</id>
            <name>MyCompany Nexus</name>
            <url>http://gisrv40:8081/nexus/content/repositories/releases</url>
        </pluginRepository>
    </pluginRepositories>

    <repositories>

        <repository>
            <id>central</id>
            <name>Maven Repository Switchboard</name>
            <layout>default</layout>
            <url>http://repo1.maven.org/maven2</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>

        <repository>
            <id>mycompany-nexus-release</id>
            <name>MyCompany Nexus</name>
            <url>http://gisrv40.gis.mycompany.com:8081/nexus/content/groups/public</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        
        <repository>
            <id>prime-repo</id>
            <name>PrimeFaces Maven Repository</name>
            <url>http://repository.primefaces.org</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>
I have visited Primefaces repository and 1.3.3-SNAPSHOT is not there !

It will be great if a Primefaces administrator can put this version on Primefaces repository so that we can use it AUTOMATICALLY.
Last edited by schlebe on 27 Apr 2017, 10:20, edited 1 time in total.
PrimeFaces 6.2.4
Mojarra 2.2.13
Glassfish 4.1

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

05 Aug 2016, 13:05

schlebe wrote:But I think ... Has Primefaces a repository from which I can download 5.3.3-SNAPSHOT automatically using MAVEN ?
No, the 5.3.3 source is in the jar you can download from the elite site!

schlebe
Posts: 212
Joined: 25 Sep 2015, 13:32
Location: Colmar-Berg (Luxembourg)

27 Apr 2017, 10:41

kukeltje wrote:
05 Aug 2016, 13:05
No, the 5.3.3 source is in the jar you can download from the elite site!
Hello Kukeltje,

I think that there is a misunderstood !

I search 1.3.3-SNAPSHOT for MAVEN-JSF-PLUGIN and not 5.3.3 for PRIMEFACES release that I can found on Primefaces site since I have subscribe to an Elite contract.

On a Maven repository https://mvnrepository.com/artifact/org. ... ugin/1.3.2 I can found 1.3.2 release but nothing about 1.3.3-SNAPSHOT version.

Why Primefaces has pushed 1.3.2 version of MAVEN-JSF-PLUGIN but not 1.3.3-SNAPSHOT ?

If there exists no reason to not copy 1.3.3-SNAPSHOT, can somebody of Primefaces to that ? Thanks

For your information, I will test a functionnality that I have corrected on GIT in version 6.0 in August 2016 and that is not corrected in version 6.1.
I have donwloaded Primefaces 6.1; but the MAVEN build crashs because it doesn't find 1.3.3-SNAPSHOT !
This is the same error that I have with version 6.0 but I don't find how at this time, I have resolved the problem.

This a painful when I think that simply pushing 1.3.3-SNAPSHOT will certainly solve the problem for me and for all others developpers that will participate to Primefaces development.

Can somebody help me ?
PrimeFaces 6.2.4
Mojarra 2.2.13
Glassfish 4.1

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

27 Apr 2017, 10:50

https://github.com/primefaces/primeface ... rom-Source

if you follow this, the snapshot version will be in your local maven repo.
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

schlebe
Posts: 212
Joined: 25 Sep 2015, 13:32
Location: Colmar-Berg (Luxembourg)

03 May 2017, 15:05

@tandraschko: thank for your help.

To solve my problem, I have downloaded the MAVEN-JSF-PLUGIN using git command like described in your linked URL.
I have build the jar using MVN CLEAN INSTALL command in DOS prompt.

AND I have added following line in Primefaces POM file just before </dependencies> that close <dependencies> XML block.

Code: Select all

<dependency>
    <groupId>org.primefaces</groupId>
    <artifactId>maven-jsf-plugin</artifactId>
    <version>1.3.3-SNAPSHOT</version>
    <scope>system</scope>
    <systemPath>C:\GIT_SOURCES\maven-jsf-plugin\target\maven-jsf-plugin-1.3.3-SNAPSHOT.jar</systemPath>
</dependency>
.
I have rebuild Primfaces and ... surprise ... the build has correctly be executed.
PrimeFaces 6.2.4
Mojarra 2.2.13
Glassfish 4.1

Babas007
Posts: 251
Joined: 24 May 2011, 09:42

01 Aug 2017, 16:26

I'm having exactly the same problem... using maven-jsfplugin 1.3.3 does not solve it...

LCT
Posts: 9
Joined: 05 Sep 2017, 11:48

16 Nov 2017, 16:24

schlebe wrote:
03 May 2017, 15:05
@tandraschko: thank for your help.

To solve my problem, I have downloaded the MAVEN-JSF-PLUGIN using git command like described in your linked URL.
I have build the jar using MVN CLEAN INSTALL command in DOS prompt.

AND I have added following line in Primefaces POM file just before </dependencies> that close <dependencies> XML block.

Code: Select all

<dependency>
    <groupId>org.primefaces</groupId>
    <artifactId>maven-jsf-plugin</artifactId>
    <version>1.3.3-SNAPSHOT</version>
    <scope>system</scope>
    <systemPath>C:\GIT_SOURCES\maven-jsf-plugin\target\maven-jsf-plugin-1.3.3-SNAPSHOT.jar</systemPath>
</dependency>
.
I have rebuild Primfaces and ... surprise ... the build has correctly be executed.
Hi @schlebe
I have the same issue. But can't solve it. Can you please share this maven-jsf-plugin-1.3.3-SNAPSHOT.jar file with me?
Thanks

schlebe
Posts: 212
Joined: 25 Sep 2015, 13:32
Location: Colmar-Berg (Luxembourg)

05 Jan 2018, 10:12

Hello LCT,

you can find this JAR on https://drive.google.com/open?id=1G9qOg ... nm0kP8-pBq

@Primefaces

Why nobody put this JAR on Central Maven repository ?

You have already put 1.3.2 version but not 1.3.3 !
PrimeFaces 6.2.4
Mojarra 2.2.13
Glassfish 4.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests