WildFly Bootable JAR with JavaServer Faces 4

84 views
Skip to first unread message

Adriano Aguiar

unread,
Mar 8, 2024, 7:15:04 AM3/8/24
to WildFly
Does anyone use WildFly Bootable JAR with JavaServer Faces 4 and have any examples?

Eduardo Martins

unread,
Mar 8, 2024, 8:30:29 AM3/8/24
to WildFly
I don't think we have a specific quickstart app with bootable JAR and JSF, because we only use bootable JAR on MicroProfile related ones, but perhaps it's useful for you to have a look at non MicroProfile quickstarts using JSF? All of those have the standard server provisioning (exploded server dist with app deployed) configured in their pom.xml (look at provisioned-server maven profile), and at the end the configuration is quite similar for bootable jar (wildfly-jar maven plugin) and standard server provisioning (wildfly maven plugin). You may even compare since both are being used on micrometer quickstart.

Quickstarts with JSF:
* batch-processing
* cmt
* hibernate
* json
* kitchensink 
* mail
* numberguess
* temperature-converter

Perhaps temperature-converter or numberguess are the simpler quickstarts to have a look.


--E

Adriano Aguiar

unread,
Mar 8, 2024, 3:11:20 PM3/8/24
to WildFly
I am facing the following problem when using the org.wildfly.plugins plugin, the other classes it can inject, but this error persists:

Unsatisfied dependencies for type SecurityContext with qualifiers @Default

Jean Francois Denise

unread,
Mar 11, 2024, 6:00:21 AM3/11/24
to wil...@googlegroups.com

Hi,

if you could share a reproducer that would help investigation.

Thank-you.

JF

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/947eb1f3-edbc-4a72-8c52-253bdc8bc0fbn%40googlegroups.com.

Adriano Aguiar

unread,
Mar 11, 2024, 7:48:55 AM3/11/24
to WildFly
I found the problem was that I wasn't passing <layer>ee-security</layer> and when passing the no more error returned, however when entering user password the AuthenticationStatus is returning SEND_FAILURE and what I noticed is that it is not arriving in my implementation IdentityStore, now I need to find out why

Jean Francois Denise

unread,
Mar 11, 2024, 10:05:31 AM3/11/24
to wil...@googlegroups.com

I suggest that you use WildFly Glow to scan your deployment and see what are the layers found by WildFly Glow. perhaps something is missing:

WildFly Glow: https://github.com/wildfly/wildfly-glow

JF.

Adriano Aguiar

unread,
Mar 11, 2024, 3:33:33 PM3/11/24
to WildFly
I have a project running with jsf wildfly-maven-plugin, but when adding my Entities it is giving an error of java.lang.OutOfMemoryError: Java heap space, I did something similar in a quarkus project and in it I disabled database.generation and it worked, but in this that I'm configuring, I already did this in persistence.xml and it didn't work and when I removed jpa from the wildly layer it stopped giving the error, but it doesn't find Entity, I went to the documentation and didn't find anything that talks about this subject and I want to see if anyone Did you have the same problem?

Adriano Aguiar

unread,
Mar 12, 2024, 2:26:41 PM3/12/24
to WildFly
I ended up not posting the error that is giving me and I just want to add:

