I tried to make a "Deployed...ear" with ant 1.4 and jdk 1.3.1 calling the java
task with EJBDeploy class and all was wrong!!
The rmic -iiop in jdk 1.3 has many bugs that are fixed in the 1.4 version.
My project is bound to jdk 1.3 and my workaround is:
1) call java task with EJBDeploy class with codegen parameter; (jdk 1.3 OK)
2) compile generated source code; (jdk 1.3 OK)
3) call java task with rmic's main class and iiop parameter; (jdk 1.4 OK)
4) compile generated sources for stub/skeleton; (jdk 1.3 OK)
That's very unconventional to use different jdk releases for the same project, but jdk 1.4 is used only to generate source code.
Now that seems to work, but I don't know if there will may be problems related to use of jdk 1.4...