Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic