Hibernate quickstart failing when deploying

115 views
Skip to first unread message

Andrés González Carranza

unread,
Mar 20, 2024, 12:51:09 PM3/20/24
to WildFly
Hi,

I'm trying to run the Hibernate quickstart. But when I try to build and deploy I get the following error:

[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:5.0.0.Beta3:deploy (default-cli) on project hibernate: Failed to execute goal deploy: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"hibernate.war\".WeldStartService" => "Failed to start service
[ERROR] Caused by: java.lang.IllegalArgumentException: WFLYWELD0037: Error injecting persistence unit into Jakarta Contexts and Dependency Injection managed bean. Can't find a persistence unit named '' in deploy hibernate.war for injection point private jakarta.persistence.EntityManager org.jboss.as.quickstart.hibernate.util.Resources.em"}}}}


Does anyone know what can be due?

Thanks in advance

Frédéric Jean-Prost

unread,
Mar 20, 2024, 3:51:09 PM3/20/24
to wil...@googlegroups.com
What is your wildfly version ?

Frédéric Jean-Prost
--
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/50724170-a999-4498-b1b4-f48fcc9e6aebn%40googlegroups.com.

Andrés González Carranza

unread,
Mar 20, 2024, 6:07:29 PM3/20/24
to WildFly
29.0.1

Eduardo Martins

unread,
Mar 20, 2024, 6:13:42 PM3/20/24
to Andrés González Carranza, WildFly
You are using main branch of quickstarts repo, which is only tested (automatically) with current main branch of WildFly, and latest version of it. So please try latest WildFly version, or download same version of quickstarts on WidlFly downloads page, or use 29.x branch of the quickstarts repo.

—E

--
Reply all
Reply to author
Forward
0 new messages