Eclipse does not recognize content of persistence.xml

前端 未结 27 2176
野趣味
野趣味 2021-01-30 20:44

Im getting the following error in eclipse:

The persistence.xml file does not have recognized content.

My persistence.xml file works great in my application but e

27条回答
  •  轮回少年
    2021-01-30 20:45

    Ok ... another rather robust solution that worked for me since the top-most ones did not:

    • since I used Mercurial and could go back easily without any notable differences in the current and last versions it worked this way:

    • (committed some important changes rather unrelated to this problem)

    • switching to previous repo version
    • (auto-/refresh/-rebuild ran fine)

    What I recognized was, that the problem may have been due to the fact that the Java Builder did not generate my war/WEB-INF/classes/ files. The following did not work to follow this trail in letting it build my project:

    • disabling/reconfiguring Validators, Builders, Facets (till only the Java Builder/Facet was there)
    • renaming the persistence.xml or editing it in various ways

    which did not help it as if some internal state could not be changed.

提交回复
热议问题