如何在@post端点中保留数据

时间:2018-06-15 14:34:00

标签: hibernate java-ee jboss wildfly

当我打包此代码时,部署并尝试在jboss上启用我看到以下错误。

Fri Jun 15 16:29:42 GMT+200 2018
Failed to enable master-1.0-SNAPSHOT.war.
Unexpected HTTP response: 500

Request
{
    "address" => [("deployment" => "master-1.0-SNAPSHOT.war")],
    "operation" => "deploy"
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "failure-description" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"master-1.0-SNAPSHOT.war#master\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"master-1.0-SNAPSHOT.war#master\": java.lang.NoSuchMethodError: org.hibernate.internal.CoreMessageLogger.debugf(Ljava/lang/String;II)V
    Caused by: java.lang.NoSuchMethodError: org.hibernate.internal.CoreMessageLogger.debugf(Ljava/lang/String;II)V"}},
    "rolled-back" => true
}

bean enpoint model persistence [structure 5

1 个答案:

答案 0 :(得分:0)

我解决了这个问题,我发现pom文件中的org.hibernate包的范围已经提供,因此libs没有被复制到libs文件夹中。