Skip to content

Problem on start with starter-data-jpa and orm.xml on classpath #10363

@artaban

Description

@artaban

I'm using Spring boot 2.0.0.M4 and trying to run bundled application with orm.xml on classpath (resources/META-INF/). I'm getting following error:
java.lang.IllegalStateException: Duplicate XML entry for com.example.demo.model.Entity

The error is thrown on AnnotationMetadataSourceProcessorImpl.java:94) and is caused by the fact, that the orm.xml file has been found twice:

  • Origin(name=BOOT-INF/classes/META-INF/orm.xml,type=INPUT_STREAM)
  • Origin(name=jar:file:../build/libs/test-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/META-INF/orm.xml,type=INPUT_STREAM)

Attaching the sample gradle project: spring-orm-problem.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions