We want to migrate WL 7.0 sp4 from jdk_1.3.1.0.8 to jdk 1.4.2.
We're facing a problem with EJBC when building our EAR.
We use Maven with Ant to build the EJB through weblogic.ejbc.
Here is a sample of our maven.xml with the goal in charge of building the ejbs:
<goal name="do:ejbc">
<ant:java classname="weblogic.ejbc" fork="true" failonerror="true">
<ant:arg line="-iiop -compiler ${java.home}/bin/javac ${maven.build.dir}/${pom.artifactId}-${pom.currentVersion}.jar"
/>
<ant:classpath>
<ant:path refid="maven.dependency.classpath"/>
<pathelement location="${java.home}/jre/lib/rt.jar"/>
<pathelement location="${java.home}/lib/tools.jar"/>
</ant:classpath>
</ant:java>
</goal>
It worked fine with the jdk 1.3 but we get this error since the migration on jdk
1.4 :
[java] java.io.IOException: CreateProcess: C:\win32app\j2sdk-1_4_2_0\jre/bin/javac
-nowarn -classpath "C:\_Projects_\OPUS\current\opus-core\opus-core-server\ejbcgen;C:\_Projects_\OPUS\current\o
re\opus-core-server\opus-processor.jar;C:\_Projects_\OPUS\current\opus-core\opus-core-server\commons-validator.jar;C:\_Projects_\OPUS\current\opus-core\opus-core-server\opus-util-client.jar;C:\_Pro
_\OPUS\current\opus-core\opus-core-server\nanning.jar;C:?
Seems to be relative to a classpath too long, but why now ?
Any help appreciate.
Thanks a lot.
moreover, if your development platform is only under windows, to use the complete
name of javac.exe
or if you need to be under unix and windows to set a property JAVAC inside the
ant.properties with bin/java.exe or bin/java or jikes.exe or ...