Hello,
I've had the same error and, after some research, I've solved the problem by using the "ear"
ant task instead of "jar" when building my application's ear.
It works just fine.
Here's an example:
<target name="ear" description="creates the EAR" depends="clean,compile,lib,ejb,war">
<copyfile dest="${target}\application.xml" src=".\${project.distname}\src\application.xml"/>
<ear
destfile="${target}/${project.distname}.ear"
appxml="${target}\application.xml">
<fileset dir="${target}">
<exclude name="*.xml,*.class"/>
</fileset>
</ear>
</target>
Regards,
Dan