• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Manifest file problem.

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
we are using an application for which we are not able to create .ear file.
we investigated that the problem is with the manifest file.
the manifest file is not created.
please some body can give any pointers like under what conditions we face this scenario?
Any help would be appreciated
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to Tell The Details.
How are you trying to create an EAR?
What led you to believe the manifest file is the problem?
Exactly what errors are you seeing?
[ November 10, 2008: Message edited by: Joe Ess ]
 
sri valli
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
the problem is we are trying to build .ear file using ant commands which are defined in build.xml file.
in the build.xml there is a command to create manifest file.
but we found out that the manifest file is not creating under /meta-inf diractory.
we assume that this could be the problem forthe creation of .ear file.
and i don't have much knoledge on build.xml file.so
i am giving all the commands which are existing in my build.xml file related to manifest file.


INITIALIZATION SECTION
=========================


<available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest" />
- <condition property="do.war.package.with.custom.manifest">
- <and>
<istrue value="${war.package}" />
<isset property="has.custom.manifest" />
</and>
</condition>
- <condition property="do.war.package.without.custom.manifest">
- <and>
<istrue value="${war.package}" />
- <not>
<isset property="has.custom.manifest" />
</not>
</and>
</condition>

COMPILATION SECTION
===================

- <target name="-do-compile" depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources">
<webproject2:javac destdir="${build.classes.dir.real}" />
- <copy todir="${build.classes.dir.real}">
<fileset dir="${src.dir}" excludes="${build.classes.excludes}" />
</copy>
</target>
- <target name="-copy-manifest" if="has.custom.manifest">
<mkdir dir="${build.meta.inf.dir}" />
- <copy todir="${build.meta.inf.dir}">
<fileset dir="${conf.dir}" includes="MANIFEST.MF" />
</copy>
</target>

DIST BUILDING SECTION
======================

- <target name="-do-dist-with-manifest" if="do.war.package.with.custom.manifest" depends="init,compile,compile-jsps,-pre-dist">
<dirname property="dist.jar.dir" file="${dist.war}" />
<mkdir dir="${dist.jar.dir}" />
- <jar manifest="${build.meta.inf.dir}/MANIFEST.MF" jarfile="${dist.war}" compress="${jar.compress}">
<fileset dir="${build.web.dir.real}" />
</jar>
</target>
<target name="do-dist" depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" />
- <target name="library-inclusion-in-manifest" depends="init" if="dist.ear.dir">
<basename property="included.lib.file.reference.jato-1_2_2-dev4.jar" file="${file.reference.jato-1_2_2-dev4.jar}" />
<copy-ear-war file="${file.reference.jato-1_2_2-dev4.jar}" propname="included.lib.file.reference.jato-1_2_2-dev4.jar.X" />
<mkdir dir="${build.web.dir.real}/META-INF" />
- <manifest file="${build.web.dir.real}/META-INF/MANIFEST.MF" mode="update">
<attribute name="Class-Path" value="${included.lib.file.reference.jato-1_2_2-dev4.jar}" />
</manifest>

Thanks in advance
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the output of the ant command?
The code you posted does not have a close tag for the name="do-dist" target. Is this an oversight?
 
reply
    Bookmark Topic Watch Topic
  • New Topic