Hi,

I've tried to get the Tobago 5 demo running with Quarkus. It seems to
work but NOT with the build artifacts from the Maven Repos.

The error message is the same for M6 and SNAPSHOT (I assume the
myfaces-api is the problem, because it contains the META-INF/jandex.idx
file). Repo artifacts:

https://repository.apache.org/snapshots/org/apache/myfaces/core/myfaces-api/2.3-next-SNAPSHOT/myfaces-api-2.3-next-20211021.081500-689.jar

or

https://repo.maven.apache.org/maven2/org/apache/myfaces/core/myfaces-api/2.3-next-M6/myfaces-api-2.3-next-M6.jar

Error message:

[ERROR] Failed to execute goal
io.quarkus:quarkus-maven-plugin:1.13.7.Final:build (default) on project
tobago-example-demo: Failed to build quarkus application:
io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]     [error]: Build step
io.quarkus.arc.deployment.ArcProcessor#generateResources threw an
exception: java.lang.IllegalStateException: Value is not set for
javax.faces.convert.FacesConverter.value(). Most probably an older
version of Jandex was used to index an application dependency. Make sure
that Jandex 2.1+ is used.
[ERROR]     at
io.quarkus.arc.processor.AnnotationLiteralProcessor.process(AnnotationLiteralProcessor.java:77)
[ERROR]     at
io.quarkus.arc.processor.BeanGenerator.initConstructor(BeanGenerator.java:697)

When I build the SNAPSHOT of myfaces-api on my machine, no problem occurs.

Both jandex.idx file (SNAPSHOT of Repo and SNAPSHOT of my machine) has
same size, but different content.

My Setup is:

  * Maven 3.8.3
  * AdoptOpenJDK 1.8.0_292 or Temurin 1.8.0_302 or 11.0.12 or Oracle
    1.8.0_162
  * OS: MacOS 10.15.7 (x86_64)


My demo is the Tobago 5.x and is available here:
https://github.com/apache/myfaces-tobago

Use branch "tobago-5.x"

The MyFaces next Version can be changed in the ROOT/pom.xml: Tag
<myfaces23x.version>2.3-next-M6</myfaces23x.version>

Initial build with "mvn clean install"

cd to tobago-example/tobago-example-demo

Try to build with

mvn clean install -Pquarkus

(will probably fail, if myfaces is from the Repo)

If it not fails start with

java -jar target/quarkus-app/quarkus-run.jar

Browse: http://localhost:8080/content/010-input/40-date/Date.xhtml

There are still some problems with Quarkus and the Demo, but this can be
fixed later.


Does anyone have an idea what the Jantex problem is?

Regards,

Udo

Reply via email to