>the file entity-all-in-one.jar this in the root of my file EJBModule1.jar
>E:\desenv\exemplos\EJBModule1
>build
> jar
> entity-all-in-one.jar
> META-INF
> persistence.xml
I am not able to conclude what is your deployment structure. The jar
file has to be relative to root of PU. Following is from the spec
/
One or more JAR files may be specified using the jar-file elements
instead of, or in addition to the
mapping files specified in the mapping-file elements. If specified,
these JAR files will be searched
for managed persistence classes, and any mapping metadata annotations
found on them will be processed,
or they will be mapped using the mapping annotation defaults defined by
this specification.
Such JAR files are specified relative to the root of the persistence
unit (e.g., utils/myUtils.jar).
/
For structure like above, your jar file is at the same level as the root
of pu hence <jar-file>entity-all-in-one.jar</jar-file> should work.
Please run your deployment unit through verifier. Please check/post
exact structure of your deployment unit