I was able to use the build.xml in 1.1.1.0 to generate a .ear for jboss 4.0.4RC1 on Fedora Core 4. I could get it to deploy, after updating/installing a couple of jars, only after keping the lib and classes in pentaho.war instead of moving them to the .ear. Didn't spend much time on researching .ear structure. Try commenting out the unzip and zip sections of your ear target as well as the zipfileset in the make ear section. If I can get the code to paste right you can see it here:
Code:
<!-- Move classes and libraries out of pentaho.war into .ear: -->
<!-- deliberately written this way - instead of using Ant's clumsy conditions, this method -->
<!-- starts with a full blown .war with all details in the .war target, and clearly identifies -->
<!-- the modifications necessary for the .war file needed in the .ear -->
<!--
<unzip src="${jboss4.dir}/pentaho.war" dest="${work}/pentaho-war"/>
<delete>
<fileset dir="${work}/pentaho-war/WEB-INF/classes" />
<fileset dir="${work}/pentaho-war/WEB-INF/lib" />
</delete>
<manifest file="${work}/pentaho-war/META-INF/MANIFEST.MF" mode="update">
<attribute name="Class-Path" value="classes ${lib.project.manifest.classpath}"/>
</manifest>
<zip destfile="${jboss4.dir}/pentaho.war" >
<fileset dir="${work}/pentaho-war" />
</zip>
-->
<!-- make ear -->
<ear destfile="${jboss4.dir}/pentaho.ear" appxml="${ear.dir}/jboss-application.xml">
<manifest>
<attribute name="Implementation-Title" value="${impl.title}" />
<attribute name="Implementation-Version" value="${impl.version}" />
<attribute name="Implementation-Vendor" value="${impl.vendor}" />
</manifest>
<fileset dir="${dist.dir}" includes="*.war" excludes="pentaho.war" />
<fileset dir="${jboss4.dir}" includes="*.war" />
<fileset dir="${jboss.datasource.dir}" />
<!-- Include appropriate third party jars -->
<!-- <zipfileset dir="${staging.third-party}" prefix="WEB-INF/lib">
<excludesfile name="excludejars.jboss" />
</zipfileset>
--> <!-- Include compiled classes -->
<!-- <zipfileset dir="${staging.classes}" prefix="WEB-INF/classes" />
--> </ear>