当我尝试使用maven项目部署启动Jboss6.3时遇到的困难,而在没有部署项目的情况下启动是正常的。此外,该项目在Tomcat7.x上部署并启动了OK。
返回的消息如下:
Failed to enable apledi.war.
Unexpected HTTP response: 500
Request
{
"address" => [("deployment" => "apledi.war")],
"operation" => "deploy"
}
Response
Internal Server Error
{
"outcome" => "failed",
"failure-description" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"apledi.war\".DEPENDENCIES" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"apledi.war\".DEPENDENCIES: JBAS018733: Failed to process phase DEPENDENCIES of deployment \"apledi.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.NullPointerException
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.NullPointerException
Caused by: java.lang.NullPointerException"}},
"rolled-back" => true
}
答案 0 :(得分:0)
如果您有不同的部署单位,但未在unitName
上指定部署@PersistenceContext
,则会发生这种情况。因此,如果所有实体经理都正确注释,请检查,例如:
@PersistenceContext(unitName = "yourUnitName")
private EntityManager entityManager;