Welcome to Ask Ozar.net !
Welcome to Ask Ozar.net, where you can ask questions and receive answers from other members of the community.
+2 votes

I have multiple persistence units in a JPA application I developed. 

I'm getting the following exception javax.annotation.processing.FilerException: Attempt to recreate a file for type ...

Any ideas?

in Java / Java EE by (860 points)

1 Answer

0 votes
If you have more than one JPA persistence unit defined in your persistence.xml file, you need to set
 
<exclude-unlisted-classes>false</exclude-unlisted-classes>
 
to:

<exclude-unlisted-classes>true</exclude-unlisted-classes>

and then list every entity class with a mapping definition for each.

Is this the case with your configuration?

 

by (880 points)

Related questions

...