facebook

WSEJBDEPLOY From Ant: java.lang.NoClassDefFoundError:

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #289977 Reply

    defiant42
    Member

    Recently when trying to get an ant script to create an ejb.jar, I encountered the following with the WSEJBDEPLOY task. There are a few quirks with it, and it does work.

    #1 Alter your ant task-def to look like:

    <taskdef name=”wsejbdeploy”
    classname=”com.ibm.websphere.ant.tasks.WsEjbDeploy”
    classpath=”${websphere.home}/plugins/com.ibm.ws.runtime_6.1.0.jar” />

    #2 Make sure you have the following properties set in your build.properties, or build.xml:

    websphere.home = C:/Program Files/IBM/WebSphere/6.1/AppServer
    user.install.root = C:/Program Files/IBM/WebSphere/6.1/AppServer

    #3 Make sure you COMPILED everything under Ant using the IBM Compiler. Using the a Sun Compiler [ SUN Compiler JDK 1.5.0_11 ] produces the following error:

    [wsejbdeploy] Error generating RMI code: RMIC Command returns RC = TMSEjb_Temp. The problems which stopped RMIC are displayed, and have also been recorded in the .log file in Exception in thread “main” java.lang.NoClassDefFoundError: sun/tools/util/CommandLine
    [wsejbdeploy] at sun.rmi.rmic.Main.parseArgs(Main.java:209)
    [wsejbdeploy] at sun.rmi.rmic.Main.compile(Main.java:166)
    [wsejbdeploy] at sun.rmi.rmic.Main.main(Main.java:814)

    When recompiled with the IBM/Java Compiler (below) IT WORKS!

    java version “1.5.0”
    Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20080315 (SR7))
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20080315 (JIT enabled)
    J9VM – 20080314_17962_lHdSMr
    JIT – 20080130_0718ifx2_r8
    GC – 200802_08)
    JCL – 20080314

    -Eric

    #290016 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, Eric unfortunately I’m not familiar enough with the WebSphere ANT tasks to help in this regard.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: WSEJBDEPLOY From Ant: java.lang.NoClassDefFoundError:

You must be logged in to post in the forum log in