Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error in ejbc with jdk1.4 built by maven ant.

7 views
Skip to first unread message

Antoine

unread,
Jun 23, 2004, 3:39:58 AM6/23/04
to

Hi,

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.

Guillaume Compagnon

unread,
Jun 23, 2004, 8:17:01 AM6/23/04
to

Not a problem of classpath length ...the log is only limited not for having MB
of stuffs inside file.
I believe you are wrong on the path to javac, your JAVA_HOME (used by ant under
the java.home property) is not set correctly.
because there is no javac.exe inside this path:
C:\win32app\j2sdk-1_4_2_0\jre/bin/javac

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 ...

0 new messages