I'm using the following  task to try and do a remote deployment to an OC4J
container :

<plugin>
      <artifactId>maven-antrun-plugin</artifactId>
      <executions>
       <execution>
       <phase>pre-integration-test</phase>
       <configuration>
        <tasks>
          <java jar="D:/MAVEN-WORK/acme-lib/oc4j_remote_deploy.jar"
fork="yes">
          <jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>
          <arg value="
http://wblv-ep-sp05.mycompany.com:1822/Oc4jDcmServletAPI}"/>
         <arg value="ias_admin"/>
         <arg value="admin_dev3"/>
         <arg value="deploy"/>
         <arg value="/app/oracle/product/portal10.1.2-d4"/>
         <arg value="D:/MAVEN-WORK/acme-ear/target/acme.ear"/>
         <arg value="acme"/>
        <arg value="OC4J_Eportal"/>
        </java>
       </tasks>
      </configuration>
      <goals>
       <goal>run</goal>
      </goals>
     </execution>
    </executions>
   </plugin>


However ,when this task is invoked , I get  a
java.lang.OutOfMemoryError.Theexact output is :

iasDeploy:
[java] Initializing log
[java] Servlet interface for OC4J DCM commands
[java] Command timeout defined at 600 seconds
[java] Executing DCM command...
[java] Executing command deploy /app/oracle/product/portal10.1.2-d4
D:/MAVEN-WORK/acme-ear/target/acme.ear acme OC4J_Eportal
[java] Command = DEPLOY
[java] Reading application's ear file
[java] Ear file was successfully read
[java] java.lang.OutOfMemoryError
[java] Exception in thread "main"
[java] Java Result: 1


I already have set MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m in my
mvn.bat file.I'm suspecting I need to specify the memory allocation withing
the ant task itself.How do I do that?


Jeff  Mutonho

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

Reply via email to