Petar Tahchiev wrote:
>
> 2007/4/16, atish :
>>
>>
>> thanks Petar,
>>
>> yes, I am working on windowsXP. By the way, let me corrent you, I am
>> using
>> Ant 1.6.3 not Ant 1.7.
>>
>> I am trying to cactify war file. Its size is 85.4 MB. The JDK version is
>> JDK
>> 1.5
>>
>> thanks,
>> Best Regards,
>> Atish Khedkar
>>
>>
>>
>> Petar Tahchiev wrote:
>> >
>> > 2007/4/16, atish :
>> >>
>> >>
>> >> Hi All,
>> >>
>> >> While working on cactus Ant, Ant throws out of memory error (during
>> >> cactifywar).
>> >>
>> >> I am having 2GB RAM. I am using apache-ant-1.6.3 and cactus1.7.1.
>> >>
>> >> I had set "ANT_OPT" attribute to %ANT_OPT% "-Xmx512m" in
>> >> build.properties.
>> >> As well you can see in below snipet, I had set "maxmemory" attribute
>> to
>> >> "512M" in cactus tag. Still, I am getting OUT OF MEMORY.
>> >>
>> >> below is the snipet of cactus in build.xml
>> >>
>> >>
>> >>
>> >> >> ant-1.7dev20040523.jar"/>
>> >> >> 1.7.1.jar" />
>> >> >> httpclient-2.0.2.jar"/>
>> >> >> logging-1.1.jar"/>
>> >> >> }/aspectjrt.jar"/>
>> >> >> 3.8.1.jar"/>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> >> cactus.classpath" />
>> >> >> destfile="${lib.output.dir}/cactified.war">
>> >> >> includes="**/cactustest/*.class"/>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> >> cactus.classpath" />
>> >>
>> >> >> maxmemory="512M">
>> >>
>> >>
>> >> >> classes.output.dir}"/>
>> >>
>> >>
>> >> >> shutdowntarget = "stop-wls"/>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> error on command prompt:
>> >>
>> >> pre-init:
>> >> [property] Loading Environment env.
>> >> [available] Found: build.properties
>> >> [property] Loading X:\build.properties
>> >> [echo] weblogic91.present = true
>> >>
>> >> init-cactus:
>> >>
>> >> cactify-war:
>> >> [cactifywar] Analyzing war: X:\build_output.WebLogic\lib\myweb.war
>> >>
>> >> BUILD FAILED
>> >> java.lang.OutOfMemoryError: Java heap space
>> >> at
>> >> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
>> >> at org.apache.tools.ant.Project.executeTarget(Project.java
>> :1185)
>> >> at
>> >> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
>> >> DefaultExecutor.java
>> >> :40)
>> >> at org.apache.tools.ant.Project.executeTargets(Project.java
>> :1068)
>> >> at org.apache.tools.ant.Main.runBuild(Main.java:668)
>> >> at org.apache.tools.ant.Main.startAnt(Main.java:187)
>> >> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>> >> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>> >> Caused by: java.lang.OutOfMemoryError: Java heap space
>> >> --- Nested Exception ---
>> >> java.lang.OutOfMemoryError: Java heap space
>> >>
>> >>
>> >> So please help me out as soon as possible, if anybody have some idea
>> >> about
>> >> this problem.
>> >>
>> >> thanks in advance.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/throws-out-of-memory-error-tf3583346.html#a10012927
>> >> Sent from the Cactus - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> > Hi atish,
>> >
>> > There are a couple of things you can do so that we can locate the
>> problem
>> > more precisely. First of all you can post the content of the file you
>> are
>> > trying to cactify.
>> > Is it a big one - give a brief description of it. Also what is the type
>> of
>> > your OS (I
>> > guess you are using Windows) and the version of the JVM.
>> >
>> > Also try downloading Ant 1.6.5. (!!! Don't download the latest Ant
>> > release,
>> > we have problems with
>> > Ant 1.7 !!!) and post the result with that version of Ant.
>> >
>> > Hope that helps.
>> >
>> > --
>> > Regards, Petar!
>> > Karlovo, Bulgaria.
>> >
>> > Public PGP Key at:
>> >
>> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
>> > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/throws-out-of-memory-error-tf3583346.html#a10014692
>> Sent from the Cactus - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> My idea was to try downloading and using Ant 1.6.5, because It seems like
> Ant related problem. Please try
> with Ant 1.6.5 and tell us what the result is.
>
>
> --
> Regards, Petar!
> Karlovo, Bulgaria.
>
> Public PGP Key at:
> https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
> Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
>
>
Hello Petar,
I tried it by using Ant 1.6.5. Still, I am facing the same problem.
Below is the ant -verbose. You can check it out...
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.5 in: Y:\weblogic91\jdk150_04\jre
Detected OS: Windows XP
parsing buildfile X:\build.xml with URI = file:///X:/build.xml
Project base dir set to: X:\
Importing file X:\/build_files/automated-build.xml from X:\build.xml
parsing buildfile X:\build_files\automated-build.xml with URI =
file:///X:/build_files/aut
omated-build.xml
Importing file X:\/export_config.xml from X:\build.xml
parsing buildfile X:\export_config.xml with URI =
file:///X:/export_config.xml
Build sequence for target(s) `cactus-test' is [pre-init, init-cactus,
cactify-war, cactus-
test]
Complete build sequence is [pre-init, init-cactus, cactify-war, cactus-test,
mid-init, pos
t-init, init, pre-jspc, my_jspc, automated-init, pre-file-conversions,
ComponentConfigBuil
der, update-props, setup-install-anywhere-vms, copy-installer-srcs,
compile-installer, cop
y-lwr-files, pre-dist, findbugs-task, init-config, export-config, spconfig,
build-codegen-
input, check-grammar, build-grammar, check-codegen, build-generator,
define-codegen-task,
generateDataAccess, pre-compile, java-compilation, mid-compile,
ConvertPropertyFiles, Reso
urceBundleMerge, JCConvert, CSSCopy, epassFileConversions, foozle-config,
deploy-to-worksp
ace, post-compile, compile, jspc, parse-jsp-errors, report-jsp-errors,
email-jsp-errors, c
lustering-off, create-dist, pre-installer, installer, def-wlserver,
stop-wls, init-aj, che
ck.aspects, aj-compile, clean-codegen-da, replace-config-string,
findbugs-publish, rename-
installers, post-installer, aj-build-all-beans, build-all-beans,
compile-LWR, ear-file, aj
-build-ear, war-file, ear-war-file, aj-build-earwar, clustering-on,
pre-build-all-beans-cl
uster, mid-build-all-beans-cluster, build-all-beans-cluster, build-cluster,
record-build-i
nfo, ear-war, build-product, pre-zip, zip-english-only, zip-js-and-css,
build-zip, clean,
beans, clean-beans, findbugs-jsp, emma, emmareport, findbugs-history,
check-for-help-zip,
unzip-help-file, waitfor-wls, check-java-dependencies, compile-depend,
findbugs-init, find
bugs-init-jsp, automated-findbugs, automated-findbugs-jsp, clean-zip,
pre-publish, copy-in
staller, copy-zip, mid-publish, findbugs-init-java, junit-compile,
compare-files, email-co
rrupt-file-error, ResourceBundleCheck, publish, findbugs-jsp-xml-processor,
ear, define-co
degen-da-clean, cactify-ear, clean-war, onetest, post-jspc, compile-jsps,
build-installer,
init-junit, clean-ejbs, incremental, no-config, unzip-help-files, copy-en,
findbugs-java,
do-findbugs, all, clean-ear, check-for-installer-dir,
rename-installer-create-gpg, junit-
test, automated-findbugs-java, junit, cactus-def, cleanemma, emmaclass,
myfindbugs, clean-
aj, exec-cactus-test, start-wls, clean-jsps, installer-only, clean-log,
emmajar, clean-cla
sses, clean-codegen-da-exec, clean-codegen, ]
pre-init:
[property] Loading Environment env.
[available] Found: build.properties
[property] Loading X:\build.properties
[echo] weblogic91.present = true
init-cactus:
cactify-war:
[cactifywar] Analyzing war: X:\build_output.WebLogic\lib\myweb.war
BUILD FAILED
java.lang.OutOfMemoryError: Java heap space
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java
:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.OutOfMemoryError: Java heap space
--- Nested Exception ---
java.lang.OutOfMemoryError: Java heap space
Hope so the verbose would help you to locate the problem.
I don't know how to locate the problem. please help me out.
thanks,
Best Regards,
Atish Khedkar
--
View this message in context:
http://www.nabble.com/throws-out-of-memory-error-tf3583346.html#a10029149
Sent from the Cactus - User mailing list archive at Nabble.com.