ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prashant...@polaris.co.in
Subject Re: websphere compilation --- jar names needed.
Date Mon, 08 Jan 2007 17:01:23 GMT
Since websphere is not installed in unix machien.. we were getting the 
below error, its resolved now...

With Regards,
Prashanth



prashanth.l@polaris.co.in 
01/08/2007 08:24 PM
Please respond to
"Ant Users List" <user@ant.apache.org>


To
Ant Users List <user@ant.apache.org>
cc

Subject
websphere compilation --- jar names needed.






Hai Friends!!!

While performing EJB compilation using Websphere specific command and 
jars, we are facing below errors.

jar-PassBookBean-ejb:
      [jar] Building jar: 
/opt/corebld/build/ICICI_WebSphere/CORE/build/ejb/tempPassBookBean.jar

ejbc-PassBookBean-ejb:
     [java] Exception in thread "main" java.lang.NoSuchMethodError: main
     [java] count = 0, total = 17
     [java] Java Result: 1

Jar Files used in Classpath ( Websphere Specific ) :
==============================================

j2ee.jar
tools.jar
wsanttasks.jar
wsprofile.jar

For weblogic -------- The same works fine with weblogic.jar in classpath

In Websphere - we are facing above problem..

Any more jars required for compilation........ please suggest friends.. 
thanx

**********************************************my ant script below 

<!-- Compile Bean Sources -->
<target name="compile-PassBookBean-ejb" depends="init" 
description="compile the source " >
        <javac srcdir="${PassBookBean-ejb-dir}" 
destdir="${build-PassBookBean-ejb-dir}" includes="*.java">
                <classpath refid="core.classpath"/>
        </javac>
</target>

<!-- End Compile Bean Sources -->

<!--  Compress Compiled Files -->
<target name="jar-PassBookBean-ejb" depends="compile-PassBookBean-ejb">
        <jar jarfile="${ejb-dir}/tempPassBookBean.jar" 
                basedir="${build-PassBookBean-ejb-dir}"
                manifest="${src}/MANIFEST.MF">
        </jar>
</target>


<!--  End - Compress Compiled Files -->

<!-- EJBC starts here -->
<target name="ejbc-PassBookBean-ejb" depends="jar-PassBookBean-ejb">
        <java classname="com.ibm.websphere.ant.tasks.WsEjbDeploy" 
fork="yes">
                <sysproperty key="weblogic.home" value="${WL_HOME}"/>
                <arg line="-nowarn -compiler  javac 
${ejb-dir}/tempPassBookBean.jar ${build}/PassBookBean.jar"/>
                <classpath refid="ejb.classpath"/>
        </java>
</target>
**********************************************

With regards,
Prashanth


This e-Mail may contain proprietary and confidential information and is 
sent for the intended recipient(s) only.  If by an addressing or 
transmission error this mail has been misdirected to you, you are 
requested to delete this mail immediately. You are also hereby notified 
that any use, any form of reproduction, dissemination, copying, 
disclosure, modification, distribution and/or publication of this e-mail 
message, contents or its attachment other than by its intended recipient/s 
is strictly prohibited.

Visit us at http://www.polaris.co.in



This e-Mail may contain proprietary and confidential information and is sent for the intended
recipient(s) only.  If by an addressing or transmission error this mail has been misdirected
to you, you are requested to delete this mail immediately. You are also hereby notified that
any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution
and/or publication of this e-mail message, contents or its attachment other than by its intended
recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message