json格式的wildfly打印异常

时间:2015-04-20 20:25:10

标签: java wildfly

我想要实现的是在从deploy调用jboss-cli命令之后使用json格式的输出(换行符和缩进),因为现在我得到这样的结果:

[standalone@localhost:9990 /] deploy d:\myapp.war

{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"myapp.war#myPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"myapp.war#myPU\": javax.persistence.PersistenceException: [PersistenceUnit: myPU] Unable to build Hibernate SessionFactory
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit: myPU] Unable to build Hibernate SessionFactory
    Caused by: org.hibernate.AnnotationException: JoinTable.name() on a @ToOne association has to be explicit: pwis.bussinesslogic.entities.reviews.AbstractReview.lecture"},"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"myapp.war\".compon (...CUT...) myapp.war\".component.ScheduleService.cache]","jboss.deployment.unit.\"myapp.war\".component.ConferencesFacade.CREATE is missing [jboss.security.security-domain.app]"]}}}

1 个答案:

答案 0 :(得分:0)

输出实际上是DMR,看起来像JSON,但它有所不同。我相信它会打印一个LF,但看起来你正在使用的是使用LF + CR换行的Windows。据我所知,没有办法格式化输出。