Good Evening Joseph-

what is the specific error you are getting?
which version of which AppServer are you deploying to?
if you are using EJB 2 (the default) we will need to see 
ejb-jar.xml
Any or all Java Sources (just attach every java source file that extends 
EJBHome)
how are you building the ear (assume either build.xml or pom.xml?)
GlassFish has a ear builder and deployer in 
$GLASSFISH_HOME/GlassFish/Sun/AppServer/common-ant.xml
that looks something like this:

<property name="jarDD"        value="ejb-jar.xml,sun-ejb-jar.xml"/>
  <!-- ======================================================= -->
  <!-- Assemble EJB JAR module.        OLD WAY                 -->
  <!-- ======================================================= -->
  <target name="create_ejbjar_common_old" depends="clean_ejbjar_common">
    <mkdir dir="${assemble.ejbjar}"/>
    <jar destfile="${assemble.ejbjar}/${ejbjar}">
      <zipfileset dir="${build.classesdir}/${jar.pkg}/" includes="**/*.class" 
                  excludes="**/servlet/, **/client/" prefix="${jar.pkg}"/>
      <metainf dir="${jarDD.dir}" includes="${jarDD}"/>
    </jar>
    <!-- AEM NEEDED?copy file="${assemble.ejbjar}/${ejbjar}" 
tofile="../${ejbjar}"/>-->
    <property name="ejbjar.done" value="true"/>
  </target>  
  <!-- ======================================================= -->
  <!-- Assemble CLIENT JAR module.        OLD WAY              -->
  <!-- ======================================================= -->
  <target name="clientjar_common" depends="clean_clientjar_common">
    <mkdir dir="${assemble.clientjar}"/>
    <jar destfile="${assemble.clientjar}/${clientjar}" 
manifest="${clientDD.dir}/MANIFEST.MF">
      <zipfileset dir="${build.classesdir}/${app.pkg}/" 
                  includes="**/*Client.class" excludes="**/servlet/"
                  prefix="${app.pkg}"/>
      <metainf dir="${clientDD.dir}" includes="${clientDD}"/>
    </jar>
    <property name="clientjar.done" value="true"/>
  </target>

Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> From: [EMAIL PROTECTED]
> To: [email protected]
> Date: Sun, 12 Oct 2008 17:51:13 +0000
> Subject: RE: what does ant really use?
> 
> Yes of course I have jdk 1.5.0_02  and JAVA_HOME is set too ...
> 
> -----Original Message-----
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 11, 2008 11:12 PM
> To: Ant Users List
> Subject: RE: what does ant really use?
> 
> 
> it is assumed you already installed the JDK for your operating system 
> first..then set JAVA_HOME to the folder you installed
> 
> without the JDK installation..any distro of ANT wont work
> 
> http://java.sun.com/javase/downloads/index.jsp
> 
> Martin Gainty
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official 
> business of Sender. This transmission is of a confidential nature and Sender 
> does not endorse distribution to any party other than intended recipient. 
> Sender does not necessarily endorse content contained within this 
> transmission.
> 
> 
> > From: [EMAIL PROTECTED]
> > To: [email protected]
> > Date: Sat, 11 Oct 2008 20:14:47 +0000
> > Subject: RE: what does ant really use?
> >
> > Yes I am aware that there are symlinks, so I followed them to the point 
> > that I am almost 100% sure there was neither javac nor gcj on the system 
> > disk. So how can ant still compile? Does it have a "bundled" gcj ?
> >
> > -----Original Message-----
> > From: John5342 [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 08, 2008 11:58 AM
> > To: Ant Users List
> > Subject: Re: what does ant really use?
> >
> > If you changed the name of gcj and javac in /usr/bin they are not the 
> > actualy executables. They are only links to the real ones which in fedora 
> > (and probably RH) located in /usr/share/jvm/<java implementation>/bin/. In 
> > fedora (and again probably in RH) there is an "alternatives" application 
> > which allows you to choose which installed version of java you are using 
> > rather than renaming binaries. Should also warn you that although RH is 
> > supported longer than most and in general rock stable the software is often 
> > quite old because i happen to know that more recent versions of gcj support 
> > java 1.5. Hope this all helps you in the right direction.
> >
> > 2008/10/8 Pareti, Joseph <[EMAIL PROTECTED]>
> >
> > >
> > >
> > >
> > > As a disclaimer, I am a true ant (and java) novice. Having said
> > > that, I am confronted with a weird problem in a j2ee project which
> > > fails at run time with a jndi error. After several investigations, I
> > > am now almost convinced it has to do with the build process.
> > >
> > > I have jdk 1.5.0_02 installed on my system, x86/RHEL 3, kernel 2.4;
> > > I am also using ant 1.5.2_23
> > >
> > > My build log file shows, for each compile target the following message:
> > >
> > > [javac] Using gcj compiler
> > >
> > > Just for kicks, I then deleted gcj as well as javac (here I mean the
> > > javac compiler executable) from my disk i.e. I renamed both of them
> > > to something else, and ant still worked and still claimed it's using
> > > gcj, which leaves me totally confused.
> > >
> > > Perhaps one hint; at the top of the log file I see the comment
> > > "detected java version 1.4 in /usr".
> > >
> > > I know this is not what I want/need (it should be 1.5), so where
> > > does it come from?
> > >
> > > I then went ahead setting the following property in my build.xml:
> > >
> > > <property name="build.compiler" value="modern"/>
> > >
> > > but this was quickly discarded:
> > >
> > > "Override ignored for property build.compiler"
> > > which basically produced the same results as described above. I am
> > > running out of ideas here.
> > >
> > > Thanks for any insights.
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
> > commands, e-mail: [EMAIL PROTECTED]
> >
> 
> _________________________________________________________________
> Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your 
life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

Reply via email to