野蝇错误 "Required service that are not installed"
Wildfly error "Required service that are not installed"
这是我第一次尝试使用 Wildfly 的 Maven 项目。所以,这是我在 xml 中的独立文件,用于数据源:
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.jboss.org/ironjacamar/schema
http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<datasource jndi-name="artifact-id" enabled="true" use-java-context="true" pool-name="artifact-id">
<connection-url>jdbc:mysql//localhost:3306/java-ee-schema?serverTimezone=UTC</connection-url>
<driver>mysql</driver>
<security>
<user-name>java-client</user-name>
<password>*******</password>
</security>
</datasource>
这是我在启动 wildfly 服务器后遇到的错误:
00:57:24,197 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "artifact-id.war")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.artifactID"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"artifact-id.war#artifact-id\" is missing [jboss.naming.context.java.artifactID]",
"jboss.persistenceunit.\"artifact-id.war#artifact-id\".__FIRST_PHASE__ is missing [jboss.naming.context.java.artifactID]"
]}
我能做什么?
您应该在 wildfly 中配置您的数据源。
另外我不熟悉 ironjacamar 描述文件,但应该在某处定义驱动程序。
这是我第一次尝试使用 Wildfly 的 Maven 项目。所以,这是我在 xml 中的独立文件,用于数据源:
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.jboss.org/ironjacamar/schema
http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<datasource jndi-name="artifact-id" enabled="true" use-java-context="true" pool-name="artifact-id">
<connection-url>jdbc:mysql//localhost:3306/java-ee-schema?serverTimezone=UTC</connection-url>
<driver>mysql</driver>
<security>
<user-name>java-client</user-name>
<password>*******</password>
</security>
</datasource>
这是我在启动 wildfly 服务器后遇到的错误:
00:57:24,197 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "artifact-id.war")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.artifactID"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"artifact-id.war#artifact-id\" is missing [jboss.naming.context.java.artifactID]",
"jboss.persistenceunit.\"artifact-id.war#artifact-id\".__FIRST_PHASE__ is missing [jboss.naming.context.java.artifactID]"
]}
我能做什么?
您应该在 wildfly 中配置您的数据源。 另外我不熟悉 ironjacamar 描述文件,但应该在某处定义驱动程序。