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

Weblogic 8.1 weblogic.ejbc bug: OutOfMemory error

0 views
Skip to first unread message

Ignacio G. Dupont

unread,
May 25, 2004, 3:36:38 PM5/25/04
to
Hi, we are trying to run ejbc in order to generate container implementation
classes of our EJBs. We do have around 100 EJBs and they probably require
more than 64MB of memory to be generated.

The problem we are facing is that the "good old":

java weblogic.ejbc -J-mx512m foo.jar bar.jar

does not longer work as expected.

After issuing the above command (and after some secconds) I get following
error:

javac: invalid flag: -J-mx512m
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs
are used
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified
release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options

Exec failed .. exiting


it seems to me that the weblogic.ejbc class is not doing a substring(2) to
the -J-mx512m parameter so it injects the complete parameter to the inner
javac command and of course it complaints of it not being a recognized
option.

Am I doing something wrong?

Is there any work around for this issue?

Thanks in advance.

Ignacio.


0 new messages