I get this error when deploying application WAR files from my ant build through a task that calls weblogic.Deployer . This is on Windows XP, the server is not in Production mode, only 2 other WARs are installed on the server, one of which is only static content (web.xml + png / css / javascript files), no other web logical servers installed On a PC, the server processor never exceeds 25%. JRockit JVM 1.6.0_05-b13. JSP files are precompiled using weblogic.appc and are therefore stored in the war as servlets (.class files). In addition, the WAR file is about 20 M, including jar libs, about 500 classes, and ~ 200 compiled JSP pages.
Solutions:
- Restarting the web server several times: No effect, still not working
- The server PC has 2 GB of RAM, so the memory settings for the Weblogic server are increased to
-Xms256m -Xmx512m -XX:PermSize=48m -XX:MaxPermSize=256m : No Effect, still not working - Deployment through the Weblogic: WAR console expands perfectly, so there’s no mistake in setting up a war
- Use ant script to deploy to another server: successfully to another server, so it is not a script error
I hope someone has seen this before or have an idea to try something else, I looked at it for hours!
deploy-war:
[echo] Deploying application ...
[echo] Deploying application
[java] weblogic.Deployer invoked with options: -adminurl t3: // corpitdev50ddh11: 7001 \
-username weblogic -name 401k_clt-antdeploy -stage \
-upload /opt/appl/hrsapps/401k/client/dist/app/401k_clt.war \
-targets AdminServer -verbose -deploy
[java] <Jan 13, 2010 10:41:22 AM EST> <Info> <J2EE Deployment SPI> <BEA-260121> \
<Initiating deploy operation for application, 401k_clt-antdeploy \
[archive: /opt/appl/hrsapps/401k/client/dist/app/401k_clt.war], to AdminServer.>
[java] Java heap space
BUILD FAILED
/opt/appl/hrsapps/401k/build-macros.xml:601: The following error occurred while executing this line:
/opt/appl/hrsapps/401k/build-macros.xml►57: Java returned: 1
source share