antwebsphere-6.1ibm-rad

Error in running RMIC via Ant using wsejbdeploy taskdef


I get the following exception when trying to generate RMIC using Ant task.

[wsejbdeploy] Error generating RMI code: RMIC command failed on project: .... with message:
[wsejbdeploy] error: The IBM RMIC version 0x1500 does not match the IBM runtime version 0x1600.

Please let me know how to fix this. I am trying this using the WebSphere 6.1 server that comes bundled with RAD7.5.

This works fine when we use IDE to generate the EAR, and fails only when we use our custom Ant build file.


Solution

  • The error means that JAVA_HOME in your shell used to invoke Ant is different from the Java that was included with the embedded WebSphere Application Server. Try using the WAS_HOME/bin/ws_ant script, or set JAVA_HOME to WAS_HOME/java/.