14:18:46,667 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 48) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'ROOT.war#primary'
14:18:50,430 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 48) MSC000001: Failed to start service jboss.persistenceunit."ROOT.war#primary": org.jboss.msc.service.StartException in service jboss.persistenceunit."ROOT.war#primary": java.lang.OutOfMemoryError: Java heap space
        at org.jbos...@30.0.1.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:187)
        at org.jbos...@30.0.1.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at org.wildfly.secu...@2.2.2.Final//org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:664)
        at org.jbos...@30.0.1.Final//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:202)
        at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        at java.base/java.lang.Thread.run(Thread.java:842)
        at org.jbos...@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.lang.OutOfMemoryError: Java heap space
        at java.base/java.util.HashMap.resize(HashMap.java:702)
        at java.base/java.util.HashMap.putVal(HashMap.java:661)
        at java.base/java.util.HashMap.put(HashMap.java:610)
        at org.hi...@6.2.13.Final//org.hibernate.sql.ast.spi.SimpleFromClauseAccessImpl.registerTableGroup(SimpleFromClauseAccessImpl.java:105)
        at org.hi...@6.2.13.Final//org.hibernate.sql.ast.spi.FromClauseAccess.resolveTableGroup(FromClauseAccess.java:77)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping.determineTableGroupForFetch(ToOneAttributeMapping.java:1650)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping.generateFetch(ToOneAttributeMapping.java:1508)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping.generateFetch(ToOneAttributeMapping.java:108)
        at org.hi...@6.2.13.Final//org.hibernate.sql.results.graph.FetchParent.generateFetchableFetch(FetchParent.java:108)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSelectBuilder.lambda$createFetchableConsumer$3(LoaderSelectBuilder.java:986)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSelectBuilder$$Lambda$1515/0x0000000301fca380.accept(Unknown Source)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSelectBuilder.visitFetches(LoaderSelectBuilder.java:805)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSelectBuilder$$Lambda$1508/0x0000000301fc4040.visitFetches(Unknown Source)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSqlAstCreationState.visitFetches(LoaderSqlAstCreationState.java:150)
        at org.hi...@6.2.13.Final//org.hibernate.sql.results.graph.AbstractFetchParent.afterInitialize(AbstractFetchParent.java:30)
        at org.hi...@6.2.13.Final//org.hibernate.sql.results.graph.entity.AbstractEntityResultGraphNode.afterInitialize(AbstractEntityResultGraphNode.java:68)
        at org.hi...@6.2.13.Final//org.hibernate.sql.results.graph.entity.internal.EntityFetchJoinedImpl.<init>(EntityFetchJoinedImpl.java:58)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping.buildEntityFetchJoined(ToOneAttributeMapping.java:1383)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping.lambda$generateFetch$0(ToOneAttributeMapping.java:1542)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping$$Lambda$1519/0x0000000301fce2d8.get(Unknown Source)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping.withRegisteredAssociationKeys(ToOneAttributeMapping.java:1790)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping.generateFetch(ToOneAttributeMapping.java:1517)
        at org.hi...@6.2.13.Final//org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping.generateFetch(ToOneAttributeMapping.java:108)
        at org.hi...@6.2.13.Final//org.hibernate.sql.results.graph.FetchParent.generateFetchableFetch(FetchParent.java:108)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSelectBuilder.lambda$createFetchableConsumer$3(LoaderSelectBuilder.java:986)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSelectBuilder$$Lambda$1515/0x0000000301fca380.accept(Unknown Source)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSelectBuilder.visitFetches(LoaderSelectBuilder.java:805)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSelectBuilder$$Lambda$1508/0x0000000301fc4040.visitFetches(Unknown Source)
        at org.hi...@6.2.13.Final//org.hibernate.loader.ast.internal.LoaderSqlAstCreationState.visitFetches(LoaderSqlAstCreationState.java:150)
        at org.hi...@6.2.13.Final//org.hibernate.sql.results.graph.AbstractFetchParent.afterInitialize(AbstractFetchParent.java:30)
        at org.hi...@6.2.13.Final//org.hibernate.sql.results.graph.entity.AbstractEntityResultGraphNode.afterInitialize(AbstractEntityResultGraphNode.java:68)
        at org.hi...@6.2.13.Final//org.hibernate.sql.results.graph.entity.internal.EntityFetchJoinedImpl.<init>(EntityFetchJoinedImpl.java:58)

14:18:50,441 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "ROOT.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"ROOT.war#primary\"" => "java.lang.OutOfMemoryError: Java heap space
    Caused by: java.lang.OutOfMemoryError: Java heap space"}}
Reply all
Reply to author
Forward
0 new messages