File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Problems in compiling EJB's Using Ant Script in Weblogic 8.1 SP3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problems in compiling EJB Watch "Problems in compiling EJB New topic
Author

Problems in compiling EJB's Using Ant Script in Weblogic 8.1 SP3

satheesh krishnaswamy
Ranch Hand

Joined: Mar 17, 2004
Posts: 137
Hi all,
I am using Weblogic 8.1 SP3 and my RAM size is 1 GB.
I am often getting the following error,while trying to build and stage using Ant Script in Weblogic 8.1 SP3 server.

[wlappc] [EJBCompiler] : Compliance Checker said bean was compliant
Invalid initial heap size: -Xms256m -J-mx512m
Could not create the Java virtual machine.

BUILD FAILED
file:C:/test/entityEjbs/build.xml:116: weblogic.utils.compiler.ToolFailureException: [J2EE:160119]Appc is unable to process the file 'C:\bea-8.1sp3\user_projects\domains\testdomain\Ear\entityEjbs'. The following error occurred:

Compiler failed executable.exec
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274)

My Build.xml file contains the following:
******************************************

*****************************************************
Initially I am getting java.lang.OutOfMemoryError and saw from the support site of BEA's(Resolved Problems for Service Pack 1.html),where they had given this solution (introducing runtimeFlags with the above value)will solve the outofMemoryError problem.

But that is giving this problem.I feel I am wrong in giving the values for runtimeflags.

Can anyone correct me on that?
I am having 1GB of Memory and hence memory shouldn't be a problem.

Kindly help me on this.

Thanks in advance
with kind regards
Satheesh
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

For instance here is my memory settings

-Xms128m -Xmx512m

You have this -J-mx512m. What is the "-J-" part?

As for 1 Gig ram, it really depends on the size of your application. For instance, at my last place of work we had to have 3 Gigs of memory, or we always got the out of memory error when building.

Have you also thought about using Jikes?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
satheesh krishnaswamy
Ranch Hand

Joined: Mar 17, 2004
Posts: 137
Hi Mark,
Thanks for the reply.
Can you please post ur build.xml.(things related to this,atleast-wlappc tag).
Because I am madly confused as where u had given this memory settings.
when I try to change in Build.xml,I am getting this error.
Unrecognized option or flag, -Xms128m -Xmx512m.

Hence if there is any other alternative way inside eclipse that we can give this value,I think I will pass through.

Thanks a lot.Waiting for ur reply in anticipation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems in compiling EJB's Using Ant Script in Weblogic 8.1 SP3
 
Similar Threads
wlappc with maven
Weblogic 9.2 Upgrade Issues
Error while using weblogic.ant.taskdefs.j2ee.Appc
Using weblogic.appc from eclipse
Error running javac.exe compiler