Jboss6.3 启动失败


这是我

尝试使用 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
}

当您具有不同的部署单元,但未在@PersistenceContext上指定部署unitName时,会发生这种情况。因此,请检查您的所有实体经理是否正确注释,例如:

@PersistenceContext(unitName = "yourUnitName")
private EntityManager entityManager;

最新更新