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

Reply via email to